tools/go
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
..
ast/astutil go/ast/astutil: match prefix segments when adding imports 2015-03-30 17:57:25 +00:00
buildutil go/buildutil: use chan (not func) in the ForEachPackage API 2015-03-05 20:14:20 +00:00
callgraph go/loader: rename SourceImports flag to ImportFromBinary and invert sense 2015-02-23 23:01:10 +00:00
exact tools: add import comments. 2014-12-09 22:42:16 +00:00
gccgoimporter go/gccgoimporter: disable test case (fix build, at least partially) 2015-02-12 21:45:02 +00:00
gcimporter go/types, go/gcimporter: backport changes from std repo 2015-04-08 18:15:25 +00:00
importer tools: add import comments. 2014-12-09 22:42:16 +00:00
loader go/ssa/ssautil: break ssa->loader dependency 2015-04-14 18:01:36 +00:00
pointer go/pointer: add TODO comment 2015-04-02 18:06:43 +00:00
ssa go/ssa/ssautil: break ssa->loader dependency 2015-04-14 18:01:36 +00:00
types go/types, go/gcimporter: backport changes from std repo 2015-04-08 18:15:25 +00:00
vcs go/vcs: fix bug in remote package discovery 2015-01-10 08:10:09 +00:00