Closed
Description
For example:
type fooer interface {
foo()
}
type impl struct{}
func (impl) foo() {}
func _() {
var f fooer = impl{}
f.foo()
}
Currently if you find-references on the "foo" struct method, you don't get anything. It would be useful to return the interface method "fooer.foo". Otherwise, there is no way to find how the concrete "foo" method is used. (It would still be a two step process: first jump to the declaration of fooer.foo, then run find references again to see where it is used).
The same logic doesn't apply to the "impl" struct itself since it will actually be referenced somewhere when it is constructed.
Another idea would be to overload the find-implementations to work in reverse as well. In other words, if you run find-implementations on a concrete type or method, it would show you the interface types/methods that are implemented.