x/tools/go/ssa: no position information in *ssa.If #45758
Labels
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
At the moment, the
*ssa.If
instruction does not track source code position information:However, in most cases there is a well defined position: for
if
statements it's the position of the keyword and forswitch
andselect
statements it's the position of thecase
keyword. I would like to use this position information but it's not currently available as indicated in the documentation.(I have written a patch to add this position information which I will post shortly).
The text was updated successfully, but these errors were encountered: