1
0
mirror of https://github.com/golang/go synced 2024-11-19 00:44:40 -07:00
go/internal/lsp/testdata/highlights/highlights.go
Zac Bergquist ca36ab2721 internal/lsp: add support for document highlight
Change-Id: I232dbb0b66d690e45079808fd0dbf026c4459400
Reviewed-on: https://go-review.googlesource.com/c/tools/+/169277
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-03-26 19:08:20 +00:00

16 lines
249 B
Go

package highlights
import "fmt"
type F struct{ bar int }
var foo = F{bar: 52} //@highlight("foo", "foo")
func Print() {
fmt.Println(foo) //@highlight("foo", "foo")
}
func (x *F) Inc() { //@highlight("x", "x")
x.bar++ //@highlight("x", "x")
}