golang.org/x/tools/gopls@v0.15.3/internal/test/marker/testdata/symbol/generic.txt (about) 1 Basic tests of textDocument/documentSymbols with generics. 2 3 -- symbol.go -- 4 //@symbol(want) 5 6 //go:build go1.18 7 // +build go1.18 8 9 package main 10 11 type T[P any] struct { 12 F P 13 } 14 15 type Constraint interface { 16 ~int | struct{ int } 17 interface{ M() } 18 } 19 20 -- @want -- 21 Constraint "interface{...}" +3 lines 22 Constraint.interface{...} "" 23 Constraint.interface{...}.M "func()" 24 Constraint.~int | struct{int} "" 25 T "struct{...}" +2 lines 26 T.F "P"