mirror of
https://github.com/golang/go
synced 2024-11-25 09:17:57 -07:00
go/doc: removed unused field "Type.Type"
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
This commit is contained in:
parent
2257e7670f
commit
6d7e9382b4
@ -17,11 +17,13 @@ type Package struct {
|
||||
ImportPath string
|
||||
Imports []string
|
||||
Filenames []string
|
||||
Bugs []string
|
||||
|
||||
// declarations
|
||||
Consts []*Value
|
||||
Types []*Type
|
||||
Vars []*Value
|
||||
Funcs []*Func
|
||||
Bugs []string
|
||||
}
|
||||
|
||||
// Value is the documentation for a (possibly grouped) var or const declaration.
|
||||
@ -44,8 +46,9 @@ type Method struct {
|
||||
type Type struct {
|
||||
Doc string
|
||||
Name string
|
||||
Type *ast.TypeSpec
|
||||
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
|
||||
|
@ -520,7 +520,6 @@ func (doc *docReader) makeTypes(m map[string]*typeInfo) []*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)
|
||||
|
Loading…
Reference in New Issue
Block a user