Skip to content

Commit

Permalink
stop propagate Context.childrenContainsNonInterestedSlots if expr cha…
Browse files Browse the repository at this point in the history
…nged to TRUE
  • Loading branch information
englefly committed Nov 13, 2023
1 parent 7e36ab8 commit c642ec0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ public Expression visit(Expression originExpr, Context parentContext) {
public Expression visitAnd(And and, Context parentContext) {
Expression left = and.left();
Context leftContext = new Context();
Expression newLeft = this.visit(left, leftContext);
// Expression newLeft = this.visit(left, leftContext);
Expression newLeft = left.accept(this, leftContext);

if (leftContext.childrenContainsNonInterestedSlots) {
newLeft = BooleanLiteral.TRUE;
}
Expand Down

0 comments on commit c642ec0

Please sign in to comment.