Debian Codegraph @

gopls/internal/test/marker/testdata/symbol/generic.txt

raw
1 Basic tests of textDocument/documentSymbols with generics.
2
3 -- symbol.go --
4 //@symbol(want)
5
6 package main
7
8 type T[P any] struct {
9 F P
10 }
11
12 type Constraint interface {
13 ~int | struct{ int }
14 interface{ M() }
15 }
16
17 -- @want --
18 Constraint "interface{...}" +3 lines
19 Constraint.interface{...} ""
20 Constraint.interface{...}.M "func()"
21 Constraint.~int | struct{int} ""
22 T "struct{...}" +2 lines
23 T.F "P"