mirror of
https://github.com/golang/go
synced 2024-11-18 15:04:44 -07:00
1365742343
* Adds incoming calls hierarchy to gopls. Returns function declarations/function literals/files enclosing the call/s to the function being inpected. * Updates cmd to show ranges where calls to function in consideration are made by the caller. * Added tests for incoming calls. Example: This example shows call hierarchy for PathEnclosingInterval in tools/go/ast/astutil.go Show Call Hierarchy View: https://imgur.com/a/9VhspgA Peek Call Hierarchy View: https://imgur.com/a/XlKubFk Note: * Function literals show up as <scope>.func() in call hierarchy since they don't have a name. Here scope is either the function enclosing the literal or a file for top level declarations * Top level calls (calls not inside a function, ex: to initialize exported variables) show up as the file name * Clicking on an item shows the the range where a call is made in the scope Change-Id: I56426139e4e550dfabe43c9e9f1838efd1e43e38 Reviewed-on: https://go-review.googlesource.com/c/tools/+/247699 Run-TryBot: Danish Dua <danishdua@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com> |
||
---|---|---|
.. | ||
lsp | ||
missingdep | ||
missingtwodep | ||
unused | ||
upgradedep |