1
0
mirror of https://github.com/golang/go synced 2024-10-01 07:28:35 -06:00
go/internal/lsp
Muir Manders e5f21acdc3 internal/lsp: handle more expected type cases
Calculate expected type in the following cases:

- switch case statements
- index expressions (e.g. []int{}[<>] or map[string]int{}[<>])
- slice expressions (e.g. []int{}[1:<>])
- channel send statements
- channel receive expression

We now also prefer type names in type switch clauses and type asserts.

Change-Id: Iff8c317a9116868b36701d931c802d9147f962d8
GitHub-Last-Rev: e039a45aebe1c6aa9b2011cad67ddaa5e4ed4d77
GitHub-Pull-Request: golang/tools#97
Reviewed-on: https://go-review.googlesource.com/c/tools/+/176941
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2019-05-16 16:26:11 +00:00
..
browser internal/lsp: add version and bug commands 2019-05-11 04:16:02 +00:00
cache internal/lsp: prepare for non go files 2019-05-15 23:59:46 +00:00
cmd internal/lsp: add shutdown handling 2019-05-15 23:16:32 +00:00
diff internal/lsp: normalise and make public diff<->edit conversions 2019-04-15 20:31:36 +00:00
protocol internal/lsp: respond to shutdown requests and add DO NOT EDITs 2019-05-13 17:21:55 +00:00
snippet internal/lsp: introduce snippet builder object 2019-04-25 18:37:29 +00:00
source internal/lsp: handle more expected type cases 2019-05-16 16:26:11 +00:00
testdata internal/lsp: handle more expected type cases 2019-05-16 16:26:11 +00:00
tests internal/lsp: handle more expected type cases 2019-05-16 16:26:11 +00:00
xlog internal/lsp: add the ability to log back to the client 2019-04-01 16:22:08 +00:00
code_action.go internal/lsp: prepare for non go files 2019-05-15 23:59:46 +00:00
completion.go internal/lsp: prepare for non go files 2019-05-15 23:59:46 +00:00
definition.go internal/lsp: prepare for non go files 2019-05-15 23:59:46 +00:00
diagnostics.go internal/lsp: prepare for non go files 2019-05-15 23:59:46 +00:00
format.go internal/lsp: prepare for non go files 2019-05-15 23:59:46 +00:00
general.go internal/lsp: add shutdown handling 2019-05-15 23:16:32 +00:00
highlight.go internal/lsp: prepare for non go files 2019-05-15 23:59:46 +00:00
hover.go internal/lsp: prepare for non go files 2019-05-15 23:59:46 +00:00
info.1.11.go internal/lsp: add version and bug commands 2019-05-11 04:16:02 +00:00
info.go internal/lsp: add version and bug commands 2019-05-11 04:16:02 +00:00
link.go internal/lsp: prepare for non go files 2019-05-15 23:59:46 +00:00
lsp_test.go internal/lsp: prepare for non go files 2019-05-15 23:59:46 +00:00
reset_golden.sh internal/lsp: fix definition tests to use golden files 2019-05-10 21:06:55 +00:00
server.go internal/lsp: reduce the api surface of the cache package 2019-05-15 16:36:46 +00:00
signature_help.go internal/lsp: prepare for non go files 2019-05-15 23:59:46 +00:00
symbols.go internal/lsp: prepare for non go files 2019-05-15 23:59:46 +00:00
text_synchronization.go internal/lsp: prepare for non go files 2019-05-15 23:59:46 +00:00
util.go internal/lsp: prepare for non go files 2019-05-15 23:59:46 +00:00
workspace.go internal/lsp: add shutdown handling 2019-05-15 23:16:32 +00:00