commit | e491332ed8cc1fe97843bb892f55fba0bb410c5a | [log] [tgz] |
---|---|---|
author | Suzy Mueller <suzmue@golang.org> | Mon Jul 08 17:14:33 2019 -0700 |
committer | Suzy Mueller <suzmue@golang.org> | Tue Jul 09 18:45:27 2019 +0000 |
tree | d15839bc85ed5a8726daf123af99dbbb4f146a5c | |
parent | d255de4fdb38f8f5dbaf12b83013784a30f97a55 [diff] |
internal/lsp: compare names when finding references Objects for builtin types all have position token.NoPos. We do not want all objects that have position token.NoPos to be matched when we are looking for references for this object, so we need to compare the names of the objects as well. Fixes golang/go#32991 Change-Id: I67e7aba9909ebcbb246203ea5c572debf996c792 Reviewed-on: https://go-review.googlesource.com/c/tools/+/185247 Run-TryBot: Suzy Mueller <suzmue@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
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 get
.
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 get -u golang.org/x/tools/...
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/tools
.
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.