Exemple #1
0
        public bool VisitExprBooleanNot(ExprBooleanNot expr, TCtx arg)
        {
            var res = this.Visit(expr, "BooleanNot", arg, out var argOut) && this.Accept("Expr", expr.Expr, argOut);

            this._visitor.EndVisitExpr(expr, arg);
            return(res);
        }
        public bool VisitExprBooleanNot(ExprBooleanNot expr, IExpr?parent)
        {
            this.Builder.Append("NOT");
            if (expr.Expr is ExprPredicate)
            {
                this.Builder.Append(' ');
                expr.Expr.Accept(this, expr);
            }
            else
            {
                this.AcceptPar('(', expr.Expr, ')', expr);
            }

            return(true);
        }
Exemple #3
0
 public static ExprBooleanNot WithExpr(this ExprBooleanNot original, ExprBoolean newExpr)
 => new ExprBooleanNot(expr: newExpr);