mirror of
https://github.com/golang/go
synced 2024-09-30 20:28:32 -06:00
b793a1359e
* Adds outgoing calls call hierarchy for function declarations to gopls. Returns all call ranges and call items for functions/literals being called. * Adds tests for outgoing call. * Updates cmd to account for call ranges and call items being in different files for outgoing calls. * Updates prepare call hierarchy to return declaration as root instead of cursor position. Example: Example shows https://github.com/golang/tools/blob/master/internal/lsp/source/call_hierarchy.go Show Call Hierarchy View: https://imgur.com/a/DA5vc6l Peek Call Hierarchy View: https://imgur.com/a/fuiG0Be Note: * While incoming calls for a function defined in an interface return references to that function, outgoing calls don't return anything since we don't know what implementation to return outgoing calls for.* Outgoing calls to function literals show as variable name used to define the literal, compared to <scope>.func() for incoming calls. Change-Id: Ib8afbd8617675d12952db0b80170ada5988e90ab Reviewed-on: https://go-review.googlesource.com/c/tools/+/248537 Run-TryBot: Danish Dua <danishdua@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com> |
||
---|---|---|
.. | ||
call_hierarchy.go | ||
code_lens.go | ||
command.go | ||
comment_test.go | ||
comment.go | ||
completion_builtin.go | ||
completion_format.go | ||
completion_keywords.go | ||
completion_labels.go | ||
completion_literal.go | ||
completion_snippet.go | ||
completion_statements.go | ||
completion.go | ||
deep_completion_test.go | ||
deep_completion.go | ||
diagnostics.go | ||
extract.go | ||
folding_range.go | ||
format_test.go | ||
format.go | ||
gc_annotations.go | ||
highlight.go | ||
hover.go | ||
identifier_test.go | ||
identifier.go | ||
implementation.go | ||
options.go | ||
references.go | ||
rename_check.go | ||
rename.go | ||
signature_help.go | ||
source_test.go | ||
symbols.go | ||
types_format.go | ||
util.go | ||
view.go | ||
workspace_symbol.go |