mirror of https://github.com/go-python/gopy.git
bind: make Var implement Object
This commit is contained in:
parent
8408276038
commit
55012d7276
|
@ -51,6 +51,11 @@ func getTypeString(t types.Type) string {
|
|||
return types.TypeString(t, func(*types.Package) string { return " " })
|
||||
}
|
||||
|
||||
func (v *Var) Package() *Package { return v.pkg }
|
||||
func (v *Var) ID() string { return v.id }
|
||||
func (v *Var) Doc() string { return v.doc }
|
||||
func (v *Var) GoName() string { return v.name }
|
||||
|
||||
func (v *Var) GoType() types.Type {
|
||||
return v.sym.goobj.Type()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue