1
0
mirror of https://github.com/golang/go synced 2024-10-01 11:28:34 -06:00
go/oracle/json
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 go.oracle: describe: disambiguate 'func' object kinds. 2013-09-04 16:15:41 -04:00