public IExpression Bind(Scope scope) { BoundFunctionLiteral bfl = new BoundFunctionLiteral(this, scope); scope.RegisterFuncLiteral(bfl); return bfl; }
public void RegisterFuncLiteral(BoundFunctionLiteral literal) { List<BoundFunctionLiteral> list; if (!funcTypeToLiterals.TryGetValue(literal.Type.Name, out list)) { list = new List<BoundFunctionLiteral>(); funcTypeToLiterals[literal.Type.Name] = list; } list.Add(literal); }
public BoundFunctionType(BoundFunctionLiteral bfl) { this.bfl = bfl; }