Inheritance: ConditionalExpression
Beispiel #1
0
 public override void VisitOr(OrExpression or)
 {
     Label trueLabel = ilGenerator.DefineLabel();
     Label endLabel = ilGenerator.DefineLabel();
     or.Left.Accept(this);
     ilGenerator.Emit(OpCodes.Brtrue, trueLabel);
     or.Right.Accept(this);
     ilGenerator.Emit(OpCodes.Br, endLabel);
     ilGenerator.MarkLabel(trueLabel);
     ilGenerator.Emit(OpCodes.Ldc_I4_1);
     ilGenerator.MarkLabel(endLabel);
 }
Beispiel #2
0
 public override void VisitOr(OrExpression or)
 {
     VisitCond(or);
 }
Beispiel #3
0
 public virtual void VisitOr(OrExpression or)
 {
 }