1
0
mirror of https://github.com/golang/go synced 2024-10-01 11:38:34 -06:00
go/internal/lsp/source
Rebecca Stambler a10017ccd2 internal/lsp: handle common nil pointer exceptions
We may encounter these nil pointer if go/packages cannot find the
package of the given file, for example, when the user creates a new file
or a new package.

Change-Id: I16993017243a56332dd9f7e0aaf3c1d57f20fc3a
Reviewed-on: https://go-review.googlesource.com/c/tools/+/167462
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-03-13 23:43:22 +00:00
..
analysis.go internal/lsp: add a source.Package interface 2019-03-12 16:49:27 +00:00
completion.go internal/lsp: add a source.Package interface 2019-03-12 16:49:27 +00:00
definition.go internal/lsp: convert to the new location library 2019-03-13 19:34:21 +00:00
diagnostics.go internal/lsp: handle common nil pointer exceptions 2019-03-13 23:43:22 +00:00
format.go internal/lsp: convert to the new location library 2019-03-13 19:34:21 +00:00
signature_help.go internal/lsp: add a source.Package interface 2019-03-12 16:49:27 +00:00
view.go internal/lsp: convert to the new location library 2019-03-13 19:34:21 +00:00