tools/go
Alan Donovan 99b2441d95 go.tools/oracle: optionally restrict 'callgraph' query to a single package.
If a -pos argument is specified, a 'callgraph' query reports only the
functions within the query package.  This produces a far more manageable
amount of information, and because we don't need to package-qualify the
names, the result is easier to read.

Added tests:
- callgraph query with/without -pos
  (The test driver was extended to allow "nopos" queries.)
- callers and callees queries don't return wrappers

Also, in go/callgraph:
- (*Node).String, (*Edge).String
- (*Graph).DeleteSyntheticNodes eliminates synthetic wrapper functions,
  preserving topology.  Used in all four oracle "call*" queries.
- (*Graph).DeleteNode

LGTM=crawshaw
R=crawshaw
CC=golang-codereviews
https://golang.org/cl/66240044
2014-02-21 10:46:02 -05:00
..
callgraph go.tools/oracle: optionally restrict 'callgraph' query to a single package. 2014-02-21 10:46:02 -05:00
exact go.tools/go/types: minor cleanups 2014-01-14 21:04:35 -08:00
gccgoimporter go.tools/go/*: fix breakage caused by removal of types.NewPackage parameter. 2014-02-20 20:11:00 -05:00
gcimporter go.tools/go/types: internal cleanups 2014-02-20 14:52:21 -08:00
importer go.tools/go/*: fix breakage caused by removal of types.NewPackage parameter. 2014-02-20 20:11:00 -05:00
loader go.tools/go/loader: rename backdoor so only tests can use it. 2014-02-19 13:52:19 -05:00
pointer go.tools/go/callgraph: simplifications to API. 2014-02-20 11:57:48 -05:00
ssa go.tools/go/ssa: fix breakage caused by removal of types.NewPackage parameter. 2014-02-20 19:49:38 -05:00
types go.tools/go/types: internal cleanups 2014-02-20 14:52:21 -08:00
vcs go.tools/vcs: allow compilation with go 1.0 2013-10-04 11:46:57 +10:00