internal override IEnumerable <Instruction> ToStack() { foreach (var instruction in _source.ToStack()) { yield return(instruction); } yield return(_definition.GetMethod.ToWrapper().Call()); }
internal override IEnumerable <Instruction> ToStack() { foreach (var instruction in _source.ToStack()) { yield return(instruction); } yield return(Instruction.Create(OpCodes.Ldfld, _definition)); }
public MethodState AddFieldSet(Field field, MethodValue value = null) { Insert(Instruction.Create(OpCodes.Ldarg_0)); if (value != null) { Insert(value.ToStack()); } Insert(field.FromStack()); return(this); }
private MethodState AddVariableSet(MethodVariable variable, MethodValue value = null) { if (variable != null) { if (value != null) { Insert(value.ToStack()); } Insert(variable.FromStack()); } return(this); }
public MethodState ReturnValue(MethodValue value) { Insert(value.ToStack()); return(this); }