Create a refactoring functionality to resolve styling issues like wrong or missing variable typisation.
Creating a type prefix for string variables should be easy. Creating the correct type prefix for numerical variables, is a bit harder. We will use the initial value, if available. If its a boolean, use the boolean prefix, if it is an integer, then the integer prefix. Otherwise use the floating point prefix.
Use also the possible type of the assigned variable, if available, to deduce the variable's type.
The functionality shall be available as context menu entry located within the refactoring menu.
Functionality was tested manually. Objectively, it returns fitting prefixes in most cases. Sometimes the prefix is subjectively not optimal, but that's related to the arbitrary usage f, n and b.
Anonymous
Diff:
Diff:
Diff:
Diff:
Related
Commit: [r1180]
Diff: