go/gopls/internal/lsp/cache
Alan Donovan 13648cdeaf gopls/internal/lsp/cache: use Package.FileSet where possible
This change adds a FileSet field to Package, and uses it in
preference to Snapshot.FileSet wherever that is appropriate:
all but a handful of places.

For now, they must continue to refer to the same instance,
but once we do away with the Snapshot's cache of parsed files,
there will be no need for a global FileSet and each Package
will be able to create its own. (Some care will be required
to make sure it is always clear which package owns each
each token.Pos/ast.Node/types.Object when there are several
in play.)

Updates golang/go#56291

Change-Id: I017eb794ffb737550da6ae88462d23a8f5c1e1e7
Reviewed-on: https://go-review.googlesource.com/c/tools/+/448377
Run-TryBot: Alan Donovan <adonovan@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
2022-11-11 15:24:32 +00:00
..
analysis.go gopls/internal/lsp/cache: use Package.FileSet where possible 2022-11-11 15:24:32 +00:00
cache.go gopls/internal/span: move internal/span into gopls 2022-10-07 14:50:44 +00:00
check.go gopls/internal/lsp/cache: use Package.FileSet where possible 2022-11-11 15:24:32 +00:00
debug.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
error_test.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
errors.go gopls/internal/lsp/cache: use Package.FileSet where possible 2022-11-11 15:24:32 +00:00
graph.go gopls/internal/lsp/cache: use typed strings (PackagePath et al) throughout 2022-11-11 03:59:42 +00:00
imports.go internal/lsp/cache: simplify importsState modfile hashing logic 2022-11-04 18:06:00 +00:00
keys.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
load.go gopls/internal/lsp/cache: use Package.FileSet where possible 2022-11-11 15:24:32 +00:00
maps.go gopls/internal/span: move internal/span into gopls 2022-10-07 14:50:44 +00:00
metadata.go gopls/internal/lsp/cache: use typed strings (PackagePath et al) throughout 2022-11-11 03:59:42 +00:00
mod.go gopls/internal/span: some cleanups 2022-10-13 13:15:27 +00:00
mod_tidy.go gopls/internal/lsp/cache: better import path hygiene 2022-10-19 21:54:36 +00:00
os_darwin.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
os_windows.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
parse.go gopls/internal/lsp/cache: use Package.FileSet where possible 2022-11-11 15:24:32 +00:00
parse_test.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
parsemode_go116.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
parsemode_go117.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
pkg.go gopls/internal/lsp/cache: use Package.FileSet where possible 2022-11-11 15:24:32 +00:00
session.go gopls: sync golang.org/x/vuln@3af8368ee4fe 2022-11-10 23:14:17 +00:00
snapshot.go gopls/internal/lsp/cache: use typed strings (PackagePath et al) throughout 2022-11-11 03:59:42 +00:00
standalone_go115.go gopls/internal/lsp/cache: add support for loading standalone main files 2022-10-13 15:07:40 +00:00
standalone_go116.go gopls/internal/lsp/cache: remove stray print statement 2022-10-13 17:41:26 +00:00
standalone_go116_test.go gopls: minor cleanup of standalone package support 2022-10-19 19:08:58 +00:00
symbols.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
view.go gopls: sync golang.org/x/vuln@3af8368ee4fe 2022-11-10 23:14:17 +00:00
view_test.go gopls/internal/span: move internal/span into gopls 2022-10-07 14:50:44 +00:00
workspace.go internal/lsp/cache: simplify importsState modfile hashing logic 2022-11-04 18:06:00 +00:00
workspace_test.go internal/lsp/cache: simplify importsState modfile hashing logic 2022-11-04 18:06:00 +00:00