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; }
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(); }
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; }