1
0
mirror of https://github.com/golang/go synced 2024-11-18 20:54:40 -07:00
go/internal/lsp/testdata
Muir Manders aa740d4807 internal/lsp: handle embedded struct pointer definitions
When jumping to definition of an embedded struct pointer, be sure to
unwrap the pointer type so you properly jump to the pointee type.

Also, fix jumping to definition of an embedded struct inside an
anonymous struct inside a struct. The embedded struct detection was
continuing too far and thinking it wasn't an embedded struct when it
saw the anonymous struct.

Fixes golang/go#31451

Change-Id: I96017764270712a2ae02a85306605495075d12e7
GitHub-Last-Rev: 9997f60855ebe37bcca2fecc1ba2a7b871f393d4
GitHub-Pull-Request: golang/tools#83
Reviewed-on: https://go-review.googlesource.com/c/tools/+/172583
Run-TryBot: Paul Jolly <paul@myitcv.org.uk>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2019-04-20 18:18:00 +00:00
..
analyzer internal/lsp: fix badly formatted error messages from go vet 2019-04-16 19:41:54 +00:00
anon internal/lsp: add additional tests for completion 2018-12-19 22:27:14 +00:00
bad internal/lsp: connect basic analysis functionality 2019-02-06 21:48:25 +00:00
bar internal/lsp: fix a bug stopped package names from being printed 2018-11-20 23:48:46 +00:00
baz internal/lsp: implement type definitions 2018-12-04 18:51:09 +00:00
builtins internal/lsp: add a test for completion of builtin types and functions 2019-01-16 00:24:28 +00:00
cast internal/lsp: add more testdata for completion and diagnostics 2018-11-20 06:06:34 +00:00
complit internal/lsp: add additional tests for completion 2018-12-19 22:27:14 +00:00
errors internal/lsp: add additional tests for completion 2018-12-19 22:27:14 +00:00
foo internal/lsp: do not complete inside comments in functions 2019-01-22 18:08:10 +00:00
format internal/lsp/diff: fix bug that adds extra line to files on format 2019-02-13 04:28:36 +00:00
func_rank internal/lsp: rank types higher when completing in return of a function 2019-02-02 23:51:57 +00:00
godef internal/lsp: handle embedded struct pointer definitions 2019-04-20 18:18:00 +00:00
good internal/lsp: connect basic analysis functionality 2019-02-06 21:48:25 +00:00
highlights internal/lsp: add support for document highlight 2019-03-26 19:08:20 +00:00
nodisk internal/lsp: a cleaner way of doing overlays 2019-04-17 21:35:05 +00:00
noparse internal/lsp: connect basic analysis functionality 2019-02-06 21:48:25 +00:00
noparse_format internal/lsp: connect basic analysis functionality 2019-02-06 21:48:25 +00:00
rank internal/lsp: add additional tests for completion 2018-12-19 22:27:14 +00:00
selector internal/lsp: add more testdata for completion and diagnostics 2018-11-20 06:06:34 +00:00
signature internal/lsp: improve signatureHelp in various cases 2019-04-17 18:10:49 +00:00
stringlit cmd/lsp: skip completion in string literals 2019-03-15 16:51:35 +00:00
symbols internal/lsp: make the symbols tests use the enum names rather than hard coding the values 2019-04-17 00:57:54 +00:00
testy internal/lsp: connect basic analysis functionality 2019-02-06 21:48:25 +00:00
types internal/lsp: add more testdata for completion and diagnostics 2018-11-20 06:06:34 +00:00