1
0
mirror of https://github.com/golang/go synced 2024-11-19 06:54:39 -07:00
go/internal/lsp/testdata/godef/b/c.go.golden

55 lines
1.0 KiB
Plaintext
Raw Normal View History

-- S1-definition --
godef/b/b.go:8:6-8: defined here as S1 struct {
F1 int //@mark(S1F1, "F1")
S2 //@godef("S2", S2), mark(S1S2, "S2")
a.A //@godef("A", A)
}
-- S1-definition-json --
{
"span": {
"uri": "file://godef/b/b.go",
"start": {
"line": 8,
"column": 6,
"offset": 212
},
"end": {
"line": 8,
"column": 8,
"offset": 214
}
},
"description": "S1 struct {\n\tF1 int //@mark(S1F1, \"F1\")\n\tS2 //@godef(\"S2\", S2), mark(S1S2, \"S2\")\n\ta.A //@godef(\"A\", A)\n}"
}
-- S1-hover --
S1 struct {
F1 int //@mark(S1F1, "F1")
S2 //@godef("S2", S2), mark(S1S2, "S2")
a.A //@godef("A", A)
}
-- S1F1-definition --
godef/b/b.go:9:2-4: defined here as @mark(S1F1, "F1")
field F1 int
-- S1F1-definition-json --
{
"span": {
"uri": "file://godef/b/b.go",
"start": {
"line": 9,
"column": 2,
"offset": 231
},
"end": {
"line": 9,
"column": 4,
"offset": 233
}
},
"description": "@mark(S1F1, \"F1\")\nfield F1 int"
}
-- S1F1-hover --
@mark(S1F1, "F1")
field F1 int