Exemple #1
0
        public bool VisitExprBooleanNotEq(ExprBooleanNotEq expr, TCtx arg)
        {
            var res = this.Visit(expr, "BooleanNotEq", arg, out var argOut) && this.Accept("Left", expr.Left, argOut) && this.Accept("Right", expr.Right, argOut);

            this._visitor.EndVisitExpr(expr, arg);
            return(res);
        }
        //Boolean Predicates

        public bool VisitExprBooleanNotEq(ExprBooleanNotEq exprBooleanNotEq, IExpr?parent)
        {
            exprBooleanNotEq.Left.Accept(this, exprBooleanNotEq);
            this.Builder.Append("!=");
            exprBooleanNotEq.Right.Accept(this, exprBooleanNotEq);

            return(true);
        }
Exemple #3
0
 public static ExprBooleanNotEq WithRight(this ExprBooleanNotEq original, ExprValue newRight)
 => new ExprBooleanNotEq(left: original.Left, right: newRight);