private AbsynIf EmitIfCondition(Expression exp, Conditional cond, AbsynStatementEmitter emitter) { if (cond is IfElse || cond is IfThenElse) { exp = exp.Invert(); } AbsynIf ifStm = new AbsynIf(); ifStm.Condition = exp; emitter.EmitStatement(ifStm); return(ifStm); }
private AbsynIf EmitIfCondition(Expression exp, Conditional cond, AbsynStatementEmitter emitter) { if (cond is IfElse || cond is IfThenElse) { exp = exp.Invert(); } AbsynIf ifStm = new AbsynIf(); ifStm.Condition = exp; emitter.EmitStatement(ifStm); return ifStm; }