go/internal/lsp/testdata/semantic
pjw 0cf4e2708a internal/lsp/semantic: improve semantic token processing
There is insufficient type information to compute semantic tokens in
packages that don't compile. Particularly affected are test files
and files being actively edited in new packages.
Further, existing code could
panic on poorly formed imports; this has been fixed.
Computing semantic tokens for identifiers
having neither use or definition information has been improved.
(Each of the many cases in the new function unkIdent() occurs
in existing code or test files.)

Change-Id: Id1b5db0622b17076de1ed23a950a20cd03c3750a
Reviewed-on: https://go-review.googlesource.com/c/tools/+/333869
Run-TryBot: Peter Weinberger <pjw@google.com>
Trust: Peter Weinberger <pjw@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
2021-07-14 22:42:09 +00:00
..
README.md internal/lsp: in semantic tokens, better distinguish between types and variables 2021-05-11 14:51:35 +00:00
a.go internal/lsp/semantic: improve semantic token processing 2021-07-14 22:42:09 +00:00
a.go.golden internal/lsp/semantic: improve semantic token processing 2021-07-14 22:42:09 +00:00
b.go internal/lsp: in semantic tokens, better distinguish between types and variables 2021-05-11 14:51:35 +00:00
b.go.golden internal/lsp: in semantic tokens, better distinguish between types and variables 2021-05-11 14:51:35 +00:00
semantic_test.go

README.md

The golden files are the output of gopls semtok <src-file>, with -- semantic -- inserted as the first line (the spaces are mandatory) and an extra newline at the end.