public Function(FunctionPrototype proto, StorageContext creationContext) : base(proto.Type) { if (proto == null) { throw new ArgumentNullException(nameof(proto)); } this.Prototype = proto; this.CreationContext = creationContext; }
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; }
public Function(FunctionPrototype proto) : this(proto, null) { }