In #1759, the visitor adapter sets up some delegation between visit methods to allow matching eg all expressions.
This is cool and allows us to write more expressive visitors (it's argumented on #1759). But there are some problems with it:
visit(ASTInstanceOfExpression)
delegating to visit(ASTExpression)
instead of eg visit(TypeNode)
.Ideally the visitor interface would have this delegation logic generated in default methods. This means we probably need to somehow augment JJTree to generate that (or write another generator).
Implementing this RFC gives us a strong basis to implement #1787.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4