mirror of
https://github.com/golang/go
synced 2024-11-05 22:46:12 -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> |
||
---|---|---|
.. | ||
test | ||
call_hierarchy.go | ||
capabilities_test.go | ||
check.go | ||
cmd_test.go | ||
cmd.go | ||
definition.go | ||
export_test.go | ||
folding_range.go | ||
format.go | ||
highlight.go | ||
implementation.go | ||
imports.go | ||
info.go | ||
inspect.go | ||
links.go | ||
prepare_rename.go | ||
references.go | ||
rename.go | ||
serve_test.go | ||
serve.go | ||
signature.go | ||
suggested_fix.go | ||
symbols.go | ||
workspace_symbol.go |