mirror of
https://github.com/golang/go
synced 2024-11-19 06:24:41 -07:00
cfcbc7796e
This change refactors some of the logic that builds a link anchor for a given symbol, pushing the actual Link into the HoverInformation struct. This is necessary because type information is needed to build up that link in certain cases, like methods. The last step will be to correctly display struct fields. Updates golang/go#34240 Fixes golang/go#36031 Change-Id: I7f989faddbaa07f91838a870b4477bf78ce8ddf7 Reviewed-on: https://go-review.googlesource.com/c/tools/+/210201 Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com>
27 lines
455 B
Plaintext
27 lines
455 B
Plaintext
-- myUnclosedIf-definition --
|
|
godef/broken/unclosedIf.go:7:7-19: defined here as ```go
|
|
var myUnclosedIf string
|
|
```
|
|
-- myUnclosedIf-definition-json --
|
|
{
|
|
"span": {
|
|
"uri": "file://godef/broken/unclosedIf.go",
|
|
"start": {
|
|
"line": 7,
|
|
"column": 7,
|
|
"offset": 68
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 19,
|
|
"offset": 80
|
|
}
|
|
},
|
|
"description": "```go\nvar myUnclosedIf string\n```"
|
|
}
|
|
|
|
-- myUnclosedIf-hover --
|
|
```go
|
|
var myUnclosedIf string
|
|
```
|