1
0
mirror of https://github.com/golang/go synced 2024-11-18 23:54:41 -07:00
go/oracle
Alan Donovan 829d52f2e8 go.tools/go/callgraph: simplifications to API.
1) We remove context sensitivity from API.  The pointer analysis is
   not sufficiently context-sensitive for the context information to
   be worth exposing.  (The actual analysis precision still benefits
   from being context-sensitive, though.)  Since all clients would
   discard the context info, we now do that for them.
2) Make the graph doubly-linked.  Edges are now shared by the Nodes
   at both ends of the edge so it's possible to navigate more easily
   (e.g. to the callers).
3) Graph and Node are now concrete, not interfaces.

Less code in every file!

LGTM=crawshaw
R=crawshaw
CC=golang-codereviews
https://golang.org/cl/66460043
2014-02-20 11:57:48 -05:00
..
serial go.tools/oracle: implements: now shows whole-program implements relation for selected type. 2013-12-13 18:00:55 -05:00
testdata/src go.tools/go/callgraph: simplifications to API. 2014-02-20 11:57:48 -05:00
callees.go go.tools/go/callgraph: simplifications to API. 2014-02-20 11:57:48 -05:00
callers.go go.tools/go/callgraph: simplifications to API. 2014-02-20 11:57:48 -05:00
callgraph.go go.tools/go/callgraph: simplifications to API. 2014-02-20 11:57:48 -05:00
callstack.go go.tools/go/callgraph: simplifications to API. 2014-02-20 11:57:48 -05:00
definition.go go.tools/oracle: improvements to command set and performance. 2013-12-13 10:04:55 -05:00
describe.go go.tools/go/types/typeutil: new package for type utilities. 2014-02-19 13:32:36 -05:00
freevars.go go.tools/oracle: improvements to command set and performance. 2013-12-13 10:04:55 -05:00
implements.go go.tools/go/types: remove Type.MethodSet() method. 2014-02-11 16:49:27 -05:00
oracle_test.go go.tools/go/callgraph: simplifications to API. 2014-02-20 11:57:48 -05:00
oracle.go go.tools/go/pointer: remove context-sensitivity from API. 2014-02-20 11:35:09 -05:00
peers.go go.tools/go/pointer: remove context-sensitivity from API. 2014-02-20 11:35:09 -05:00
pointsto.go go.tools/go/pointer: remove context-sensitivity from API. 2014-02-20 11:35:09 -05:00
pos.go go.tools/oracle: improvements to command set and performance. 2013-12-13 10:04:55 -05:00
referrers.go go.tools/oracle: improvements to command set and performance. 2013-12-13 10:04:55 -05:00
TODO go.tools/oracle: implements: now shows whole-program implements relation for selected type. 2013-12-13 18:00:55 -05:00
what.go go.tools/oracle: implements: now shows whole-program implements relation for selected type. 2013-12-13 18:00:55 -05:00