go/gopls/internal/lsp/cmd
Robert Findley b93a56f289 refactor/satisfy: fix visiting functions in the unsafe package
Unlike other calls of qualified functions, the type of certain functions
in the unsafe package (namely Slice, Add) is not constant, and cannot be
determined by the types.Func being called. Update Finder.expr to
pre-emptively handle calls to functions in the unsafe package, similarly
to how it handles other builtins.

Fixes golang/go#56227

Change-Id: I7af51c1ecacbdf35e39c8e7b8273ffe6f953427f
Reviewed-on: https://go-review.googlesource.com/c/tools/+/443096
Reviewed-by: Alan Donovan <adonovan@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-10-17 12:57:23 +00:00
..
test refactor/satisfy: fix visiting functions in the unsafe package 2022-10-17 12:57:23 +00:00
usage gopls/internal/lsp: use the golang.org/x/vuln/exp/govulncheck 2022-10-11 21:42:28 +00:00
call_hierarchy.go gopls/internal/span: move internal/span into gopls 2022-10-07 14:50:44 +00:00
capabilities_test.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
check.go gopls/internal/span: move internal/span into gopls 2022-10-07 14:50:44 +00:00
cmd.go gopls/internal/span: move internal/span into gopls 2022-10-07 14:50:44 +00:00
definition.go gopls/internal/span: move internal/span into gopls 2022-10-07 14:50:44 +00:00
folding_range.go gopls/internal/span: move internal/span into gopls 2022-10-07 14:50:44 +00:00
format.go internal/diff: ToUnified may fail 2022-10-07 15:16:55 +00:00
help_test.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
highlight.go gopls/internal/span: move internal/span into gopls 2022-10-07 14:50:44 +00:00
implementation.go gopls/internal/span: move internal/span into gopls 2022-10-07 14:50:44 +00:00
imports.go internal/diff: ToUnified may fail 2022-10-07 15:16:55 +00:00
info.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
links.go gopls/internal/span: move internal/span into gopls 2022-10-07 14:50:44 +00:00
prepare_rename.go gopls/internal/span: move internal/span into gopls 2022-10-07 14:50:44 +00:00
references.go gopls/internal/span: move internal/span into gopls 2022-10-07 14:50:44 +00:00
remote.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
rename.go internal/diff: ToUnified may fail 2022-10-07 15:16:55 +00:00
semantictokens.go gopls/internal/span: move internal/span into gopls 2022-10-07 14:50:44 +00:00
serve.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
signature.go gopls/internal/span: move internal/span into gopls 2022-10-07 14:50:44 +00:00
subcommands.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
suggested_fix.go internal/diff: ToUnified may fail 2022-10-07 15:16:55 +00:00
symbols.go gopls/internal/span: move internal/span into gopls 2022-10-07 14:50:44 +00:00
vulncheck.go gopls/internal/lsp: use the golang.org/x/vuln/exp/govulncheck 2022-10-11 21:42:28 +00:00
workspace.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
workspace_symbol.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00