We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb2f198 commit 0c0f748Copy full SHA for 0c0f748
go/extractor/extractor.go
@@ -1651,6 +1651,16 @@ func extractType(tw *trap.Writer, tp types.Type) trap.Label {
1651
kind = dbscheme.TypeAlias.Index()
1652
dbscheme.TypeNameTable.Emit(tw, lbl, tp.Obj().Name())
1653
dbscheme.AliasRhsTable.Emit(tw, lbl, extractType(tw, tp.Rhs()))
1654
+
1655
+ entitylbl, exists := tw.Labeler.LookupObjectID(tp.Obj(), lbl)
1656
+ if entitylbl == trap.InvalidLabel {
1657
+ log.Printf("Omitting type-object binding for unknown object %v.\n", tp.Obj())
1658
+ } else {
1659
+ if !exists {
1660
+ extractObject(tw, tp.Obj(), entitylbl)
1661
+ }
1662
+ dbscheme.TypeObjectTable.Emit(tw, lbl, entitylbl)
1663
1664
default:
1665
log.Fatalf("unexpected type %T", tp)
1666
}
0 commit comments