mirror of
https://github.com/golang/go
synced 2024-11-22 09:44:40 -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
|
ImportPath string
|
||||||
Imports []string
|
Imports []string
|
||||||
Filenames []string
|
Filenames []string
|
||||||
|
Bugs []string
|
||||||
|
|
||||||
|
// declarations
|
||||||
Consts []*Value
|
Consts []*Value
|
||||||
Types []*Type
|
Types []*Type
|
||||||
Vars []*Value
|
Vars []*Value
|
||||||
Funcs []*Func
|
Funcs []*Func
|
||||||
Bugs []string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Value is the documentation for a (possibly grouped) var or const declaration.
|
// Value is the documentation for a (possibly grouped) var or const declaration.
|
||||||
@ -44,8 +46,9 @@ type Method struct {
|
|||||||
type Type struct {
|
type Type struct {
|
||||||
Doc string
|
Doc string
|
||||||
Name string
|
Name string
|
||||||
Type *ast.TypeSpec
|
|
||||||
Decl *ast.GenDecl
|
Decl *ast.GenDecl
|
||||||
|
|
||||||
|
// associated declarations
|
||||||
Consts []*Value // sorted list of constants of (mostly) this type
|
Consts []*Value // sorted list of constants of (mostly) this type
|
||||||
Vars []*Value // sorted list of variables of (mostly) this type
|
Vars []*Value // sorted list of variables of (mostly) this type
|
||||||
Funcs []*Func // sorted list of functions returning 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
|
decl.Doc = nil // doc consumed - remove from ast.Decl node
|
||||||
t.Doc = doc.Text()
|
t.Doc = doc.Text()
|
||||||
t.Type = typespec
|
|
||||||
}
|
}
|
||||||
t.Consts = makeValues(old.values, token.CONST)
|
t.Consts = makeValues(old.values, token.CONST)
|
||||||
t.Vars = makeValues(old.values, token.VAR)
|
t.Vars = makeValues(old.values, token.VAR)
|
||||||
|
Loading…
Reference in New Issue
Block a user