Skip to content

Commit a671e10

Browse files
authored
Add syntax kinds to testutil output (#342)
Add syntax kinds to testutil output.
1 parent fc864ca commit a671e10

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bindings/go/scip/testutil/format.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@ func FormatSnapshot(
128128
}
129129

130130
if info, ok := symtab[occ.Symbol]; ok && isDefinition {
131+
if info.Kind != scip.SymbolInformation_UnspecifiedKind {
132+
b.WriteString(prefix)
133+
b.WriteString("kind ")
134+
b.WriteString(info.Kind.String())
135+
}
136+
131137
for _, documentation := range info.Documentation {
132138
// At least get the first line of documentation if there is leading whitespace
133139
documentation = strings.TrimSpace(documentation)

0 commit comments

Comments
 (0)