示例#1
0
 public CodegenExpressionRelational(
     CodegenExpression lhs,
     CodegenRelational op,
     CodegenExpression rhs)
 {
     _lhs = lhs;
     _op = op;
     _rhs = rhs;
 }
示例#2
0
        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);
 }