diff options
Diffstat (limited to 'libgo/go/go/types/type.go')
-rw-r--r-- | libgo/go/go/types/type.go | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/libgo/go/go/types/type.go b/libgo/go/go/types/type.go index d8415f1fdf..01adee8a3e 100644 --- a/libgo/go/go/types/type.go +++ b/libgo/go/go/types/type.go @@ -4,10 +4,7 @@ package types -import ( - "sort" - "sync" -) +import "sort" // A Type represents a type of Go. // All types implement the Type interface. @@ -121,10 +118,8 @@ func (s *Slice) Elem() Type { return s.elem } // A Struct represents a struct type. type Struct struct { - fields []*Var - tags []string // field tags; nil if there are no tags - offsets []int64 // field offsets in bytes, lazily initialized - offsetsOnce sync.Once // for threadsafe lazy initialization of offsets + fields []*Var + tags []string // field tags; nil if there are no tags } // NewStruct returns a new struct with the given fields and corresponding field tags. @@ -229,7 +224,7 @@ func NewSignature(recv *Var, params, results *Tuple, variadic bool) *Signature { // function. // // For an abstract method, Recv returns the enclosing interface either -// as a *Named or an *Interface. Due to embedding, an interface may +// as a *Named or an *Interface. Due to embedding, an interface may // contain methods whose receiver type is a different interface. func (s *Signature) Recv() *Var { return s.recv } |