2019-04-29 12:57:27 -06:00
-- A-definition --
2019-04-27 20:45:06 -06:00
godef/a/a.go:7:6-7: defined here as A string //@A
2019-04-29 12:57:27 -06:00
-- A-definition-json --
{
"span": {
"uri": "file://godef/a/a.go",
"start": {
"line": 7,
"column": 6,
"offset": 75
},
"end": {
"line": 7,
"column": 7,
"offset": 76
}
},
2019-04-27 20:45:06 -06:00
"description": "A string //@A"
2019-04-29 12:57:27 -06:00
}
2019-05-01 17:16:03 -06:00
-- A-hover --
2019-04-27 20:45:06 -06:00
A string //@A
2019-04-29 12:57:27 -06:00
-- AImport-definition --
2019-06-14 12:55:24 -06:00
godef/b/b.go:5:2: defined here as package a ("golang.org/x/tools/internal/lsp/godef/a")
2019-04-29 12:57:27 -06:00
-- AImport-definition-json --
{
"span": {
"uri": "file://godef/b/b.go",
"start": {
"line": 5,
"column": 2,
2019-09-23 21:12:28 -06:00
"offset": 137
2019-04-29 12:57:27 -06:00
},
"end": {
"line": 5,
2019-06-14 12:55:24 -06:00
"column": 2,
2019-09-23 21:12:28 -06:00
"offset": 137
2019-04-29 12:57:27 -06:00
}
},
"description": "package a (\"golang.org/x/tools/internal/lsp/godef/a\")"
}
2019-05-10 08:32:25 -06:00
-- AImport-hover --
package a ("golang.org/x/tools/internal/lsp/godef/a")
2019-04-29 12:57:27 -06:00
-- PackageFoo-definition --
2019-09-23 21:12:28 -06:00
foo/foo.go:1:1-30:16: defined here as myFoo "golang.org/x/tools/internal/lsp/foo" //@mark(myFoo, "myFoo"),godef("foo", PackageFoo),godef("myFoo", myFoo)
2019-04-29 12:57:27 -06:00
-- PackageFoo-definition-json --
{
"span": {
"uri": "file://foo/foo.go",
"start": {
"line": 1,
2019-09-23 21:12:28 -06:00
"column": 1,
"offset": 0
2019-04-29 12:57:27 -06:00
},
"end": {
2019-09-23 21:12:28 -06:00
"line": 30,
"column": 16,
"offset": 844
2019-04-29 12:57:27 -06:00
}
},
2019-09-23 21:12:28 -06:00
"description": "myFoo \"golang.org/x/tools/internal/lsp/foo\" //@mark(myFoo, \"myFoo\"),godef(\"foo\", PackageFoo),godef(\"myFoo\", myFoo)"
2019-04-29 12:57:27 -06:00
}
2019-05-10 08:32:25 -06:00
-- PackageFoo-hover --
2019-08-21 17:36:09 -06:00
myFoo "golang.org/x/tools/internal/lsp/foo" //@mark(myFoo, "myFoo"),godef("foo", PackageFoo),godef("myFoo", myFoo)
2019-05-10 08:32:25 -06:00
2019-04-29 12:57:27 -06:00
-- S1-definition --
2019-04-27 20:45:06 -06:00
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)
}
2019-04-29 12:57:27 -06:00
-- S1-definition-json --
{
"span": {
"uri": "file://godef/b/b.go",
"start": {
"line": 8,
"column": 6,
2019-09-23 21:12:28 -06:00
"offset": 212
2019-04-29 12:57:27 -06:00
},
"end": {
"line": 8,
"column": 8,
2019-09-23 21:12:28 -06:00
"offset": 214
2019-04-29 12:57:27 -06:00
}
},
2019-04-27 20:45:06 -06:00
"description": "S1 struct {\n\tF1 int //@mark(S1F1, \"F1\")\n\tS2 //@godef(\"S2\", S2), mark(S1S2, \"S2\")\n\ta.A //@godef(\"A\", A)\n}"
2019-04-29 12:57:27 -06:00
}
2019-05-01 17:16:03 -06:00
-- S1-hover --
2019-04-27 20:45:06 -06:00
S1 struct {
F1 int //@mark(S1F1, "F1")
S2 //@godef("S2", S2), mark(S1S2, "S2")
a.A //@godef("A", A)
}
2019-04-29 12:57:27 -06:00
-- S1F1-definition --
2019-09-23 21:12:28 -06:00
godef/b/b.go:9:2-4: defined here as @mark(S1F1, "F1")
field F1 int
2019-04-29 12:57:27 -06:00
-- S1F1-definition-json --
{
"span": {
"uri": "file://godef/b/b.go",
"start": {
"line": 9,
"column": 2,
2019-09-23 21:12:28 -06:00
"offset": 231
2019-04-29 12:57:27 -06:00
},
"end": {
"line": 9,
"column": 4,
2019-09-23 21:12:28 -06:00
"offset": 233
2019-04-29 12:57:27 -06:00
}
},
2019-09-23 21:12:28 -06:00
"description": "@mark(S1F1, \"F1\")\nfield F1 int"
2019-04-29 12:57:27 -06:00
}
2019-05-01 17:16:03 -06:00
-- S1F1-hover --
2019-04-27 20:45:06 -06:00
@mark(S1F1, "F1")
2019-05-01 17:16:03 -06:00
field F1 int
2019-04-29 12:57:27 -06:00
-- S1S2-definition --
2019-09-23 21:12:28 -06:00
godef/b/b.go:10:2-4: defined here as @godef("S2", S2), mark(S1S2, "S2")
field S2 S2
2019-04-29 12:57:27 -06:00
-- S1S2-definition-json --
{
"span": {
"uri": "file://godef/b/b.go",
"start": {
"line": 10,
"column": 2,
2019-09-23 21:12:28 -06:00
"offset": 260
2019-04-29 12:57:27 -06:00
},
"end": {
"line": 10,
"column": 4,
2019-09-23 21:12:28 -06:00
"offset": 262
2019-04-29 12:57:27 -06:00
}
},
2019-09-23 21:12:28 -06:00
"description": "@godef(\"S2\", S2), mark(S1S2, \"S2\")\nfield S2 S2"
2019-04-29 12:57:27 -06:00
}
2019-05-01 17:16:03 -06:00
-- S1S2-hover --
2019-04-27 20:45:06 -06:00
@godef("S2", S2), mark(S1S2, "S2")
2019-05-01 17:16:03 -06:00
field S2 S2
2019-04-29 12:57:27 -06:00
-- S2-definition --
2019-04-27 20:45:06 -06:00
godef/b/b.go:14:6-8: defined here as S2 struct {
F1 string //@mark(S2F1, "F1")
F2 int //@mark(S2F2, "F2")
*a.A //@godef("A", A),godef("a",AImport)
}
2019-04-29 12:57:27 -06:00
-- S2-definition-json --
{
"span": {
"uri": "file://godef/b/b.go",
"start": {
"line": 14,
"column": 6,
2019-09-23 21:12:28 -06:00
"offset": 339
2019-04-29 12:57:27 -06:00
},
"end": {
"line": 14,
"column": 8,
2019-09-23 21:12:28 -06:00
"offset": 341
2019-04-29 12:57:27 -06:00
}
},
2019-04-27 20:45:06 -06:00
"description": "S2 struct {\n\tF1 string //@mark(S2F1, \"F1\")\n\tF2 int //@mark(S2F2, \"F2\")\n\t*a.A //@godef(\"A\", A),godef(\"a\",AImport)\n}"
2019-04-29 12:57:27 -06:00
}
2019-05-01 17:16:03 -06:00
-- S2-hover --
2019-04-27 20:45:06 -06:00
S2 struct {
F1 string //@mark(S2F1, "F1")
F2 int //@mark(S2F2, "F2")
*a.A //@godef("A", A),godef("a",AImport)
}
2019-04-29 12:57:27 -06:00
-- S2F1-definition --
2019-09-23 21:12:28 -06:00
godef/b/b.go:15:2-4: defined here as @mark(S2F1, "F1")
field F1 string
2019-04-29 12:57:27 -06:00
-- S2F1-definition-json --
{
"span": {
"uri": "file://godef/b/b.go",
"start": {
"line": 15,
"column": 2,
2019-09-23 21:12:28 -06:00
"offset": 358
2019-04-29 12:57:27 -06:00
},
"end": {
"line": 15,
"column": 4,
2019-09-23 21:12:28 -06:00
"offset": 360
2019-04-29 12:57:27 -06:00
}
},
2019-09-23 21:12:28 -06:00
"description": "@mark(S2F1, \"F1\")\nfield F1 string"
2019-04-29 12:57:27 -06:00
}
2019-05-01 17:16:03 -06:00
-- S2F1-hover --
2019-04-27 20:45:06 -06:00
@mark(S2F1, "F1")
2019-05-01 17:16:03 -06:00
field F1 string
2019-04-29 12:57:27 -06:00
-- S2F2-definition --
2019-09-23 21:12:28 -06:00
godef/b/b.go:16:2-4: defined here as @mark(S2F2, "F2")
field F2 int
2019-04-29 12:57:27 -06:00
-- S2F2-definition-json --
{
"span": {
"uri": "file://godef/b/b.go",
"start": {
"line": 16,
"column": 2,
2019-09-23 21:12:28 -06:00
"offset": 391
2019-04-29 12:57:27 -06:00
},
"end": {
"line": 16,
"column": 4,
2019-09-23 21:12:28 -06:00
"offset": 393
2019-04-29 12:57:27 -06:00
}
},
2019-09-23 21:12:28 -06:00
"description": "@mark(S2F2, \"F2\")\nfield F2 int"
2019-04-29 12:57:27 -06:00
}
2019-05-01 17:16:03 -06:00
-- S2F2-hover --
2019-04-27 20:45:06 -06:00
@mark(S2F2, "F2")
2019-05-01 17:16:03 -06:00
field F2 int
2019-04-29 12:57:27 -06:00
-- Stuff-definition --
godef/a/a.go:9:6-11: defined here as func a.Stuff()
-- Stuff-definition-json --
{
"span": {
"uri": "file://godef/a/a.go",
"start": {
"line": 9,
"column": 6,
"offset": 95
},
"end": {
"line": 9,
"column": 11,
"offset": 100
}
},
"description": "func a.Stuff()"
}
2019-05-01 17:16:03 -06:00
-- Stuff-hover --
func a.Stuff()
2019-09-27 19:10:58 -06:00
-- X-definition --
godef/b/b.go:37:7-8: defined here as const X untyped int = 0
-- X-definition-json --
{
"span": {
"uri": "file://godef/b/b.go",
"start": {
"line": 37,
"column": 7,
"offset": 812
},
"end": {
"line": 37,
"column": 8,
"offset": 813
}
},
"description": "const X untyped int = 0"
}
-- X-hover --
const X untyped int = 0
2019-09-23 21:12:28 -06:00
-- myFoo-definition --
godef/b/b.go:4:2-7: defined here as package myFoo ("golang.org/x/tools/internal/lsp/foo")
-- myFoo-definition-json --
{
"span": {
"uri": "file://godef/b/b.go",
"start": {
"line": 4,
"column": 2,
"offset": 21
},
"end": {
"line": 4,
"column": 7,
"offset": 26
}
},
"description": "package myFoo (\"golang.org/x/tools/internal/lsp/foo\")"
}
2019-08-21 17:36:09 -06:00
-- myFoo-hover --
package myFoo ("golang.org/x/tools/internal/lsp/foo")