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