mirror of https://github.com/golang/go.git
I missed the TODO in undeclaredname to add support for functions, so really this belongs in that analyzer. This removes a fair bit of code. However, the type error analyzers don't really work with the go/analysis testing framework because the suggested fixes are split from the diagnostics, so I moved the tests into the gopls tests. Change-Id: I861a7ad531d2732fe698ee0ac46f23ad53b16812 Reviewed-on: https://go-review.googlesource.com/c/tools/+/351333 Trust: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com> |
||
|---|---|---|
| .. | ||
| channels.go | ||
| channels.go.golden | ||
| consecutive_params.go | ||
| consecutive_params.go.golden | ||
| error_param.go | ||
| error_param.go.golden | ||
| literals.go | ||
| literals.go.golden | ||
| operation.go | ||
| operation.go.golden | ||
| selector.go | ||
| selector.go.golden | ||
| slice.go | ||
| slice.go.golden | ||
| tuple.go | ||
| tuple.go.golden | ||
| unique_params.go | ||
| unique_params.go.golden | ||