1
0
mirror of https://github.com/golang/go synced 2024-11-19 03:44:40 -07:00
go/internal/lsp/cache
Brian Falk 77adbdfd2c internal/lsp: report use of disallowed internal packages
An error should be reported if an "internal" package is imported
into code that is outside of the tree rooted at the parent
of the "internal" directory.

Fixes #35937

Change-Id: If5ff3dd79b462087381d575dddb20b78c10f0a83
GitHub-Last-Rev: f5d19960046da7f9701325afc36b5bd0b9663ab6
GitHub-Pull-Request: golang/tools#207
Reviewed-on: https://go-review.googlesource.com/c/tools/+/218977
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2020-02-19 20:30:42 +00:00
..
analysis.go internal/lsp/cache: hardcode parse modes instead of guessing them 2020-02-07 20:00:15 +00:00
cache.go internal/lsp/cache: return concrete types where possible 2020-02-19 18:42:16 +00:00
check.go internal/lsp: report use of disallowed internal packages 2020-02-19 20:30:42 +00:00
debug.go internal/lsp/cache: return concrete types where possible 2020-02-19 18:42:16 +00:00
error_test.go internal/lsp: refactor error handling code in type-checking 2019-10-21 18:57:46 +00:00
errors.go internal/span,lsp: disambiguate URIs, DocumentURIs, and paths 2020-02-14 22:51:03 +00:00
external.go internal/lsp: check that a file handle is unmodified before read 2020-01-23 20:52:07 +00:00
load.go internal/lsp: add module versions from "go list" to pkg.go.dev links 2020-02-19 19:55:21 +00:00
mod.go internal/lsp/cache: parse go.mod file before running go mod tidy 2020-02-14 20:11:35 +00:00
parse.go internal/lsp/cache: return concrete types where possible 2020-02-19 18:42:16 +00:00
pkg.go internal/lsp: add module versions from "go list" to pkg.go.dev links 2020-02-19 19:55:21 +00:00
session.go internal/lsp/cache: return concrete types where possible 2020-02-19 18:42:16 +00:00
snapshot.go internal/lsp: fix error handling when getting go.mod codelens 2020-02-14 19:54:16 +00:00
view.go internal/lsp/cache: return concrete types where possible 2020-02-19 18:42:16 +00:00