public override void Emit(IlBuilder builder) { base.Emit(builder); if (hasValue) { _exp.Push(builder); } builder.EmitOpCode(OpCodes.Ret); }
public override void Emit(IlBuilder builder) { base.Emit(builder); _op?.Push(builder); OpCode op = Condition switch { BranchCondition.Always => OpCodes.Br, BranchCondition.OnFalse => OpCodes.Brfalse, BranchCondition.Leave => OpCodes.Leave, _ => OpCodes.Brtrue }; builder.EmitOpCode(op, _label); }
public void PushValue(CodeValue val) { val.Push(this); }