mirror of https://github.com/go-python/gopy.git
bind: split Type into Type+Object
This commit is contained in:
parent
6c3787c30d
commit
0058490f51
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue