Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gopls/internal/lsp/safetoken: fix error message
This change uses [x:y] notation in the error message to indicate an inclusive interval, which is what the logic actually implements. We also include the file name. Also, put the inequalities in lo <= x <= hi form for clarity, and inline/simplify the token.File.Pos/Offset calls to avoid the redundant double-check. Updates golang/go#57484 Change-Id: I63e10d0e6659aae2613b5b7d51e87a8a4bfb225d Reviewed-on: https://go-review.googlesource.com/c/tools/+/459637 Run-TryBot: Alan Donovan <adonovan@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
- Loading branch information