Debian Codegraph @

gopls/internal/test/marker/testdata/hover/linkname.txt

raw
1 This test check hover on the 2nd argument in go:linkname directives.
2
3 -- go.mod --
4 module mod.com
5
6 -- upper/upper.go --
7 package upper
8
9 import (
10 _ "unsafe"
11 _ "mod.com/lower"
12 )
13
14 //go:linkname foo mod.com/lower.bar //@hover("mod.com/lower.bar", "mod.com/lower.bar", bar)
15 func foo() string
16
17 -- lower/lower.go --
18 package lower
19
20 // bar does foo.
21 func bar() string {
22 return "foo by bar"
23 }
24
25 var _ = bar
26
27 -- @bar --
28 ```go
29 func bar() string
30 ```
31
32 ---
33
34 bar does foo.