예제 #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)
 {
 }