File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -1620,12 +1620,6 @@ class NameAliasType final
1620
1620
return getNumSubstitutions ();
1621
1621
}
1622
1622
1623
- // / Retrieve the set of substitutions to be applied to the declaration to
1624
- // / produce the underlying type.
1625
- SubstitutionList getSubstitutionList () const {
1626
- return {getTrailingObjects<Substitution>(), getNumSubstitutions ()};
1627
- }
1628
-
1629
1623
// / Retrieve the generic signature used for substitutions.
1630
1624
GenericSignature *getGenericSignature () const {
1631
1625
return getNumSubstitutions () > 0
@@ -1651,6 +1645,12 @@ class NameAliasType final
1651
1645
: Type ();
1652
1646
}
1653
1647
1648
+ // / Retrieve the set of substitutions to be applied to the declaration to
1649
+ // / produce the underlying type.
1650
+ SubstitutionList getSubstitutionList () const {
1651
+ return {getTrailingObjects<Substitution>(), getNumSubstitutions ()};
1652
+ }
1653
+
1654
1654
// / Retrieve the substitution map applied to the declaration's underlying
1655
1655
// / to produce the described type.
1656
1656
SubstitutionMap getSubstitutionMap () const ;
Original file line number Diff line number Diff line change @@ -3631,10 +3631,7 @@ void Serializer::writeType(Type ty) {
3631
3631
addTypeRef (alias->getParent ()),
3632
3632
addTypeRef (alias->getSinglyDesugaredType ()));
3633
3633
// Write the set of substitutions.
3634
- SmallVector<Substitution, 4 > flatSubs;
3635
- if (auto genericSig = typeAlias->getGenericSignature ())
3636
- genericSig->getSubstitutions (alias->getSubstitutionMap (), flatSubs);
3637
- writeSubstitutions (flatSubs, DeclTypeAbbrCodes);
3634
+ writeSubstitutions (alias->getSubstitutionList (), DeclTypeAbbrCodes);
3638
3635
break ;
3639
3636
}
3640
3637
You can’t perform that action at this time.
0 commit comments