bind: make Var implement Object

This commit is contained in:
Sebastien Binet 2016-01-05 15:17:39 +01:00
parent 8408276038
commit 55012d7276
1 changed files with 5 additions and 0 deletions

View File

@ -51,6 +51,11 @@ func getTypeString(t types.Type) string {
return types.TypeString(t, func(*types.Package) string { return " " }) 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 { func (v *Var) GoType() types.Type {
return v.sym.goobj.Type() return v.sym.goobj.Type()
} }