Skip to content

Commit

Permalink
feat(sample-web-ui): display callers in xrefs panel (#3221)
Browse files Browse the repository at this point in the history
  • Loading branch information
schroederc committed Nov 5, 2018
1 parent ee5fcb7 commit 5c563dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions kythe/web/ui/src-cljs/ui/service.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
{:params (merge {:definition_kind "BINDING_DEFINITIONS"
:declaration_kind "ALL_DECLARATIONS"
:reference_kind "NON_CALL_REFERENCES"
:caller_kind "OVERRIDE_CALLERS"
:snippets "DEFAULT"
:filter [schema/node-kind-fact]
:anchor_text true
Expand Down
2 changes: 2 additions & 0 deletions kythe/web/ui/src-cljs/ui/xrefs.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@
(display-related-anchors "Definitions:" (:definition (:cross-references state)) file-to-view)
(display-related-anchors "Declarations:" (:declaration (:cross-references state)) file-to-view)
(display-related-anchors "Documentation:" (:documentation (:cross-references state)) file-to-view)
;; TODO(schroederc): list callsites within each caller
(display-related-anchors "Callers:" (:caller (:cross-references state)) file-to-view)
(display-related-anchors "References:" (:reference (:cross-references state)) file-to-view)
(when (:related_node (:cross-references state))
(dom/ul nil
Expand Down

0 comments on commit 5c563dc

Please sign in to comment.