static int GetVariableIndex(VariableDefinition variable) { return variable.Index; }
public Instruction Create(OpCode opcode, VariableDefinition variable) { return Instruction.Create(opcode, variable); }
public void Emit(OpCode opcode, VariableDefinition variable) { Append(Create(opcode, variable)); }
public static Instruction Create(OpCode opcode, VariableDefinition variable) { if (variable == null) throw new ArgumentNullException("variable"); if (opcode.OperandType != OperandType.ShortInlineVar && opcode.OperandType != OperandType.InlineVar) throw new ArgumentException("opcode"); return new Instruction(opcode, variable); }