Skip to content
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

Enum constants are not being stored #133

Open
psybers opened this issue Jun 14, 2017 · 2 comments
Open

Enum constants are not being stored #133

psybers opened this issue Jun 14, 2017 · 2 comments

Comments

@psybers
Copy link
Member

psybers commented Jun 14, 2017

The Java 7 visitor currently does not process and store enum constant declarations.

Relevant code:

for (Object c : node.enumConstants()) {

See: https://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.jdt.doc.isv%2Freference%2Fapi%2Forg%2Feclipse%2Fjdt%2Fcore%2Fdom%2FEnumConstantDeclaration.html

@psybers
Copy link
Member Author

psybers commented Jun 14, 2017

We could generate a new Declaration for each one. That would allow storing the name and modifiers. We would need a new TypeKind for it.

The anon class (if it exists) could also be stored as a nested declaration.

The only part we couldn't store with this strategy is the arguments (list of Expression).

@irisma00
Copy link

irisma00 commented Jan 3, 2022

Branch "jlf-j16" fixed this issue. And "Java7Visitor.java" is renamed to "JavaVisitor.java"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants