mirror of https://github.com/golang/go.git
This is a minimal fix for the reported panic. The existing code used FileSet.Position() where it should have used FileSet.PositionFor(, false). gopls does this in lots of places; each use of Position() needs to be thought about. x/tools/go/ast/astutil/import.go:273,274 is another example. Fixes: golang/go#51916 Change-Id: I42de6affca2c97c09efb7974a9e44322556b3ffd Reviewed-on: https://go-review.googlesource.com/c/tools/+/398395 Run-TryBot: Peter Weinberger <pjw@google.com> Reviewed-by: Robert Griesemer <gri@golang.org> Reviewed-by: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> Trust: Peter Weinberger <pjw@google.com> |
||
|---|---|---|
| .. | ||
| analysisinternal | ||
| apidiff | ||
| event | ||
| fakenet | ||
| fastwalk | ||
| gocommand | ||
| gopathwalk | ||
| imports | ||
| jsonrpc2 | ||
| jsonrpc2_v2 | ||
| lsp | ||
| memoize | ||
| packagesinternal | ||
| proxydir | ||
| span | ||
| stack | ||
| testenv | ||
| tool | ||
| typeparams | ||
| typesinternal | ||
| xcontext | ||