tools/go/loader
Alan Donovan f0ff511183 go/loader: make (*Config).Load() robust against I/O, scanner and parser errors.
Before, Load() would just fail.  Now, it gathers all frontend
errors (not just the first go/types error) in PackageInfo.Errors.

There are still cases where Load() can fail hard, e.g. errors in x_test.go
files.  That case is trickier to fix and remains a TODO item.

Also, make godoc display all scanner/parser/type errors in the source view.

LGTM=gri
R=gri
CC=golang-codereviews
https://golang.org/cl/108940043
2014-06-13 11:32:46 -04:00
..
testdata go.tools: rename packages. 2014-01-16 09:33:58 -05:00
cgo.go go.tools/go/loader: enable cgo processing of files that import "C". 2014-06-11 13:16:51 -04:00
importer_test.go go/loader: make (*Config).Load() robust against I/O, scanner and parser errors. 2014-06-13 11:32:46 -04:00
loader.go go/loader: make (*Config).Load() robust against I/O, scanner and parser errors. 2014-06-13 11:32:46 -04:00
pkginfo.go go/loader: make (*Config).Load() robust against I/O, scanner and parser errors. 2014-06-13 11:32:46 -04:00
source_test.go go.tools/go/ssa: name anon funcs by their enclosing func. 2014-02-28 10:18:55 -05:00
stdlib_test.go go.tools/go/loader: enable cgo processing of files that import "C". 2014-06-11 13:16:51 -04:00
util.go go/loader: make (*Config).Load() robust against I/O, scanner and parser errors. 2014-06-13 11:32:46 -04:00