| -- PosSum-definition -- |
| godef/a/random.go:16:15-18: defined here as [`(a.Pos).Sum` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a#Pos.Sum) |
| |
| ```go |
| func (*Pos).Sum() int |
| ``` |
| -- PosSum-definition-json -- |
| { |
| "span": { |
| "uri": "file://godef/a/random.go", |
| "start": { |
| "line": 16, |
| "column": 15, |
| "offset": 248 |
| }, |
| "end": { |
| "line": 16, |
| "column": 18, |
| "offset": 251 |
| } |
| }, |
| "description": "[`(a.Pos).Sum` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a#Pos.Sum)\n\n```go\nfunc (*Pos).Sum() int\n```" |
| } |
| |
| -- PosSum-hover -- |
| [`(a.Pos).Sum` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a#Pos.Sum) |
| |
| ```go |
| func (*Pos).Sum() int |
| ``` |
| -- PosX-definition -- |
| godef/a/random.go:13:2-3: defined here as \@mark\(PosX, \"x\"\),mark\(PosY, \"y\"\) |
| |
| ```go |
| field x int |
| ``` |
| -- PosX-definition-json -- |
| { |
| "span": { |
| "uri": "file://godef/a/random.go", |
| "start": { |
| "line": 13, |
| "column": 2, |
| "offset": 187 |
| }, |
| "end": { |
| "line": 13, |
| "column": 3, |
| "offset": 188 |
| } |
| }, |
| "description": "\\@mark\\(PosX, \\\"x\\\"\\),mark\\(PosY, \\\"y\\\"\\)\n\n```go\nfield x int\n```" |
| } |
| |
| -- PosX-hover -- |
| \@mark\(PosX, \"x\"\),mark\(PosY, \"y\"\) |
| |
| ```go |
| field x int |
| ``` |
| -- RandomParamY-definition -- |
| godef/a/random.go:8:14-15: defined here as ```go |
| var y int |
| ``` |
| -- RandomParamY-definition-json -- |
| { |
| "span": { |
| "uri": "file://godef/a/random.go", |
| "start": { |
| "line": 8, |
| "column": 14, |
| "offset": 79 |
| }, |
| "end": { |
| "line": 8, |
| "column": 15, |
| "offset": 80 |
| } |
| }, |
| "description": "```go\nvar y int\n```" |
| } |
| |
| -- RandomParamY-hover -- |
| ```go |
| var y int |
| ``` |