1
0
mirror of https://github.com/golang/go synced 2024-11-19 00:04:40 -07:00
go/internal/lsp/testdata/snippets
Muir Manders 49a3e744a4 internal/lsp: remove useless signature cast completion candidate
In a previous change I inadvertently added completion candidates like:

var f func(int)
f = <> // useless candidate "func(int)(<>)"

Ignoring the fact it is a syntax error without more parens around the
signature, it isn't a useful candidate because you don't need to cast
when assigning a named signature type to an unnamed type.

Change-Id: Ic261817af344ee47193240a11dca5d3a32cbd293
Reviewed-on: https://go-review.googlesource.com/c/tools/+/211319
Run-TryBot: Muir Manders <muir@mnd.rs>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2019-12-16 05:27:35 +00:00
..
literal_snippets.go.in internal/lsp: remove useless signature cast completion candidate 2019-12-16 05:27:35 +00:00
snippets.go.golden internal/lsp: use AST to construct placeholders 2019-11-25 01:11:57 +00:00
snippets.go.in internal/lsp: use AST to construct placeholders 2019-11-25 01:11:57 +00:00