x/tools/refactor/rename: bad positions in "ambiguous specifier" error message #19906
Labels
Refactoring
Issues related to refactoring tools
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
In directory
$GOROOT/src
:The positions here are bogus; there is no object c at any of these places. These appear to be line offsets relative to functions containing local variables called c.
There's also an implicit feature request here. I'm running this command to find all the local variables named c. Then I will inspect them, pick a good new name for them, and gorename them one at a time. The
-to=___
is just because a-to
is required, and-d
is to avoid actually changing the files; I don't really want any of that, I just want to know where the c's are. Maybe there's a better way? Perhaps a gorename flag that just tells you the declaration site of all impacted objects?cc @alandonovan
The text was updated successfully, but these errors were encountered: