Skip to content

Commit 9b91c07

Browse files
committed
Transparent aliases: don't look through named types
1 parent 359836b commit 9b91c07

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

go/extractor/extractor.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1619,7 +1619,7 @@ func extractTypeWithFlags(tw *trap.Writer, tp types.Type, transparentAliases boo
16191619
kind = dbscheme.NamedType.Index()
16201620
dbscheme.TypeNameTable.Emit(tw, lbl, origintp.Obj().Name())
16211621
underlying := origintp.Underlying()
1622-
extractUnderlyingType(tw, lbl, underlying, transparentAliases)
1622+
extractUnderlyingType(tw, lbl, underlying)
16231623
trackInstantiatedStructFields(tw, tp, origintp)
16241624

16251625
extractTypeObject(tw, lbl, origintp.Obj())
@@ -1866,8 +1866,8 @@ func extractBaseType(tw *trap.Writer, ptr trap.Label, base types.Type, transpare
18661866

18671867
// extractUnderlyingType extracts `underlying` as the underlying type of the
18681868
// named type `named`
1869-
func extractUnderlyingType(tw *trap.Writer, named trap.Label, underlying types.Type, transparentAliases bool) {
1870-
dbscheme.UnderlyingTypeTable.Emit(tw, named, extractTypeWithFlags(tw, underlying, transparentAliases))
1869+
func extractUnderlyingType(tw *trap.Writer, named trap.Label, underlying types.Type) {
1870+
dbscheme.UnderlyingTypeTable.Emit(tw, named, extractType(tw, underlying))
18711871
}
18721872

18731873
// extractComponentType extracts `component` as the `idx`th component type of `parent` with name `name`

0 commit comments

Comments
 (0)