1
0
mirror of https://github.com/golang/go synced 2024-11-19 10:04:56 -07:00
go/internal/lsp/testdata/godef/b
Muir Manders 63859f3815 internal/lsp: add definition support for packages
Now the "type" of a *ast.PkgName is the package it points to. Of
course, a package is not a real types.Type, but we can still jump you
there. We have to pick one of the package's files, so we choose the
longest one, hoping it is the most interesting.

Similarly, the "definition" of an *ast.ImportSpec is the package being
imported.

I also added a nil check for the package in SignatureHelp. This panics
for me occasionally.

Change-Id: Ide4640530a28bcec9da6de36723eb7f0e4cc941c
GitHub-Last-Rev: 8190baa0b908065db5b53f236de03d2f3bff39b5
GitHub-Pull-Request: golang/tools#92
Reviewed-on: https://go-review.googlesource.com/c/tools/+/174081
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2019-05-10 15:10:30 +00:00
..
b.go internal/lsp: add definition support for packages 2019-05-10 15:10:30 +00:00
b.go.golden internal/lsp: add definition support for packages 2019-05-10 15:10:30 +00:00
c.go internal/lsp: add definition tests from godef 2018-11-19 18:17:22 +00:00
c.go.golden internal/lsp: switch golden files to use txtar 2019-05-08 14:59:27 +00:00
c.go.saved internal/lsp: add definition tests from godef 2018-11-19 18:17:22 +00:00
e.go internal/lsp: make the guru emulation tests slightly looser with a different matching system 2019-04-04 13:25:00 +00:00