8000
Skip to content
< 10000 /div>

[java] Make ClassLiteral not an ASTLiteral#1857

Merged
adangel merged 3 commits intopmd:java-grammarfrom
oowekyala:grammar-fix-class-literal
Jun 18, 2019
Merged

[java] Make ClassLiteral not an ASTLiteral#1857
adangel merged 3 commits intopmd:java-grammarfrom
oowekyala:grammar-fix-class-literal

Conversation

@oowekyala
Copy link
Copy Markdown
Member

It was a deviation from the JLS, and actually weakened the ASTLiteral abstraction, for nothing in return. Now we can be sure, that an ASTLiteral corresponds to lexical literals in the JLS, ie they're always represented by exactly one token.

@oowekyala oowekyala added the in:ast About the AST structure or API, the parsing step label Jun 2, 2019
@oowekyala oowekyala added this to the 7.0.0 milestone Jun 2, 2019
Copy link
Copy Markdown
Member
@adangel adangel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, so ASTLiteral is now what JLS calls "Lexical Literals" and class literal is separate. 👍

@adangel adangel merged commit bf61655 into pmd:java-grammar Jun 18, 2019
adangel added a commit that referenced this pull request Jun 18, 2019
@oowekyala oowekyala deleted the grammar-fix-class-literal branch June 18, 2019 22:30
@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

0