github.com/v2fly/tools@v0.100.0/internal/lsp/testdata/references/other/other.go (about) 1 package other 2 3 import ( 4 references "github.com/v2fly/tools/internal/lsp/references" 5 ) 6 7 func GetXes() []references.X { 8 return []references.X{ 9 { 10 Y: 1, //@mark(GetXesY, "Y"),refs("Y", typeXY, GetXesY, anotherXY) 11 }, 12 } 13 } 14 15 func _() { 16 references.Q = "hello" //@mark(assignExpQ, "Q") 17 bob := func(_ string) {} 18 bob(references.Q) //@mark(bobExpQ, "Q") 19 }