diff --git a/go/types/objects.go b/go/types/objects.go index 595378c1..730b6557 100644 --- a/go/types/objects.go +++ b/go/types/objects.go @@ -192,6 +192,10 @@ func (obj *Func) FullName() string { return buf.String() } +func (obj *Func) Scope() *Scope { + return obj.typ.(*Signature).scope +} + // A Label represents a declared label. type Label struct { object