1
0
mirror of https://github.com/golang/go synced 2024-11-19 01:44:40 -07:00
go/internal/lsp/testdata/format
Ian Cottrell 9cb3dcf692 internal/span: update the offset if the end offset should be valid but is not
It used to be that when the start offset was valid, it was presumed the end was
as well.
This was not true in the case where the start offset was not supplied but could
be inferred (at the very start of the file).

Fixes golang/go#31797

Change-Id: Ie5a079796fa0f77cef5571a4e5b309c798e1e06b
Reviewed-on: https://go-review.googlesource.com/c/tools/+/174943
Run-TryBot: Ian Cottrell <iancottrell@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2019-05-03 18:46:43 +00:00
..
bad_format.go.in internal/lsp: connect basic analysis functionality 2019-02-06 21:48:25 +00:00
bad_format.gofmt-d.golden.go internal/lsp: clean up formatting header handling 2019-04-29 18:49:09 +00:00
bad_format.gofmt.golden.go internal/lsp: adding golden file support to the test harness 2019-04-23 21:54:59 +00:00
good_format.go internal/lsp: fix and add tests for formatting 2018-11-15 19:42:43 +00:00
good_format.gofmt-d.golden.go internal/lsp: add the format command line 2019-04-25 22:22:32 +00:00
good_format.gofmt.golden.go internal/lsp: adding golden file support to the test harness 2019-04-23 21:54:59 +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
newline_format.gofmt-d.golden.go internal/lsp: clean up formatting header handling 2019-04-29 18:49:09 +00:00
newline_format.gofmt.golden.go internal/lsp: adding golden file support to the test harness 2019-04-23 21:54:59 +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
one_line.gofmt-d.golden.go internal/span: update the offset if the end offset should be valid but is not 2019-05-03 18:46:43 +00:00
one_line.gofmt.golden.go internal/span: update the offset if the end offset should be valid but is not 2019-05-03 18:46:43 +00:00