1
0
mirror of https://github.com/golang/go synced 2024-09-30 18:38:33 -06:00
go/gopls/doc
Rohan Challa e428a8eca3 internal/lsp/analysis: add simplify-composite-lit pass from "gofmt -s"
This is one of the simplifications that "gofmt -s" applies.
https://golang.org/cmd/gofmt/#hdr-The_simplify_command

An array, slice, or map composite literal of the form:
	[]T{T{}, T{}}
will be simplified to:
	[]T{{}, {}}

Updates golang/go#37221

Change-Id: I2dca46501983c8af3581c9319d973da5cf690388
Reviewed-on: https://go-review.googlesource.com/c/tools/+/223660
Run-TryBot: Rohan Challa <rohan@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
2020-03-26 20:50:12 +00:00
..
acme.md cmd/gopls: add documentation 2019-08-27 15:23:08 +00:00
analyzers.md internal/lsp/analysis: add simplify-composite-lit pass from "gofmt -s" 2020-03-26 20:50:12 +00:00
atom.md gopls/doc: add documentation for gopls with Atom 2019-11-27 06:49:51 +00:00
command-line.md gopls/doc: add and make minor changes to documentation 2019-09-16 01:38:12 +00:00
contributing.md gopls/doc: add and make minor changes to documentation 2019-09-16 01:38:12 +00:00
daemon.md gopls/doc: update daemon.md and remove 'experimental' caveats 2020-03-12 19:44:00 +00:00
design.md gopls/doc: minor fixes in design.md and implementation.md 2020-01-14 23:33:23 +00:00
emacs.md gopls/doc: expand Emacs docs 2019-11-12 19:56:55 +00:00
faq.md cmd/gopls: add documentation 2019-08-27 15:23:08 +00:00
implementation.md gopls/doc: minor fixes in design.md and implementation.md 2020-01-14 23:33:23 +00:00
integrating.md all: fix broken links to LSP specification 2019-10-02 18:32:53 +00:00
settings.md internal/lsp: change disabledAnalyses setting to be general 2020-03-26 19:30:34 +00:00
status.md gopls/doc: Clear out fixed issues 2020-02-24 23:14:51 +00:00
subl.md cmd/gopls: add documentation 2019-08-27 15:23:08 +00:00
troubleshooting.md gopls/doc: improve troubleshooting docs with specifics 2020-01-15 20:40:27 +00:00
user.md gopls/doc: document updating to an unstable version 2020-01-25 22:37:03 +00:00
vim.md gopls/doc: fix issue links for vim-lsc 2019-10-17 10:18:17 +00:00
vscode.md internal/lsp: support textDocument/formatting for .mod extension 2020-03-06 13:51:27 +00:00