tools/go/loader
Alan Donovan 20186168d5 go/ssa/ssautil: break ssa->loader dependency
Remove all dependencies from non-test code in go/ssa to go/loader,
except the deprecated Create function which will be eliminated in
favor of ssautil.CreateProgram in a mechnanical followup.

Add Examples of two main use cases of SSA construction:
loading a complete program from source; and
building a single package, loading its dependencies from import data.

Add tests to ssautil of the two load functions.
Suggestions welcome for better names.

Planned follow-ups:
- replace all references to ssa.Create with ssautil.CreateProgram and eliminate it.
- eliminate support in go/loader for the ImportBinary flag, and the
  PackageCreated hook which is no longer needed since clients can
  create the package themselves (see Example).

Step 1 to fixing issue 9955.

Change-Id: I4e64df67fcd5b7f0c0388047e06cea247fddfec5
Reviewed-on: https://go-review.googlesource.com/8669
Reviewed-by: Robert Griesemer <gri@golang.org>
2015-04-14 18:01:36 +00:00
..
testdata go/loader: improve robustness in face of input errors 2015-02-02 20:01:59 +00:00
cgo.go go.tools/*: replace $GOROOT/src/pkg with $GOROOT/src where appropriate. 2014-09-08 13:24:38 -04:00
loader.go go/ssa/ssautil: break ssa->loader dependency 2015-04-14 18:01:36 +00:00
loader_test.go go/loader: support relative imports like the go tool does 2015-03-12 18:51:46 +00:00
source_test.go astutil: move to go/ast/astutil 2015-01-13 15:47:47 +00:00
stdlib_test.go go/loader: improve robustness in face of input errors 2015-02-02 20:01:59 +00:00
util.go go/loader: limit concurrency of I/O operations during parsing 2015-04-06 15:15:05 +00:00