コード例 #1
0
ファイル: AbstractOperation.cs プロジェクト: rauldoblem/Tac
 public BinaryPopulateScope(IPopulateScope <IFrontendCodeElement, ISetUpValue> left,
                            IPopulateScope <IFrontendCodeElement, ISetUpValue> right,
                            BinaryOperation.Make <TFrontendCodeElement> make)
 {
     this.left  = left ?? throw new ArgumentNullException(nameof(left));
     this.right = right ?? throw new ArgumentNullException(nameof(right));
     this.make  = make ?? throw new ArgumentNullException(nameof(make));
 }
コード例 #2
0
ファイル: AbstractOperation.cs プロジェクト: rauldoblem/Tac
 public static IPopulateBoxes <TFrontendCodeElement> PopulateBoxes(IPopulateBoxes <IConvertableFrontendCodeElement <ICodeElement> > resolveReferance1,
                                                                   IPopulateBoxes <IConvertableFrontendCodeElement <ICodeElement> > resolveReferance2,
                                                                   BinaryOperation.Make <TFrontendCodeElement> make)
 {
     return(new BinaryResolveReferance(resolveReferance1,
                                       resolveReferance2,
                                       make));
 }
コード例 #3
0
 public BinaryResolveReferance(
     IOrType <IResolve <IBox <IFrontendCodeElement> >, IError> resolveReferance1,
     IOrType <IResolve <IBox <IFrontendCodeElement> >, IError> resolveReferance2,
     BinaryOperation.Make <TFrontendCodeElement> make)
 {
     left      = resolveReferance1 ?? throw new ArgumentNullException(nameof(resolveReferance1));
     right     = resolveReferance2 ?? throw new ArgumentNullException(nameof(resolveReferance2));
     this.make = make ?? throw new ArgumentNullException(nameof(make));
 }
コード例 #4
0
ファイル: AbstractOperation.cs プロジェクト: rauldoblem/Tac
 public BinaryResolveReferance(
     IPopulateBoxes <IFrontendCodeElement> resolveReferance1,
     IPopulateBoxes <IFrontendCodeElement> resolveReferance2,
     BinaryOperation.Make <TFrontendCodeElement> make)
 {
     left      = resolveReferance1 ?? throw new ArgumentNullException(nameof(resolveReferance1));
     right     = resolveReferance2 ?? throw new ArgumentNullException(nameof(resolveReferance2));
     this.make = make ?? throw new ArgumentNullException(nameof(make));
 }
コード例 #5
0
 public BinaryOperationMaker(string symbol, BinaryOperation.Make <TFrontendCodeElement> make,
                             BinaryOperation.GetReturnedValue keyMaker,
                             bool intoInitScope
                             )
 {
     Symbol             = symbol ?? throw new ArgumentNullException(nameof(symbol));
     Make               = make ?? throw new ArgumentNullException(nameof(make));
     this.keyMaker      = keyMaker ?? throw new ArgumentNullException(nameof(keyMaker));
     this.intoInitScope = intoInitScope;
 }
コード例 #6
0
ファイル: AbstractOperation.cs プロジェクト: rauldoblem/Tac
 public BinaryFinalizeScope(
     ISetUpValue setUpSideNode,
     IResolvelizeScope <IFrontendCodeElement, ISetUpValue> resolveReferance1,
     IResolvelizeScope <IFrontendCodeElement, ISetUpValue> resolveReferance2,
     BinaryOperation.Make <TFrontendCodeElement> make)
 {
     SetUpSideNode = setUpSideNode ?? throw new ArgumentNullException(nameof(setUpSideNode));
     left          = resolveReferance1 ?? throw new ArgumentNullException(nameof(resolveReferance1));
     right         = resolveReferance2 ?? throw new ArgumentNullException(nameof(resolveReferance2));
     this.make     = make ?? throw new ArgumentNullException(nameof(make));
 }
コード例 #7
0
 public BinaryPopulateScope(
     IOrType <ISetUp <IBox <IFrontendCodeElement>, Tpn.ITypeProblemNode>, IError> left,
     IOrType <ISetUp <IBox <IFrontendCodeElement>, Tpn.ITypeProblemNode>, IError> right,
     BinaryOperation.Make <TFrontendCodeElement> make,
     BinaryOperation.GetReturnedValue key,
     bool intoInitScope)
 {
     this.left          = left ?? throw new ArgumentNullException(nameof(left));
     this.right         = right ?? throw new ArgumentNullException(nameof(right));
     this.make          = make ?? throw new ArgumentNullException(nameof(make));
     this.keyMaker      = key ?? throw new ArgumentNullException(nameof(key));
     this.intoInitScope = intoInitScope;
 }
コード例 #8
0
ファイル: AbstractOperation.cs プロジェクト: rauldoblem/Tac
 public static IPopulateScope <TFrontendCodeElement, ISetUpValue> PopulateScope(IPopulateScope <IFrontendCodeElement> left,
                                                                                IPopulateScope <IFrontendCodeElement> right,
                                                                                BinaryOperation.Make <TFrontendCodeElement> make)
 {
     return(new BinaryPopulateScope(left,
                                    right,
                                    make));
 }
コード例 #9
0
ファイル: AbstractOperation.cs プロジェクト: rauldoblem/Tac
 public BinaryOperationMaker(string symbol, BinaryOperation.Make <TFrontendCodeElement> make
                             )
 {
     Symbol = symbol ?? throw new ArgumentNullException(nameof(symbol));
     Make   = make ?? throw new ArgumentNullException(nameof(make));
 }