go/internal/span
Robert Findley 2bb78cf04e internal/lsp: add missing bug reporting, and panic during marker tests
Add additional bug reporting related to position invariants, and update
marker test runners to panic on encountered bugs.

This revealed a panic on older Go versions, where we try to create a
range for a missing package name span. Lift the check into the caller
for this case, and leave a big comment explaining that
checkForOrphanedFile probably shouldn't be so tolerant of invalid calls.

Change-Id: Ie16a07afba0f8a5682cca50ad8f04450bfa2da65
Reviewed-on: https://go-review.googlesource.com/c/tools/+/407885
Reviewed-by: Alan Donovan <adonovan@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
2022-05-31 14:14:38 +00:00
..
parse.go internal/lsp/cache: parse filenames from go list errors correctly 2021-03-02 01:39:30 +00:00
span.go internal/span: eliminate Converter and FileConverter 2022-05-17 16:08:12 +00:00
span_test.go internal/span: eliminate Converter and FileConverter 2022-05-17 16:08:12 +00:00
token.go internal/lsp: add missing bug reporting, and panic during marker tests 2022-05-31 14:14:38 +00:00
token_test.go internal/span: eliminate Converter and FileConverter 2022-05-17 16:08:12 +00:00
uri.go internal/span: fix a comment about windows drive letters 2021-08-03 19:59:22 +00:00
uri_test.go all: go fmt ./... 2021-02-20 03:28:52 +00:00
uri_windows_test.go all: go fmt ./... 2021-02-20 03:28:52 +00:00
utf16.go internal/span: compute utf16 length directly 2021-05-20 14:08:36 +00:00
utf16_test.go internal/span: remove check for nil content 2020-09-02 00:13:12 +00:00