x/tools/go/pointer: extended query tuple indexing does not take flattening into account #27111
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
For
with
the extended query
x[1]
will refer toT.X
, not the second return value. The extended query parsing assumes that tuple offsets match node offsets 1 to 1, not taking into consideration that structs will be flattened, effectively yielding the tuple(T, *int, *int)
I intend on fixing this myself, eventually, unless someone beats me to it.
The text was updated successfully, but these errors were encountered: