Exemple #1
0
        public bool VisitExprInValues(ExprInValues expr, TCtx arg)
        {
            var res = this.Visit(expr, "InValues", arg, out var argOut) && this.Accept("TestExpression", expr.TestExpression, argOut) && this.Accept("Items", expr.Items, argOut);

            this._visitor.EndVisitExpr(expr, arg);
            return(res);
        }
 public bool VisitExprInValues(ExprInValues exprInValues, IExpr?parent)
 {
     exprInValues.TestExpression.Accept(this, exprInValues);
     this.AssertNotEmptyList(exprInValues.Items, "'IN' Predicate cannot have an empty list of expressions");
     this.Builder.Append(" IN");
     this.AcceptListComaSeparatedPar('(', exprInValues.Items, ')', exprInValues);
     return(true);
 }
Exemple #3
0
 public static ExprInValues WithItems(this ExprInValues original, IReadOnlyList <ExprValue> newItems)
 => new ExprInValues(testExpression: original.TestExpression, items: newItems);
Exemple #4
0
 public static ExprInValues WithTestExpression(this ExprInValues original, ExprValue newTestExpression)
 => new ExprInValues(testExpression: newTestExpression, items: original.Items);