mirror of
https://github.com/golang/go
synced 2024-11-05 15:56:12 -07:00
b5fc9d354d
When a package consists of files that only fail to parse, we fail to associate parse errors with the package, and therefore return no diagnostics. To address this, we need to associate the errors with the package. This involves adding a *token.File to the parseGoData so that error messages and positions can be properly extracted, even when there is no associated AST. Fixes golang/go#39763 Change-Id: I5620821b9bcbeb499c498f9061dcf487d159bed5 Reviewed-on: https://go-review.googlesource.com/c/tools/+/243579 Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com> |
||
---|---|---|
.. | ||
codelens_test.go | ||
definition_test.go | ||
diagnostics_test.go | ||
doc.go | ||
env_test.go | ||
env.go | ||
fix_test.go | ||
formatting_test.go | ||
generate_test.go | ||
imports_test.go | ||
link_test.go | ||
modfile_test.go | ||
reg_test.go | ||
runner.go | ||
shared_test.go | ||
stress_test.go | ||
symbol_helper_test.go | ||
symbol_test.go | ||
unix_test.go | ||
vendor_test.go | ||
watch_test.go | ||
workspace_test.go | ||
wrappers.go |