go/internal/lsp/source
Rob Findley 9a0fabac01 internal/lsp: fix errors found by staticcheck
While experimenting with different static analysis on x/tools, I noticed
that there are many actionable diagnostics found by staticcheck. Fix the
ones that were not false positives.

Change-Id: I0b68cf1f636b57b557db879fad84fff9b7237a89
Reviewed-on: https://go-review.googlesource.com/c/tools/+/222248
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-03-19 19:20:54 +00:00
..
code_lens.go
comment.go internal/lsp: fix errors found by staticcheck 2020-03-19 19:20:54 +00:00
comment_test.go
completion.go internal/lsp/source: fix literal completions in variadic args 2020-03-18 05:47:22 +00:00
completion_builtin.go
completion_format.go internal/telemetry: delete the event.TagOf method 2020-03-18 13:23:15 +00:00
completion_keywords.go
completion_labels.go
completion_literal.go
completion_snippet.go
completion_statements.go
deep_completion.go
diagnostics.go internal/lsp: move the telemetry package 2020-03-18 13:22:49 +00:00
folding_range.go
format.go
format_test.go
highlight.go
hover.go
identifier.go
implementation.go
options.go internal/telemetry: delete the event.TagOf method 2020-03-18 13:23:15 +00:00
references.go
rename.go
rename_check.go
signature_help.go
source_test.go
symbols.go internal/lsp: fix breadcrumbs when inside of a method 2020-03-17 19:04:34 +00:00
util.go internal/lsp/source: optimize enumeration of a type's fields 2020-03-18 05:47:12 +00:00
view.go
workspace_symbol.go