Goal is to cleanup duplicate methods
of ParserTestCtx and promote single
way to write tests, explicitly using
the NodeParsingCtx.
The transformation is very mechanical
and uninterestng, hence why I'm not
opening a PR.
This introduces a TypeParamOwnerNode interface,
for those nodes that declare a type parameter
list. This will be useful later on to implement
AST symbols.
Introduce a ModifierList node, that ranges
over the modifiers of a declaration (including
annotations).
This is a combination of a few old commits:
Figure out modifiers
Fix tests
Remove AccessTypeNode
Document
Remove specific methods
Fix symboltable test
Fix tests
Rename to JModifier
Fix copypaste default/abstract
Improve doc
Test anon classes
Remove useless impl
Static modifier should not be present on toplevel classes
Simplify impl
Add visibility enum
Port some tests
Fix test ranges
Fix modifier ordering
Cleanup
Fix unnecessary modifier rule
Rename to use plural
Improve visibility doc
Simplify some things
Checkstyle
Remove some usages of typekind
Fix missing import
Remove irrelevant method
REmove some duplication
Replace AccessNode with ModifierOwner
Rename to AccessNode to reduce diff
Remove changes to rules
Add convenience methods
Make VariableDeclaratorId a ModifierOwner
Fix variable name decl
Make enum constant an implicit AccessNode
Fix compil
Checkstyle
Cleanup
Deprecate TypeKind
Cleanup
Remove TypeKind
Revert "Remove TypeKind"
This reverts commit 222c169c3401a01507726f339ae9f9b2b20dc69a.
Fix doc
Fix UnnecessaryModifierRule
Use special node instead of ModifierSet
Remove useless tests
Fix tests WIP
Work should be resumed when #2211 is merged into java-grammar
Fix some tests
Doc