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 |
||
|---|---|---|
| .. | ||
| testdata | ||
| cgo.go | ||
| importer_test.go | ||
| loader.go | ||
| pkginfo.go | ||
| source_test.go | ||
| stdlib_test.go | ||
| util.go | ||