1
0
mirror of https://github.com/golang/go synced 2024-11-18 18:54:42 -07:00
go/internal/lsp/analysis
Rohan Challa 8f81e2e6d4 internal/lsp/analysis: add quickfix for undeclared variable
This change adds a quick fix for diagnostics that have an error message of the form "undeclared name: %s". It provides a quick fix to add a new variable with that name.

Updates golang/go#34644

Change-Id: I6534ee79d1770d1a62bac169c3c7e52e2443f39e
Reviewed-on: https://go-review.googlesource.com/c/tools/+/222237
Run-TryBot: Rohan Challa <rohan@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-03-27 18:31:06 +00:00
..
simplifycompositelit internal/lsp/analysis: add simplify-composite-lit pass from "gofmt -s" 2020-03-26 20:50:12 +00:00
simplifyrange
simplifyslice internal/lsp/analysis: add simplify-slice pass from "gofmt -s" 2020-03-26 21:04:57 +00:00
undeclaredname internal/lsp/analysis: add quickfix for undeclared variable 2020-03-27 18:31:06 +00:00
unusedparams internal/lsp/analysis: add pass for unused parameters 2020-03-26 20:36:28 +00:00