Vineflower / vineflower

Modern Java decompiler aiming to be as accurate as possible, with an emphasis on output quality. Fork of the Fernflower decompiler.
https://vineflower.org/
Apache License 2.0
1.24k stars 88 forks source link

Expose lvt LocalVariable to renaming plugins, add simple renamer that fixes conflicting lvt names #371

Open jpenilla opened 5 months ago

jpenilla commented 5 months ago

Exposing the lvt allows renamers to use any existing name in consideration for renaming.

Also adds a renamer that fixes conflicting lvt names, which is helpful for example with tiny-remapper output (as it does not take into account names used by enclosing methods).