commit | 634482edb0fcd73d56422bcb014f29ad51f8ff88 | [log] [tgz] |
---|---|---|
author | Rebecca Stambler <rstambler@golang.org> | Thu Nov 14 13:10:28 2019 -0500 |
committer | Rebecca Stambler <rstambler@golang.org> | Thu Nov 14 22:23:41 2019 +0000 |
tree | 33d17b57e81800a8458b130d3fc4544effec57bf | |
parent | caa0b0f7d508201474af7e7db3ebee9b0fc6bd37 [diff] |
internal/lsp: ignore AST errors when generating import edits go/parser.ParseFile can return both an AST and errors. We should still be able to do import organization even if the AST contains errors, as long as they are below the portion of the file that contains the import block. Change-Id: Id6b86171fca3e15d02910d1c6f4ce25e803754d0 Reviewed-on: https://go-review.googlesource.com/c/tools/+/207261 Run-TryBot: Rebecca Stambler <rstambler@golang.org> Reviewed-by: Heschi Kreinick <heschi@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.