-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/typeparams: add a helper to return the origin method
With instantiated types, method objects are no longer unique: they may be instantiations of methods with generic receiver. However, some use-cases require finding the canonical method representing the method in the source. For these use-cases, provide an OriginMethod helper. For golang/go#50447 Change-Id: I6f8af3fb5c5eeefb11f8f3bdba54cd6692ca389f Reviewed-on: https://go-review.googlesource.com/c/tools/+/380554 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> Reviewed-by: Tim King <taking@google.com>
- Loading branch information
Showing
2 changed files
with
157 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters