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

Add members, methods and imports to EnumDeclarations #1450

Merged
merged 7 commits into from
Mar 13, 2024

Conversation

robinmaisch
Copy link
Contributor

Concerning #1445:

  • EnumDeclarations now get assigned their class members, just like RecordDeclarations.
  • The ImportResolver correctly identifies entries and other members of EnumDeclarations that are imported.
  • combined the processing of static and non-static ImportDeclarations, separating them afterwards by isStatic (a comment indicated that something similar was done earlier and then undone)
  • in some cases re-merged the processing of EnumDeclarations and RecordDeclarations and refactored out common parts into separate methods
  • added a test and test files for the above changes

@oxisto oxisto added the java Related to Java language parsing label Mar 8, 2024
Copy link
Collaborator

@konradweiss konradweiss left a comment

Choose a reason for hiding this comment

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

Overall I like it and would merge it after the names are changed to avoid conflicts with our more restrictive understanding of a handler. And it is necessary to resolve the conflicts in the FrontendTest file. Thanks already for you contributions so far!

@robinmaisch
Copy link
Contributor Author

Sorry, my IDE reformatted the code back upon committing. And the commit title was not meant to refer to that issue.

@konradweiss
Copy link
Collaborator

Sorry, my IDE reformatted the code back upon committing. And the commit title was not meant to refer to that issue.

It confused me a bit ;)

@konradweiss konradweiss merged commit f8d7315 into Fraunhofer-AISEC:main Mar 13, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
java Related to Java language parsing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Java Frontend: EnumDeclarations do not get any content other than entries
3 participants