Example #1
0
 private LambdaExpression(ILocation location, List <Identifier> parameters, List <TypeName> types, Statement statement)
     : base(location)
 {
     Require.Assigned(parameters);
     Require.Assigned(statement);
     this.parameters    = parameters;
     parameterTypeNames = types;
     this.statement     = statement;
 }
Example #2
0
 public LambdaExpression(ILocation location, IEnumerable <Identifier> parameters, IEnumerable <TypeName> types, Statement statement)
     : base(location)
 {
     Require.Assigned(parameters);
     Require.Assigned(statement);
     this.parameters    = new List <Identifier>();
     parameterTypeNames = new List <TypeName>();
     foreach (Identifier p in parameters)
     {
         this.parameters.Add(p);
     }
     foreach (TypeName type in types)
     {
         parameterTypeNames.Add(type);
     }
     this.statement = statement;
 }