Пример #1
0
 public Function(FunctionPrototype proto, StorageContext creationContext) : base(proto.Type)
 {
     if (proto == null)
     {
         throw new ArgumentNullException(nameof(proto));
     }
     this.Prototype       = proto;
     this.CreationContext = creationContext;
 }
Пример #2
0
 public CreateClosure(ValueReference variable, FunctionPrototype function)
 {
     if (variable == null)
     {
         throw new ArgumentNullException(nameof(variable));
     }
     if (function == null)
     {
         throw new ArgumentNullException(nameof(function));
     }
     this.Function = function;
     this.Variable = variable;
 }
Пример #3
0
 public Function(FunctionPrototype proto) : this(proto, null)
 {
 }