1
0
mirror of https://github.com/golang/go synced 2024-11-19 06:04:39 -07:00
go/internal/lsp/testdata/format
Rebecca Stambler 747b8b11d4 internal/lsp: refactor error handling code in type-checking
This change adds a source.Error type which is used to collect the error
information that comes out of the loading, parsing, and type checking
stages. We also add specific sources per-error, rather than having them
all be labeled as "LSP".

This change will enable follow-ups that do a better job of extracting
error ranges.

Change-Id: I3fbb5e42d66aa2c5bb1b2f41d1eadfc45f3a749b
Reviewed-on: https://go-review.googlesource.com/c/tools/+/202298
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2019-10-21 18:57:46 +00:00
..
bad_format.go.golden internal/lsp: refactor error handling code in type-checking 2019-10-21 18:57:46 +00:00
bad_format.go.in internal/lsp: refactor error handling code in type-checking 2019-10-21 18:57:46 +00:00
good_format.go internal/lsp: fix and add tests for formatting 2018-11-15 19:42:43 +00:00
good_format.go.golden internal/lsp: change the unified diff tests to be less fragile 2019-09-27 19:13:25 +00:00
newline_format.go.golden internal/lsp: change the unified diff tests to be less fragile 2019-09-27 19:13:25 +00:00
newline_format.go.in internal/lsp/diff: fix bug that adds extra line to files on format 2019-02-13 04:28:36 +00:00
one_line.go.golden internal/lsp: change the unified diff tests to be less fragile 2019-09-27 19:13:25 +00:00
one_line.go.in internal/span: update the offset if the end offset should be valid but is not 2019-05-03 18:46:43 +00:00