1
0
mirror of https://github.com/golang/go synced 2024-11-18 16:04:44 -07:00
go/internal/span
Rebecca Stambler c85f9fa958 internal/span: handle invalid column values to avoid crashing
This might not be necessary after we fix handling for line directives,
but it's always better to avoid the panic here.

Updates golang/go#34433

Change-Id: Ica4fb571dff6753fb15bf8d397c55f713284aa27
Reviewed-on: https://go-review.googlesource.com/c/tools/+/196662
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2019-09-23 19:53:54 +00:00
..
parse.go internal/span: change to private fields 2019-03-15 18:05:47 +00:00
span_test.go all: fix more typos 2019-09-11 15:13:14 +00:00
span.go internal/span: change URI.Filename so it just returns the filename 2019-06-10 21:39:43 +00:00
token111.go internal/span: adding a source location package to unify the pos conversions 2019-03-08 14:21:31 +00:00
token112.go internal/span: adding a source location package to unify the pos conversions 2019-03-08 14:21:31 +00:00
token_test.go internal/span: change to private fields 2019-03-15 18:05:47 +00:00
token.go internal/span: catch potential panics in go/token 2019-06-27 17:21:57 +00:00
uri_test.go internal/span: handle escaping file URIs 2019-09-16 17:14:20 +00:00
uri.go internal/span: handle escaping file URIs 2019-09-16 17:14:20 +00:00
utf16_test.go internal/span: handle character values beyond end of line in FromUTF16Column 2019-07-06 07:08:13 +00:00
utf16.go internal/span: handle invalid column values to avoid crashing 2019-09-23 19:53:54 +00:00