go/internal/lsp/testdata/workspacesymbol
Rob Findley 3e1cb95235 internal/lsp/source: correct workspace symbol logic for unpacking receivers
The logic to extract the receiver identifier from a func decl was
incorrect, accepting only the common T and *T syntaxes, and panicking on
*(T).

Fix this by copying the logic from go/types.

Fixes golang/go#44806

Change-Id: I1c87ab21ac04e484972bc4161180ca1112df3c73
Reviewed-on: https://go-review.googlesource.com/c/tools/+/298852
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2021-03-05 19:21:50 +00:00
..
a internal/lsp: remove multi-module support in tests 2020-09-22 16:28:30 +00:00
b internal/lsp: remove multi-module support in tests 2020-09-22 16:28:30 +00:00
p internal/lsp: rewrite the workspace symbol marker tests 2020-11-24 17:38:01 +00:00
issue44806.go internal/lsp/source: correct workspace symbol logic for unpacking receivers 2021-03-05 19:21:50 +00:00
main.go internal/lsp: rewrite the workspace symbol marker tests 2020-11-24 17:38:01 +00:00
query.go internal/lsp: rewrite the workspace symbol marker tests 2020-11-24 17:38:01 +00:00
query.go.golden internal/lsp: switch the default symbol style to dynamic 2020-11-24 17:38:11 +00:00