Skip to content

feat(jdk-codemodel): resolve identifier symbols via javac element API#22

Merged
deer merged 1 commit intomainfrom
symbols
Apr 10, 2026
Merged

feat(jdk-codemodel): resolve identifier symbols via javac element API#22
deer merged 1 commit intomainfrom
symbols

Conversation

@deer
Copy link
Copy Markdown
Collaborator

@deer deer commented Apr 10, 2026

Adds Symbol, a @Singular Trait on Identifier expressions that captures what an identifier refers to — local variable, parameter, field, type reference, this, or super — along with its declared type.

JdkExpressionConverter.visitIdentifier now calls resolveSymbol, which walks the Trees API to get the backing Element and maps its ElementKind to the appropriate Symbol variant. Five tests cover all resolved kinds.

@deer deer merged commit a4bd431 into main Apr 10, 2026
1 check passed
@deer deer deleted the symbols branch April 10, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant