Skip to content

Add support for new Eclipse string-switch variant - #601

Merged
jaskarth merged 14 commits into
Vineflower:develop/1.13.0from
aoqia194:feat/eclipse-str-switch
Jul 11, 2026
Merged

jaskarth merged 14 commits into
Vineflower:develop/1.13.0from
aoqia194:feat/eclipse-str-switch

Conversation

@aoqia194

@aoqia194 aoqia194 commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Fixes #133

I've done some minor refactoring in this as well, so I apologise in advance. Most of those are just variable renames or deleting redundant comments.

Also fixes some minor bugs that caused other string-switches to fail the beautification! (what is this called lmao)

@aoqia194 aoqia194 changed the title Feat/eclipse str switch Add support for new Eclipse string-switch variant Jun 22, 2026
Comment thread testData/results/TestEclipseSwitchString2.dec
@aoqia194
aoqia194 marked this pull request as draft June 22, 2026 13:48
@aoqia194
aoqia194 marked this pull request as ready for review June 25, 2026 22:58
@aoqia194

aoqia194 commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

I am opening this back up for review as I've finally found and fixed the mistakes I've done! (thanks Kropp for the help with the desync and validation issues)

@jaskarth jaskarth added Type: Enhancement New feature or request Subsystem: Statement Structure Anything concerning how statements are structured in a method Priority: Medium Medium priority labels Jul 11, 2026
aoqia194 added 13 commits July 12, 2026 04:15
this check was used before i did case merging.
since case merging is being performed now, i believe it's not necessary anymore.
i no longer know what causes merged switch types,
so i cannot create a valid test case for them
also changes the cast to a safe check just in case?
this check was used before i did case merging.
since case merging is being performed now, i believe it's not necessary anymore.
these never execute on our entire test suite
i previously assumed that these edges would always be explicit.
i was wrong, so here we are!
@aoqia194
aoqia194 force-pushed the feat/eclipse-str-switch branch from 5b2d15c to abd4394 Compare July 11, 2026 18:19
the recent changes from develop/1.13.0 have fixed this issue

@jaskarth jaskarth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me, thank you for the PR!

@jaskarth
jaskarth merged commit 69f318c into Vineflower:develop/1.13.0 Jul 11, 2026
4 checks passed
@aoqia194
aoqia194 deleted the feat/eclipse-str-switch branch July 14, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Medium Medium priority Subsystem: Statement Structure Anything concerning how statements are structured in a method Type: Enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants