Add a module-scoped variable called object myVariable.
In a method body, call out to another method with an out parameter, out object myVariable.
Make an assignment, this.myVariable = myVariable.
Run everything through CodeFormatter with the default settings
Expected behavior
The module-scoped variable should be renamed _myVariable. The method-scoped variable should not be renamed. The assignment should now read _myVariable = myVariable.
Observed behavior
Everything is renamed myVariable_, presumably because the parser does not recognize that a new variable is being created from the out parameter. That changes the semantics and leaves an invalid assignment, _myVariable = myVariable_.
Repro steps
Expected behavior
The module-scoped variable should be renamed _myVariable. The method-scoped variable should not be renamed. The assignment should now read _myVariable = myVariable.
Observed behavior
Everything is renamed myVariable_, presumably because the parser does not recognize that a new variable is being created from the out parameter. That changes the semantics and leaves an invalid assignment, _myVariable = myVariable_.