1
0
mirror of https://github.com/golang/go synced 2024-10-01 01:48:32 -06:00
go/internal/lsp/cache
Rebecca Stambler 7b79afddac internal/lsp: add a source.Package interface
This change adds a Package interface to the source package, which allows
us to reduce the information cached per-package (we don't use any of the
unnecessary fields in a *go/packages.Package).

This change also adds an analysis cache for each package, which is used
to cache the results of analyses to avoid recomputation.

Change-Id: I56c6b5ed51126c27f46731c87ac4eeacc63cb81a
Reviewed-on: https://go-review.googlesource.com/c/tools/+/165750
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2019-03-12 16:49:27 +00:00
..
check.go internal/lsp: add a source.Package interface 2019-03-12 16:49:27 +00:00
file.go internal/lsp: add a source.Package interface 2019-03-12 16:49:27 +00:00
pkg.go internal/lsp: add a source.Package interface 2019-03-12 16:49:27 +00:00
view.go internal/lsp: add a source.Package interface 2019-03-12 16:49:27 +00:00