protected virtual Expression VisitBetween(BetweenExpression between) { Expression expr = this.Visit(between.Expression); Expression lower = this.Visit(between.Lower); Expression upper = this.Visit(between.Upper); if (expr != between.Expression || lower != between.Lower || upper != between.Upper) { return(new BetweenExpression(expr, lower, upper)); } return(between); }
protected virtual bool CompareBetween(BetweenExpression a, BetweenExpression b) { return(Compare(a.Expression, b.Expression) && Compare(a.Lower, b.Lower) && Compare(a.Upper, b.Upper)); }