示例#1
0
 public IExpression Bind(Scope scope)
 {
     BoundFunctionLiteral bfl = new BoundFunctionLiteral(this, scope);
     scope.RegisterFuncLiteral(bfl);
     return bfl;
 }
示例#2
0
 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);
 }
示例#3
0
 public BoundFunctionType(BoundFunctionLiteral bfl)
 {
     this.bfl = bfl;
 }