Commit 8865f5d0 authored by mbohlool's avatar mbohlool

Only add to tracker if it's non-local

parent 641b625a
......@@ -301,10 +301,10 @@ func (r *rawNamer) Name(t *types.Type) string {
if t.Name.Package != "" {
var name string
if r.tracker != nil {
r.tracker.AddType(t)
if t.Name.Package == r.pkg {
name = t.Name.Name
} else {
r.tracker.AddType(t)
name = r.tracker.LocalNameOf(t.Name.Package) + "." + t.Name.Name
}
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment