private Expression ToBool(Expression condition) { condition = CompilerUtils.ToBool(condition); if (Node.Token.Type == kUNTIL || Node.Token.Type == kUNTIL_MOD) { condition = CompilerUtils.Negate(condition); } return(condition); }
private Expression MakeCondition(Expression condition, Expression trueBody, Expression elseBody) { condition = CompilerUtils.ToBool(condition); if (Node.Token.Type == kUNLESS || Node.Token.Type == kUNLESS_MOD) { condition = CompilerUtils.Negate(condition); } return(Condition(condition, trueBody, elseBody, typeof(iObject))); }