Enigma icon indicating copy to clipboard operation
Enigma copied to clipboard

Allow renaming variables defined in methods

Open copygirl opened this issue 9 years ago • 6 comments

copygirl avatar Sep 22 '16 15:09 copygirl

Related to https://bitbucket.org/cuchaz/enigma/issues/23/allow-renaming-method-locals

marysaka avatar Sep 22 '16 15:09 marysaka

I'd be happy to have this even if it didn't persist between Minecraft versions. It would make mapping the other stuff easier.

mezz avatar Oct 16 '16 23:10 mezz

@mezz - It's not for mapping anywhere near as much as it is for developers. Our lovely, lovely developers.

asiekierka avatar Oct 18 '16 16:10 asiekierka

From reading the other issue, it may be impossible to keep the variable names across versions, but I think it would still be a useful first step to allow editing them in a temporary way.

mezz avatar Oct 18 '16 19:10 mezz

More generally, we could allow modifying the source code of the method (to not only rename variables but to do things such as turning iterators + while loops to for-each loops when applicable), with checks to make sure that the generated bytecode is the same as the original. Of course, this would take a lot of effort to make working, and we still can't keep this info across versions if a method's implementation changes.

bluebear94 avatar Dec 23 '19 06:12 bluebear94