bind: split Type into Type+Object

This commit is contained in:
Sebastien Binet 2015-07-28 14:33:47 +02:00
parent 6c3787c30d
commit 0058490f51
1 changed files with 7 additions and 3 deletions

View File

@ -8,15 +8,19 @@ import (
"golang.org/x/tools/go/types"
)
type Type interface {
type Object interface {
Package() *Package
GoType() types.Type
GoName() string
ID() string
Doc() string
GoName() string
Obj() types.Object
}
type Type interface {
Object
GoType() types.Type
}
func needWrapType(typ types.Type) bool {
switch typ.(type) {
case *types.Struct: