commit | 49a3e744a42570834b70bfa2a7308c73f5bc6bc3 | [log] [tgz] |
---|---|---|
author | Muir Manders <muir@mnd.rs> | Fri Dec 13 16:17:40 2019 -0800 |
committer | Rebecca Stambler <rstambler@golang.org> | Mon Dec 16 05:27:35 2019 +0000 |
tree | 0061566447b42c0b627c66417c632575bdf97e40 | |
parent | 04c2e8eff935f58e9a5568b6b73542f91e0491e6 [diff] |
internal/lsp: remove useless signature cast completion candidate In a previous change I inadvertently added completion candidates like: var f func(int) f = <> // useless candidate "func(int)(<>)" Ignoring the fact it is a syntax error without more parens around the signature, it isn't a useful candidate because you don't need to cast when assigning a named signature type to an unnamed type. Change-Id: Ic261817af344ee47193240a11dca5d3a32cbd293 Reviewed-on: https://go-review.googlesource.com/c/tools/+/211319 Run-TryBot: Muir Manders <muir@mnd.rs> 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.