예제 #1
0
 public ConditionalJump(ValueReference conditional, int dest, JumpBehaviour when)
 {
     if (conditional == null)
     {
         throw new ArgumentNullException(nameof(conditional));
     }
     this.Conditional = conditional;
     this.JumpWhen    = when;
     this.Destination = dest;
 }
예제 #2
0
 public Call(ValueReference function, params ValueReference[] arguments)
 {
     if (function == null)
     {
         throw new ArgumentNullException(nameof(function));
     }
     if (arguments == null)
     {
         throw new ArgumentNullException(nameof(arguments));
     }
     this.Function  = function;
     this.Arguments = arguments.ToArray();
 }
예제 #3
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;
 }