-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[kotlin] Improve Kotlin AST #4337
Copy link
Copy link
Open
Labels
an:enhancementAn improvement on existing features / rulesAn improvement on existing features / rulesin:grammarAbout the grammar of a lexer or parser, eg, a parse/lex exceptionAbout the grammar of a lexer or parser, eg, a parse/lex exception
Milestone
Metadata
Metadata
Assignees
Labels
an:enhancementAn improvement on existing features / rulesAn improvement on existing features / rulesin:grammarAbout the grammar of a lexer or parser, eg, a parse/lex exceptionAbout the grammar of a lexer or parser, eg, a parse/lex exception
Type
Fields
Give feedbackNo fields configured for issues without a type.
Is your feature request related to a problem? Please describe.
The AST is very deep. This is because ANTLR doesn't produce a AST, but a parse tree. We would need some post processing in order to create our own AST representation.
The new Apex grammar does something similar: ANTLR -> Summit AST -> PMD. Maybe we could do the same for Kotlin?
Describe the solution you'd like
Describe alternatives you've considered
Additional context