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); }
public static ExprBooleanNot WithExpr(this ExprBooleanNot original, ExprBoolean newExpr) => new ExprBooleanNot(expr: newExpr);