Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public bool VisitExprBooleanOr(ExprBooleanOr expr, IExpr?parent)
        {
            expr.Left.Accept(this, expr);
            this.Builder.Append(" OR ");
            expr.Right.Accept(this, expr);

            return(true);
        }
Exemplo n.º 3
0
 public static ExprBooleanOr WithRight(this ExprBooleanOr original, ExprBoolean newRight)
 => new ExprBooleanOr(left: original.Left, right: newRight);