Closed NeoQuix closed 1 year ago
/cib
Branch issue-303-Fix_renaming_of_variables created!
Could not create PR (Not Found)
Also fixes some bugs with hungarian (force for loops) ((but then ForLoopRenamer fails independently, yay))
Closed because of split into 2 PR
Proposal
WhileLoopRenamer/ForLoopRenamer/variablenamegeneration all rename stuff, but not really together. Variablenamegeneration manages to skip renamed variables, but with very nasty tricks which do not always work.
Approach
readability_based_redefinement
intovariable_name_generation
and keep itForLoopRenamer
because it really has some problems (with empty assignments or ListComps)variable_name_generation
renames variables (via AST replace method)variable_name_generation
so that WhileLoopRenamer/ForLoopRenamer run AFTER it ==> rename everything to hungarian/something else, and afterwards rename for/while variable names.