Change information
Commit message:
gopls/internal/golang: add util function NarrowestDeclaringPackage
In complicated static analysis, gopls sometimes need to type check
the second package which contains the decl of an interested obj.
This utility function help gopls to easily type check the second
package which contains the decl of given object.
Change-Id: I96d5dd72661dbcdda611c44490bba096819dc6f2
Files:
- M gopls/internal/golang/call_hierarchy.go
- M gopls/internal/golang/hover.go
- M gopls/internal/golang/inline.go
- M gopls/internal/golang/snapshot.go
Change size: M
Delta: 4 files changed, 38 insertions(+), 41 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Code-Review: +2 by Alan Donovan
TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI