commit | e5d681aac72bcc5f4cab2808ddbcdf99faeaa504 | [log] [tgz] |
---|---|---|
author | Josh Baum <joshbaum@google.com> | Mon Aug 03 16:57:56 2020 -0400 |
committer | Josh Baum <joshbaum@google.com> | Wed Aug 05 14:29:31 2020 +0000 |
tree | 4394b77963295ae15dfd18d976967b5ce0954860 | |
parent | fec4f28ebb0880b03cfd9dd88788d13d5bdd6620 [diff] |
internal/lsp: remove excess 'zero values' in return statements In the previous implementation, fillreturns only altered return statements that contained too few values. Now, fillreturns also examines return statements with too many return values. In these situations, we remove any value that is a "zero value" and does not match a type in the return signature. Change-Id: I7548307234ff4b16534b72a8aead95a322eb535a Reviewed-on: https://go-review.googlesource.com/c/tools/+/246520 Run-TryBot: Josh Baum <joshbaum@google.com> 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 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.