commit | 62ee03427e2169b55547bd25ef90a4cfd52939cf | [log] [tgz] |
---|---|---|
author | Rebecca Stambler <rstambler@golang.org> | Tue Jul 09 17:52:23 2019 -0400 |
committer | Rebecca Stambler <rstambler@golang.org> | Tue Aug 13 21:41:43 2019 +0000 |
tree | 236e9e0fd46facbb956b10c5fc5a24d4ba6630b1 | |
parent | 41f33577853e5764f75b287499f95aee85a0d5e8 [diff] |
internal/lsp: use memoize package to cache source.Packages This change eliminates the need for the package cache map, and instead stores package type information in the store. We still have to maintain invalidation logic because the key is not computed correctly. Change-Id: I1c2a7502b99491ef0ff68d68c9f439503d531ff1 Reviewed-on: https://go-review.googlesource.com/c/tools/+/185438 Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@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.