feat(#229): Avoid Using Labels on Stack #259
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In this PR I fixed the problem with incorrect Labels handling on stack. Actually, Labels shouldn't be used on stack during decompilation. So
I attached labels to near nodes. This fixed several decompilation problems in integration tests.
Risk: Labels are decompiled in a different way as any other nodes. This incosistency might cause some problems in the future. In order to find a proper solution, I added one more issue.
Related to #229.
History:
PR-Codex overview
This PR enhances the decompilation process by refactoring label handling, adding test coverage, and improving code readability.
Detailed summary
Labeled
class@ToString
annotationInvokespecialHandler
by checking target type before linking