commit | ea5e1dc8bc30f53cf48f1eff344a001537f1ba9d | [log] [tgz] |
---|---|---|
author | Robert Findley <rfindley@google.com> | Mon Jan 24 11:16:17 2022 -0500 |
committer | Robert Findley <rfindley@google.com> | Thu Feb 03 14:02:38 2022 +0000 |
tree | 0c1b0798e8d9c82f84eab05c02ef23f10db35ec7 | |
parent | a739c973048b7e5b968f3b2c8bd0417a2fb01f99 [diff] |
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>
This subrepository holds the source for various packages and tools that support the Go programming language.
Some of the tools, godoc
and vet
for example, are included in binary Go distributions.
Others, including the Go guru
and the test coverage tool, can be fetched with go install
.
Packages include a type-checker for Go and an implementation of the Static Single Assignment form (SSA) representation for Go programs.
The easiest way to install is to run go install golang.org/x/tools/...@latest
.
This repository uses prettier to format JS and CSS files.
The version of prettier
used is 1.18.2.
It is encouraged that all JS and CSS code be run through this before submitting a change. However, it is not a strict requirement enforced by CI.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the tools repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/tools/(your subdir):” in the subject line, so it is easy to find.