go/internal/lsp/testdata/rename
Suzy Mueller f91c4a586e internal/lsp: use LookupParent for finding scope
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>
2021-08-11 21:39:32 +00:00
..
a
b
bad
c internal/lsp: do not rename in compiler directive comments 2020-11-03 16:52:30 +00:00
crosspkg
issue39614
issue42134 internal/lsp/source: fix comment update during rename for short variable declarations 2021-07-12 21:21:15 +00:00
issue43616 internal/lsp/source: make it an error to rename embedded fields 2021-01-26 13:52:46 +00:00
shadow internal/lsp: use LookupParent for finding scope 2021-08-11 21:39:32 +00:00
testy