x/tools/cmd/guru: implements output is strange when cursor is over the interface keyword #20003
Labels
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
For a simple main.go file:
When I run an implements query with the cursor over
Fooer
, I get reasonable output:However, when the cursor is moved a few bytes to the right (over
interface
) the output looks much different:It seems like
guru
is now identifying the selection as an anonymous interface and not the type declaration for theFooer
interface.I'm finding the behavior in the latter case to be difficult to build tooling around, mostly because:
type.name
field is long and hard to read for anything but the most simple interfacesto
entry makes it seem like there is an extra interface in the programtype.pos
field is no longer populatedThe text was updated successfully, but these errors were encountered: