go/internal
Josh Baum e5d681aac7 internal/lsp: remove excess 'zero values' in return statements
In the previous implementation, fillreturns only altered return
statements that contained too few values. Now, fillreturns also examines
return statements with too many return values. In these situations,
we remove any value that is a "zero value" and does not match a type
in the return signature.

Change-Id: I7548307234ff4b16534b72a8aead95a322eb535a
Reviewed-on: https://go-review.googlesource.com/c/tools/+/246520
Run-TryBot: Josh Baum <joshbaum@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-08-05 14:29:31 +00:00
..
analysisinternal internal/lsp: remove excess 'zero values' in return statements 2020-08-05 14:29:31 +00:00
apidiff
event
fakenet
fastwalk
gocommand
gopathwalk
imports internal/imports: update stdlib index for 1.15 2020-08-04 21:03:08 +00:00
jsonrpc2
lsp internal/lsp: remove excess 'zero values' in return statements 2020-08-05 14:29:31 +00:00
memoize internal/lsp: pass snapshot/view to memoize.Functions 2020-07-28 17:34:46 +00:00
packagesinternal
proxydir
span
stack
testenv
tool
typesinternal
xcontext