1
0
mirror of https://github.com/golang/go synced 2024-11-18 19:14:40 -07:00
go/oracle
Alan Donovan a1dade8bdc go.oracle: describe: disambiguate 'func' object kinds.
The typechecker uses *types.Func for functions, concrete
methods and interface methods; and *types.Var for variables
and struct fields.  This change makes clear which kind of
function we're describing.  (We can't do it for vars since
go/types doesn't expose enough information, yet.)

Also: add "omitempty" to one JSON field.

R=crawshaw
CC=golang-dev
https://golang.org/cl/13527044
2013-09-04 16:15:41 -04:00
..
json go.oracle: describe: disambiguate 'func' object kinds. 2013-09-04 16:15:41 -04:00
testdata/src go.oracle: describe: disambiguate 'func' object kinds. 2013-09-04 16:15:41 -04:00
callees.go go.tools/oracle: add option to output results in JSON syntax. 2013-09-03 15:29:02 -04:00
callers.go go.tools/oracle: add option to output results in JSON syntax. 2013-09-03 15:29:02 -04:00
callgraph.go go.tools/oracle: add option to output results in JSON syntax. 2013-09-03 15:29:02 -04:00
callstack.go go.tools/oracle: add option to output results in JSON syntax. 2013-09-03 15:29:02 -04:00
describe.go go.oracle: describe: disambiguate 'func' object kinds. 2013-09-04 16:15:41 -04:00
freevars.go go.tools/oracle: add option to output results in JSON syntax. 2013-09-03 15:29:02 -04:00
implements.go go.tools/oracle: add option to output results in JSON syntax. 2013-09-03 15:29:02 -04:00
oracle_test.go go.tools/oracle: change notation for byte offsets to "-pos=file.go:#123-#456" 2013-09-04 14:35:24 -04:00
oracle.go go.tools/oracle: change notation for byte offsets to "-pos=file.go:#123-#456" 2013-09-04 14:35:24 -04:00
peers.go go.tools/oracle: add option to output results in JSON syntax. 2013-09-03 15:29:02 -04:00