Debian Codegraph @

gopls/internal/test/marker/testdata/definition/nearby.txt

raw
1 This test checks the "nearby" logic of golang.objectsAt
2 as used by Definition. The query is on the "*" of "*T"
3 yet resolves to T.
4
5 -- go.mod --
6 module mod.com
7 go 1.18
8
9 -- a/a.go --
10 package a
11
12 type T int //@ loc(T, "T")
13
14 var _ * T //@ def("*", T)