-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Warn on logical operators AND and OR expressions without explicit parenthesization
- Loading branch information
1 parent
a355478
commit d0f34b1
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For the recursiver/nested case, simply let the visitor do it's thing by doing a default visit first. Then this method becomes trivial you just check immediate children. That's the right way to use the visitor