Skip to content

Commit

Permalink
feat: include edge in output of kythe xrefs for definitions and ref…
Browse files Browse the repository at this point in the history
…erences (kythe#5111)
  • Loading branch information
jaysachs authored Oct 21, 2021
1 parent ef84862 commit 139d0ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kythe/go/services/cli/commands_xrefs.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,10 @@ func displayRelatedAnchors(kind string, anchors []*xpb.CrossReferencesReply_Rela
return err
}
}
if _, err := fmt.Fprintf(out, " [%d:%d-%d:%d)\n %q\n",
if _, err := fmt.Fprintf(out, " [%d:%d-%d:%d %s)\n %q\n",
a.Anchor.Span.Start.LineNumber, a.Anchor.Span.Start.ColumnOffset,
a.Anchor.Span.End.LineNumber, a.Anchor.Span.End.ColumnOffset,
string(a.Anchor.Snippet)); err != nil {
a.Anchor.GetKind(), string(a.Anchor.Snippet)); err != nil {
return err
}
for _, site := range a.Site {
Expand Down

0 comments on commit 139d0ac

Please sign in to comment.