Example #1
0
        public override object VisitUnaryexpr([NotNull] SQLiteParser.UnaryexprContext context)
        {
            string op   = context.unary_operator().GetText();
            var    expr = Visit(context.expr()) as Expr;

            if (expr is ExistSubqueryExpr ee)
            {
                // ExistsSubquery needs to get hasNot together for easier processing
                ee.hasNot_ = (context.unary_operator().K_NOT() != null);
                return(ee);
            }
            else
            {
                return(new UnaryExpr(op, expr));
            }
        }
Example #2
0
        public override object VisitUnaryexpr([NotNull] SQLiteParser.UnaryexprContext context)
        {
            string op = context.unary_operator().GetText();

            return(new UnaryExpr(op, Visit(context.arith_expr()) as Expr));
        }