Skip to content

[java] Flatten body declarations#2300

Merged
oowekyala merged 8 commits into
pmd:java-grammarfrom
oowekyala:grammar-flatten-body-declarations
Mar 17, 2020
Merged

[java] Flatten body declarations#2300
oowekyala merged 8 commits into
pmd:java-grammarfrom
oowekyala:grammar-flatten-body-declarations

Conversation

@oowekyala

Copy link
Copy Markdown
Member

Removes ClassOrInterfaceBodyDeclaration and TypeDeclaration. These were unnecessary since #1875, since now they just have one child. Instead this adds a couple of marker interfaces implemented by eg FieldDeclaration, MethodDeclaration, etc.

AFAIK this the last PR altering the grammar.

@oowekyala oowekyala added the in:ast About the AST structure or API, the parsing step label Feb 19, 2020
@oowekyala oowekyala added this to the 7.0.0 milestone Feb 19, 2020
@ghost

ghost commented Feb 19, 2020

Copy link
Copy Markdown
1 Message
📖 No java rules are changed!

Generated by 🚫 Danger

@oowekyala oowekyala merged commit 9b720c8 into pmd:java-grammar Mar 17, 2020
@adangel

adangel commented Mar 24, 2020

Copy link
Copy Markdown
Member

Updated https://github.com/pmd/pmd/wiki/Java_clean_changes#flattened-body-declarations

@oowekyala oowekyala deleted the grammar-flatten-body-declarations branch March 25, 2020 02:24
@adangel adangel mentioned this pull request Jan 23, 2023
55 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in:ast About the AST structure or API, the parsing step

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants