1
0
mirror of https://github.com/golang/go synced 2024-11-18 14:04:45 -07:00
go/internal/lsp/analysis/fillreturns
Josh Baum 1c672e2dff internal/lsp: prioritize non-"zero" values in fillreturns
In the previous implementation, we kept the first variable in the
return statement that matched the each given return type. Now, we
keep searching for a non-"zero" value, even if we have already found
a "zero" value.

Change-Id: Icf0987bab90239781452319979e7a30502807e36
Reviewed-on: https://go-review.googlesource.com/c/tools/+/246917
Run-TryBot: Josh Baum <joshbaum@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-08-07 14:33:55 +00:00
..
testdata/src/a internal/lsp: prioritize non-"zero" values in fillreturns 2020-08-07 14:33:55 +00:00
fillreturns_test.go internal/lsp: add goreturns like functionality as quickfix 2020-04-01 19:27:44 +00:00
fillreturns.go internal/lsp: prioritize non-"zero" values in fillreturns 2020-08-07 14:33:55 +00:00