Skip to content

Add support for unnamed variables#583

Draft
coehlrich wants to merge 3 commits into
Vineflower:develop/1.13.0from
coehlrich:unnamed-vars
Draft

Add support for unnamed variables#583
coehlrich wants to merge 3 commits into
Vineflower:develop/1.13.0from
coehlrich:unnamed-vars

Conversation

@coehlrich

Copy link
Copy Markdown
Contributor

Adds support for unnamed variables in:

  • Lambda parameters
  • Catch statement exceptions (javac doesn't give include an LVT if the catch block is empty)
  • Local variable assignments
  • For loops
  • Pattern variables (pattern matching instanceof with an unnamed variable in an if statement just looks like a regular instanceof. For pattern variables in switches nothing is added to the case statement if the pattern variable is an unnamed variable unless there are multiple for one case)

Still need to do pattern variables in records and fix the guard for multiple pattern variables in one case

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