Skip to content

feat(jdk-codemodel): promote LambdaParameter to Traitable and stamp its declaration-site source location#105

Merged
deer merged 1 commit into
mainfrom
lambda_param
Jul 6, 2026
Merged

feat(jdk-codemodel): promote LambdaParameter to Traitable and stamp its declaration-site source location#105
deer merged 1 commit into
mainfrom
lambda_param

Conversation

@deer

@deer deer commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

LambdaParameter was a plain Composite record with nowhere to attach a SourceLocation, unlike FieldDescriptor and FormalParameterDescriptor. It's promoted to a Traitable class with full marshalling support, closing the last gap in the declaration-site position coverage added across the prior three PRs. Lambda's marshalling is simplified to round-trip parameters as a single stream instead of two zipped type/name streams. JdkExpressionConverter now stamps each lambda parameter with its source location the same way method/constructor parameters and locals already are.

@deer deer merged commit 7aeb402 into main Jul 6, 2026
1 check passed
@deer deer deleted the lambda_param branch July 6, 2026 00:40
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