-
Notifications
You must be signed in to change notification settings - Fork 64
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
Conversation
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.
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!
cpg-language-java/src/main/kotlin/de/fraunhofer/aisec/cpg/frontends/java/DeclarationHandler.kt
Outdated
Show resolved
Hide resolved
cpg-language-java/src/main/kotlin/de/fraunhofer/aisec/cpg/frontends/java/DeclarationHandler.kt
Outdated
Show resolved
Hide resolved
cpg-language-java/src/main/kotlin/de/fraunhofer/aisec/cpg/frontends/java/DeclarationHandler.kt
Outdated
Show resolved
Hide resolved
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 ;) |
Concerning #1445:
EnumDeclaration
s now get assigned their class members, just likeRecordDeclaration
s.ImportResolver
correctly identifies entries and other members ofEnumDeclaration
s that are imported.ImportDeclaration
s, separating them afterwards byisStatic
(a comment indicated that something similar was done earlier and then undone)EnumDeclaration
s andRecordDeclaration
s and refactored out common parts into separate methods