public bool VisitExprBooleanOr(ExprBooleanOr expr, TCtx arg) { var res = this.Visit(expr, "BooleanOr", arg, out var argOut) && this.Accept("Left", expr.Left, argOut) && this.Accept("Right", expr.Right, argOut); this._visitor.EndVisitExpr(expr, arg); return(res); }
public bool VisitExprBooleanOr(ExprBooleanOr expr, IExpr?parent) { expr.Left.Accept(this, expr); this.Builder.Append(" OR "); expr.Right.Accept(this, expr); return(true); }
public static ExprBooleanOr WithRight(this ExprBooleanOr original, ExprBoolean newRight) => new ExprBooleanOr(left: original.Left, right: newRight);