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 |
||
|---|---|---|
| .. | ||
| json | ||
| testdata/src | ||
| callees.go | ||
| callers.go | ||
| callgraph.go | ||
| callstack.go | ||
| describe.go | ||
| freevars.go | ||
| implements.go | ||
| oracle.go | ||
| oracle_test.go | ||
| peers.go | ||