public CodegenExpressionRelational( CodegenExpression lhs, CodegenRelational op, CodegenExpression rhs) { _lhs = lhs; _op = op; _rhs = rhs; }
public static string GetOp(this CodegenRelational value) { switch (value) { case CodegenRelational.GE: return(">="); case CodegenRelational.GT: return(">"); case CodegenRelational.LE: return("<="); case CodegenRelational.LT: return("<"); default: throw new ArgumentException("invalid value"); } }
ICodegenExpression ICodegenExpressionBuilder.Relational(ICodegenExpression lhs, CodegenRelational op, ICodegenExpression rhs) { return Relational(lhs, op, rhs); }
public static ICodegenExpression Relational(ICodegenExpression lhs, CodegenRelational op, ICodegenExpression rhs) { return new CodegenExpressionRelational(lhs, op, rhs); }