3 // Tests of 'implements' query.
4 // See go.tools/guru/guru_test.go for explanation.
5 // See implements.golden for expected query results.
12 type E interface{} // @implements E "E"
14 type F interface { // @implements F "F"
18 type FG interface { // @implements FG "FG"
20 g() []int // @implements slice "..int"
23 type C int // @implements C "C"
26 func (c *C) f() {} // @implements starC ".C"
27 func (d D) f() {} // @implements D "D"
29 func (d *D) g() []int { return nil } // @implements starD ".D"
31 type sorter []int // @implements sorter "sorter"
33 func (sorter) Len() int { return 0 }
34 func (sorter) Less(i, j int) bool { return false }
35 func (sorter) Swap(i, j int) {}
37 type I interface { // @implements I "I"
43 _ = d // @implements var_d "d"