From 8865f5d00753cd20de693245130c0d350d55a295 Mon Sep 17 00:00:00 2001 From: mbohlool Date: Thu, 8 Sep 2016 14:22:02 -0700 Subject: [PATCH] Only add to tracker if it's non-local --- cmd/libs/go2idl/namer/namer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/libs/go2idl/namer/namer.go b/cmd/libs/go2idl/namer/namer.go index c24ade05b0d..0c3639fece2 100644 --- a/cmd/libs/go2idl/namer/namer.go +++ b/cmd/libs/go2idl/namer/namer.go @@ -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 {