mirror of https://github.com/golang/go.git
Don't search for a matching method on all types in the package scope when we can trivially determine the type's name. This avoids both a linear search over the scope, as well as the currently rather costly call to scope.Names itself. Updates golang/go#51017 Change-Id: I614f4b1b149d6b42728d3f22f5e47e8ff87a5392 Reviewed-on: https://go-review.googlesource.com/c/tools/+/404514 Run-TryBot: Alan Donovan <adonovan@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> Run-TryBot: Dominik Honnef <dominik@honnef.co> Reviewed-by: Alan Donovan <adonovan@google.com> Reviewed-by: Robert Findley <rfindley@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> |
||
|---|---|---|
| .. | ||
| objectpath | ||
| typeutil | ||