示例#1
0
 public FunctionObject(IEnumerable <Identifier> parameters, BlockStatement body, RuntimeEnvironment environment)
 {
     this.Parameters  = parameters.ToImmutableList();
     this.Body        = body;
     this.Environment = environment;
 }
示例#2
0
 public FunctionLiteral(Token token, IEnumerable <Identifier> parameters, BlockStatement body)
 {
     this.Token      = token;
     this.Parameters = parameters.ToImmutableList();
     this.Body       = body;
 }