commit | 2b03ca6e44eb97adb8824db161059e54d6014dc3 | [log] [tgz] |
---|---|---|
author | Michael Matloob <matloob@golang.org> | Tue May 28 16:31:28 2019 -0400 |
committer | Michael Matloob <matloob@golang.org> | Thu May 30 17:14:27 2019 +0000 |
tree | bfad0dd4fa8e8f0f6e193cbe9b98f46d05912b0e | |
parent | 12d73424210d5399ae74d7e94f5c464d70d02406 [diff] |
go/analysis: add an End field to Diagnostic This will allow diagnostics to denote the range they apply to. The ranges are now interpreted using the internal/span library. This is primarily intended for the benefit of the LSP, which will be able to (in future CLs) more accurately highlight the part of the code a diagnostic applies to. Change-Id: Ic35cec2b21060c9dc6a8f5ebb7faa62d81a07435 Reviewed-on: https://go-review.googlesource.com/c/tools/+/179237 Run-TryBot: Michael Matloob <matloob@golang.org> Reviewed-by: Ian Cottrell <iancottrell@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 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.