3 // Tests of 'implements' query applied to methods, -output=json.
4 // See go.tools/guru/guru_test.go for explanation.
5 // See implements-methods.golden for expected query results.
13 f() // @implements F.f "f"
17 f() // @implements FG.f "f"
18 g() []int // @implements FG.g "g"
24 func (c *C) f() {} // @implements *C.f "f"
25 func (d D) f() {} // @implements D.f "f"
27 func (d *D) g() []int { return nil } // @implements *D.g "g"
31 func (sorter) Len() int { return 0 } // @implements Len "Len"
32 func (sorter) Less(i, j int) bool { return false }
33 func (sorter) Swap(i, j int) {}
36 Method(*int) *int // @implements I.Method "Method"