mirror of https://github.com/golang/go.git
When infertypeargs suggested an edit that kept at least one argument the diagnostic sent to the editor included comma and whitespace(s). In editors/IDEs that highlight the range it looked a bit odd. This change reduce the diagnostic range to start at the first unnecessary argument. Change-Id: Ib091f8ff150c66d1d8ee4f82bda8b1b37202eeba Reviewed-on: https://go-review.googlesource.com/c/tools/+/356989 Trust: Pontus Leitzler <leitzler@gmail.com> Run-TryBot: Pontus Leitzler <leitzler@gmail.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com> |
||
|---|---|---|
| .. | ||
| fillreturns | ||
| fillstruct | ||
| infertypeargs | ||
| nonewvars | ||
| noresultvalues | ||
| simplifycompositelit | ||
| simplifyrange | ||
| simplifyslice | ||
| undeclaredname | ||
| unusedparams | ||
| useany | ||