1
0
mirror of https://github.com/golang/go synced 2024-11-19 00:54:42 -07:00
go/internal/lsp/source
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
..
analysis.go internal/lsp: add more error propagation and logging for analyses 2019-04-24 02:44:48 +00:00
completion_format.go internal/lsp: add additional error handling for builtin packages 2019-05-10 13:52:03 +00:00
completion_snippet.go internal/lsp: add additional error handling for builtin packages 2019-05-10 13:52:03 +00:00
completion.go internal/lsp: improve expected type determination 2019-05-10 20:11:04 +00:00
diagnostics.go internal/lsp: propagate diagnostics for reverse dependencies 2019-05-10 13:52:23 +00:00
enums.go internal/lsp: switch completion item tests to using the enum strings 2019-04-17 17:57:43 +00:00
format.go internal/lsp: normalise and make public diff<->edit conversions 2019-04-15 20:31:36 +00:00
highlight.go internal/lsp: add support for document highlight 2019-03-26 19:08:20 +00:00
hover.go internal/lsp: add definition support for packages 2019-05-10 15:10:30 +00:00
identifier.go internal/lsp: add definition support for packages 2019-05-10 15:10:30 +00:00
signature_help.go internal/lsp: add definition support for packages 2019-05-10 15:10:30 +00:00
symbols.go internal/lsp: make interface methods children of the interface symbol 2019-04-24 02:46:01 +00:00
util.go internal/lsp: support builtin types without hardcoding 2019-05-01 04:50:30 +00:00
view.go internal/lsp: add definition support for packages 2019-05-10 15:10:30 +00:00