mirror of https://github.com/golang/go.git
The lexicalLookup function is used to determine if a use of an object would be shadowed by a different definition after a rename. Switch to using LookupParent which is more careful about the positions of the identifiers. Fixes golang/go#47583 Change-Id: I3dbdf79e537ce637d1276ddbecb094db21f1c26d Reviewed-on: https://go-review.googlesource.com/c/tools/+/340551 Trust: Suzy Mueller <suzmue@golang.org> Run-TryBot: Suzy Mueller <suzmue@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com> |
||
|---|---|---|
| .. | ||
| analysisinternal | ||
| apidiff | ||
| event | ||
| fakenet | ||
| fastwalk | ||
| gocommand | ||
| gopathwalk | ||
| imports | ||
| jsonrpc2 | ||
| jsonrpc2_v2 | ||
| lsp | ||
| memoize | ||
| mod | ||
| packagesinternal | ||
| proxydir | ||
| span | ||
| stack | ||
| testenv | ||
| tool | ||
| typeparams | ||
| typesinternal | ||
| xcontext | ||