1
0
mirror of https://github.com/golang/go synced 2024-11-18 19:54:44 -07:00
go/internal/lsp/source
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
..
analysis.go internal/lsp: add a source.Package interface 2019-03-12 16:49:27 +00:00
completion.go internal/lsp: add a source.Package interface 2019-03-12 16:49:27 +00:00
definition.go internal/lsp: add a source.Package interface 2019-03-12 16:49:27 +00:00
diagnostics.go internal/lsp: add a source.Package interface 2019-03-12 16:49:27 +00:00
format.go internal/lsp: add cache for type information 2019-03-08 17:45:44 +00:00
signature_help.go internal/lsp: add a source.Package interface 2019-03-12 16:49:27 +00:00
uri_test.go internal/lsp/source: avoid having build tagged files for uri 2018-12-17 19:55:17 +00:00
uri.go internal/lsp: add ranges to some diagnostics messages 2018-12-20 19:13:07 +00:00
view.go internal/lsp: add a source.Package interface 2019-03-12 16:49:27 +00:00