1
0
mirror of https://github.com/golang/go synced 2024-11-18 18:44:42 -07:00
go/internal/lsp/testdata/rank
Muir Manders e96d959c47 internal/lsp: downrank untyped completion candidates
In cases like:

type myInt int
const (
  a       = 1
  b myInt = 2
)
var foo myInt = <>

We now prefer "b" over "a" since b's type matches the expected type
exactly.

Change-Id: I675934761cc17f6b303b63b4715b31dd1af7cea1
Reviewed-on: https://go-review.googlesource.com/c/tools/+/202737
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-10-25 17:43:33 +00:00
..
assign_rank.go.in internal/lsp: add additional tests for completion 2018-12-19 22:27:14 +00:00
binexpr_rank.go.in internal/lsp: add additional tests for completion 2018-12-19 22:27:14 +00:00
convert_rank.go.in internal/lsp: downrank untyped completion candidates 2019-10-25 17:43:33 +00:00
switch_rank.go.in internal/lsp: handle more expected type cases 2019-05-16 16:26:11 +00:00
type_assert_rank.go.in internal/lsp: handle more expected type cases 2019-05-16 16:26:11 +00:00
type_switch_rank.go.in internal/lsp: add some keyword completions 2019-10-22 20:49:18 +00:00