-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[java] Improve module grammar #3890
Conversation
Type names in "provides" directives are disambiguated like any other type name. ASTName is made redundant and removed for good.
Generated by 🚫 Danger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating this!
I've added a new section in https://github.com/pmd/pmd/wiki/Java_clean_changes#module-declarations - updated already with ModuleUsesDirective using a ClassOrInterfaceType as child node instead of package name.
pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTModuleDirective.java
Outdated
Show resolved
Hide resolved
pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTModuleUsesDirective.java
Outdated
Show resolved
Hide resolved
pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTModuleProvidesDirective.java
Outdated
Show resolved
Hide resolved
pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTModuleProvidesDirective.java
Outdated
Show resolved
Hide resolved
The regression tester is also not running properly:
seems like this is the same for the other PRs against pmd/7.0.x. I guess, we need to call it differently and use the autogenerated ruleset from the first run (when we compared against pmd7) because we don't have master checkout out (only pmd/7.0.x + PR). |
Thanks for updating the wiki and spotting that mistake about the uses directive! |
I believe this is the last grammar change needed for PMD 7. We can proceed with cleaning up the AST as in #3831
Describe the PR
Related issues
Ready?
./mvnw clean verify
passes (checked automatically by github actions)