go/gopls/internal
Alan Donovan 57f56abcb0 gopls/internal/lsp/source: avoid panic(nil)
The previous code used panic(nil) as a longjump. However,
if a library function such as Node.Pos() were to panic(nil),
we would catch it spuriously instead of reporting the panic
by crashing the program. This change uses a new type, found,
as a sentinal for the non-local jump.

Updates golang/go#25448

Change-Id: I2439432a7ca477d0c25c9c848a98308a378b089b
Reviewed-on: https://go-review.googlesource.com/c/tools/+/452515
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Alan Donovan <adonovan@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-11-21 20:06:45 +00:00
..
coverage gopls/coverage: repair coverage.go 2022-11-07 18:26:12 +00:00
govulncheck gopls/internal/lsp: add gopls.fetch_vulncheck_result 2022-11-18 21:44:59 +00:00
hooks gopls: update dependencies following the v0.10.0 release 2022-11-04 16:52:27 +00:00
lsp gopls/internal/lsp/source: avoid panic(nil) 2022-11-21 20:06:45 +00:00
regtest gopls/internal/lsp: add gopls.fetch_vulncheck_result 2022-11-18 21:44:59 +00:00
robustio internal/robustio: fix log.Fatal calls that should be log.Fatalf 2022-10-10 21:31:25 +00:00
span gopls/internal/lsp: tolerate missing end position in RelatedInformation 2022-10-19 18:04:39 +00:00
vulncheck gopls/internal/vulncheck: log progress 2022-11-18 20:21:45 +00:00
migrate.sh gopls/internal/migrate.sh: a script to migrate internal/lsp to gopls/ 2022-09-07 14:10:36 +00:00