1
0
mirror of https://github.com/golang/go synced 2024-11-19 01:34:40 -07:00
go/internal/lsp/testdata/builtins
Muir Manders 473961ec04 internal/lsp/source: improve completion for "range" and "<-"
Now that we understand object "kind" for builtin generic functions, we
can apply it to a couple more places as well:

// prefer rangeable object kinds
for i := range <> {
}

// prefer channels
<- <>

Change-Id: If9cfba3a06b3abde073a9d397000bb3f3b0e9853
Reviewed-on: https://go-review.googlesource.com/c/tools/+/214678
Run-TryBot: Muir Manders <muir@mnd.rs>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-01-16 06:24:25 +00:00
..
builtin_args.go internal/lsp/source: improve completion for "range" and "<-" 2020-01-16 06:24:25 +00:00
builtins.go internal/lsp: downrank "nil" completion candidate 2019-12-12 05:12:00 +00:00
constants.go internal/lsp/source: don't downrank builtin constant completions 2020-01-07 18:15:58 +00:00