1
0
mirror of https://github.com/golang/go synced 2024-10-01 11:28:34 -06:00
go/internal/lsp/testdata/unimported
Heschi Kreinick 3d14842334 internal/imports: load test exports of package under test
x_tests can access exports from the test variant of the package under
test. Change loadExportsFromFiles to understand that mode, and use it
where appropriate.

I didn't want to come up with a cache key for for the test variant, so
for now we bypass the cache in these situations.

Fixes golang/go#29979.

Change-Id: I9959a08da97bbee64c5bcd56e06f548486693156
Reviewed-on: https://go-review.googlesource.com/c/tools/+/213221
Run-TryBot: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-01-14 23:54:10 +00:00
..
export_test.go internal/imports: load test exports of package under test 2020-01-14 23:54:10 +00:00
unimported_cand_type.go internal/lsp: use available type info for unimported completions 2019-11-04 21:31:10 +00:00
unimported.go.in internal/lsp/source: cap number of unimported completions 2019-12-06 20:21:18 +00:00
x_test.go internal/imports: load test exports of package under test 2020-01-14 23:54:10 +00:00