1
0
mirror of https://github.com/golang/go synced 2024-10-01 09:28:37 -06:00
go/internal/lsp/source
Michael Matloob 2b03ca6e44 go/analysis: add an End field to Diagnostic
This will allow diagnostics to denote the range they apply to.
The ranges are now interpreted using the internal/span library.

This is primarily intended for the benefit of the LSP, which will
be able to (in future CLs) more accurately highlight the part
of the code a diagnostic applies to.

Change-Id: Ic35cec2b21060c9dc6a8f5ebb7faa62d81a07435
Reviewed-on: https://go-review.googlesource.com/c/tools/+/179237
Run-TryBot: Michael Matloob <matloob@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2019-05-30 17:14:27 +00:00
..
analysis.go internal/lsp: run analyses despite some errors 2019-05-28 20:25:02 +00:00
completion_format.go internal/lsp: build the packages config on demand from proper configuration 2019-05-21 17:12:43 +00:00
completion_snippet.go internal/lsp: build the packages config on demand from proper configuration 2019-05-21 17:12:43 +00:00
completion.go internal/lsp: build the packages config on demand from proper configuration 2019-05-21 17:12:43 +00:00
diagnostics_test.go internal/lsp: fix swallowed package errors 2019-05-17 18:33:31 +00:00
diagnostics.go go/analysis: add an End field to Diagnostic 2019-05-30 17:14:27 +00:00
enums.go internal/lsp: switch completion item tests to using the enum strings 2019-04-17 17:57:43 +00:00
format.go internal/lsp: add a file system abstraction 2019-05-24 13:48:47 +00:00
highlight.go internal/lsp: build the packages config on demand from proper configuration 2019-05-21 17:12:43 +00:00
hover.go internal/lsp: build the packages config on demand from proper configuration 2019-05-21 17:12:43 +00:00
identifier.go internal/lsp: build the packages config on demand from proper configuration 2019-05-21 17:12:43 +00:00
signature_help.go internal/lsp: add nil checks for ASTs and token 2019-05-20 20:09:54 +00:00
source_test.go internal/lsp: add modfile, sumfile structs, require Go files for diagnostics 2019-05-24 21:02:28 +00:00
symbols.go internal/lsp: build the packages config on demand from proper configuration 2019-05-21 17:12:43 +00:00
util.go internal/lsp: support definitions and hover for builtins 2019-05-17 00:35:10 +00:00
view.go internal/lsp: add modfile, sumfile structs, require Go files for diagnostics 2019-05-24 21:02:28 +00:00