mirror of https://github.com/golang/go.git
For array, slice, maps and chan candidates, we now support
transforming them to their element type in completions. For example:
var m map[string]int
var _ int = m<>
At <> we complete to "m[]" because we see that the map value type
matches our expected type.
Fixes golang/go#46045.
Change-Id: Ibee088550193a53744f93217cc365f67f301ae90
Reviewed-on: https://go-review.googlesource.com/c/tools/+/323451
Run-TryBot: Muir Manders <muir@mnd.rs>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Cherry Mui <cherryyz@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
|
||
|---|---|---|
| .. | ||
| builtin.go | ||
| completion.go | ||
| deep_completion.go | ||
| deep_completion_test.go | ||
| format.go | ||
| keywords.go | ||
| labels.go | ||
| literal.go | ||
| package.go | ||
| package_test.go | ||
| postfix_snippets.go | ||
| printf.go | ||
| printf_test.go | ||
| snippet.go | ||
| statements.go | ||
| util.go | ||
| util_test.go | ||