CL
5572043 removed the last uses of this field.
The information is readily available from Type.Decl.
R=rsc, golang-dev
CC=golang-dev
https://golang.org/cl/
5570049
ImportPath string
Imports []string
Filenames []string
- Consts []*Value
- Types []*Type
- Vars []*Value
- Funcs []*Func
Bugs []string
+
+ // declarations
+ Consts []*Value
+ Types []*Type
+ Vars []*Value
+ Funcs []*Func
}
// Value is the documentation for a (possibly grouped) var or const declaration.
// Type is the documentation for type declaration.
type Type struct {
- Doc string
- Name string
- Type *ast.TypeSpec
- Decl *ast.GenDecl
+ Doc string
+ Name string
+ Decl *ast.GenDecl
+
+ // associated declarations
Consts []*Value // sorted list of constants of (mostly) this type
Vars []*Value // sorted list of variables of (mostly) this type
Funcs []*Func // sorted list of functions returning this type
}
decl.Doc = nil // doc consumed - remove from ast.Decl node
t.Doc = doc.Text()
- t.Type = typespec
}
t.Consts = makeValues(old.values, token.CONST)
t.Vars = makeValues(old.values, token.VAR)