Ejemplo n.º 1
0
        public bool VisitExprInSubQuery(ExprInSubQuery expr, TCtx arg)
        {
            var res = this.Visit(expr, "InSubQuery", arg, out var argOut) && this.Accept("TestExpression", expr.TestExpression, argOut) && this.Accept("SubQuery", expr.SubQuery, argOut);

            this._visitor.EndVisitExpr(expr, arg);
            return(res);
        }
Ejemplo n.º 2
0
        //Boolean Predicates - Others

        public bool VisitExprInSubQuery(ExprInSubQuery exprInSubQuery, IExpr?parent)
        {
            exprInSubQuery.TestExpression.Accept(this, exprInSubQuery);
            this.Builder.Append(" IN");
            this.AcceptPar('(', exprInSubQuery.SubQuery, ')', exprInSubQuery);
            return(true);
        }
Ejemplo n.º 3
0
 public static ExprInSubQuery WithSubQuery(this ExprInSubQuery original, IExprSubQuery newSubQuery)
 => new ExprInSubQuery(testExpression: original.TestExpression, subQuery: newSubQuery);
Ejemplo n.º 4
0
 public static ExprInSubQuery WithTestExpression(this ExprInSubQuery original, ExprValue newTestExpression)
 => new ExprInSubQuery(testExpression: newTestExpression, subQuery: original.SubQuery);