1
0
mirror of https://github.com/golang/go synced 2024-10-01 07:38:32 -06:00
go/internal/lsp
Muir Manders 775b7fe395 internal/lsp: improve expected type determination
Improve expected type determination for the following cases:

- search back further through ast path to handle cases where the
  position's node is more than two nodes from the ancestor node with
  type information
- generate expected type for return statements
- wrap and unwrap pointerness from expected type when position is
  preceded by "*" (dereference) or "&" (reference) operators,
  respectively
- fix some false positive expected types when completing the "Fun"
  (left) side of a CallExpr

Change-Id: I907ee3e405bd8420031a7b03329de5df1c3493b9
GitHub-Last-Rev: 20a0ac9bf2b5350494c6738f5960676cc50fb454
GitHub-Pull-Request: golang/tools#93
Reviewed-on: https://go-review.googlesource.com/c/tools/+/174477
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2019-05-10 20:11:04 +00:00
..
cache internal/lsp: add definition support for packages 2019-05-10 15:10:30 +00:00
cmd internal/lsp: switch golden files to use txtar 2019-05-08 14:59:27 +00:00
diff internal/lsp: normalise and make public diff<->edit conversions 2019-04-15 20:31:36 +00:00
protocol internal/lsp: generate RPC interface from Typescript source 2019-04-30 16:16:08 +00:00
snippet internal/lsp: introduce snippet builder object 2019-04-25 18:37:29 +00:00
source internal/lsp: improve expected type determination 2019-05-10 20:11:04 +00:00
testdata internal/lsp: improve expected type determination 2019-05-10 20:11:04 +00:00
tests internal/lsp: improve expected type determination 2019-05-10 20:11:04 +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: run source.organizeImports on all codeActions 2019-04-16 21:54:00 +00:00
completion.go internal/lsp: change some comments and variable names in completion code 2019-04-30 00:41:04 +00:00
definition.go internal/lsp: refactor server.go to separate into LSP categories 2019-04-17 20:54:51 +00:00
diagnostics.go internal/lsp: propagate diagnostics for reverse dependencies 2019-05-10 13:52:23 +00:00
format.go internal/lsp: disable rangeFormatting temporarily 2019-05-08 13:53:17 +00:00
general.go internal/lsp: fix incremental updates and turn them on 2019-05-08 15:02:11 +00:00
highlight.go internal/lsp: refactor server.go to separate into LSP categories 2019-04-17 20:54:51 +00:00
hover.go internal/lsp: support comments on hover for typenames, funcs, fields 2019-04-22 16:38:38 +00:00
link.go internal/lsp: add document link handling for import paths to godoc 2019-05-03 18:56:57 +00:00
lsp_test.go internal/lsp: switch golden files to use txtar 2019-05-08 14:59:27 +00:00
reset_golden.sh internal/lsp: switch golden files to use txtar 2019-05-08 14:59:27 +00:00
server.go internal/lsp: disable rangeFormatting temporarily 2019-05-08 13:53:17 +00:00
signature_help.go internal/lsp: refactor server.go to separate into LSP categories 2019-04-17 20:54:51 +00:00
symbols.go internal/lsp: refactor server.go to separate into LSP categories 2019-04-17 20:54:51 +00:00
text_synchronization.go internal/lsp: fix incremental updates and turn them on 2019-05-08 15:02:11 +00:00
util.go internal/lsp: refactor server.go to separate into LSP categories 2019-04-17 20:54:51 +00:00