1
0
mirror of https://github.com/golang/go synced 2024-11-18 13:34:41 -07:00
go/oracle
Alan Donovan 0dda50d42a go/loader: improve robustness in face of input errors
Before this change, many kinds of error would cause the loader to stop.
    making it brittle when analyzing large codebases, as in "godoc -analysis".

    This change moves operations that used to occur during
    configuration---(*build.Context).Import, loading, and parsing of
    initial packages---into the Load call, and ensures that all failures
    during Loading are reported at the end so that the maximum amount of
    progress is made.

    Also: redesign the tests and add many new cases.

Change-Id: Ia8cd99416af7c5d4a5fe133908adfa83676d401f
Reviewed-on: https://go-review.googlesource.com/3626
Reviewed-by: Robert Griesemer <gri@golang.org>
2015-02-02 20:01:59 +00:00
..
serial x/tools/oracle: add whicherrs query mode 2014-12-05 15:51:34 +00:00
testdata/src x/tools/oracle: add whicherrs query mode 2014-12-05 15:51:34 +00:00
callees.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
callers.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
callgraph.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
callstack.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
definition.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
describe.go astutil: move to go/ast/astutil 2015-01-13 15:47:47 +00:00
freevars.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
implements.go go/types: expose IsInterface predicate, eliminating 6 copies 2015-01-21 18:49:27 +00:00
oracle_test.go x/tools/oracle: add whicherrs query mode 2014-12-05 15:51:34 +00:00
oracle.go go/loader: improve robustness in face of input errors 2015-02-02 20:01:59 +00:00
peers.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
pointsto.go astutil: move to go/ast/astutil 2015-01-13 15:47:47 +00:00
pos.go astutil: move to go/ast/astutil 2015-01-13 15:47:47 +00:00
referrers.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
TODO cmd/oracle: minor fixes. 2014-11-17 13:50:23 -05:00
what.go astutil: move to go/ast/astutil 2015-01-13 15:47:47 +00:00
whicherrs.go astutil: move to go/ast/astutil 2015-01-13 15:47:47 +00:00