Skip to content

Commit

Permalink
SimpleTraitMatcher navigate subtrees in asVisit on matching traits
Browse files Browse the repository at this point in the history
  • Loading branch information
jkschneider committed Jul 9, 2024
1 parent 1c11e1f commit 03aa622
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public <P> TreeVisitor<? extends Tree, P> asVisitor(VisitFunction2<U, P> visitor
public @Nullable Tree preVisit(Tree tree, P p) {
U u = test(getCursor());
return u != null ?
visitor.visit(u, p) :
super.visit(visitor.visit(u, p), p) :
super.visit(tree, p);
}
};
Expand Down

0 comments on commit 03aa622

Please sign in to comment.