extractor: Extract methods when their labels don't exist

This commit is contained in:
Sauyon Lee
2020-03-10 20:36:49 -07:00
parent ccae530508
commit 0daf8c1fa3

View File

@@ -1167,7 +1167,7 @@ func extractType(tw *trap.Writer, tp types.Type) trap.Label {
meth := underlyingInterface.Method(i)
methlbl, exists := tw.Labeler.MethodID(meth, underlyingInterfaceLabel)
if !exists {
log.Printf("No label for method %s of type %s yet.", meth.Name(), tp.Obj().Name())
extractObject(tw, meth, methlbl)
}
dbscheme.MethodHostsTable.Emit(tw, methlbl, lbl)
}