@@ -631,7 +631,10 @@ namespace {
631
631
void visitExtensionDecl (ExtensionDecl *ED) {
632
632
printCommon (ED, " extension_decl" , ExtensionColor);
633
633
OS << ' ' ;
634
- ED->getExtendedType ().print (OS);
634
+ if (ED->hasBeenBound ())
635
+ ED->getExtendedType ().print (OS);
636
+ else
637
+ ED->getExtendedTypeRepr ()->print (OS);
635
638
printCommonPost (ED);
636
639
}
637
640
@@ -854,20 +857,22 @@ namespace {
854
857
if (D->isStatic ())
855
858
PrintWithColorRAII (OS, DeclModifierColor) << " type" ;
856
859
857
- auto impl = D->getImplInfo ();
858
- PrintWithColorRAII (OS, DeclModifierColor)
859
- << " readImpl="
860
- << getReadImplKindName (impl.getReadImpl ());
861
- if (!impl.supportsMutation ()) {
862
- PrintWithColorRAII (OS, DeclModifierColor)
863
- << " immutable" ;
864
- } else {
860
+ if (D->hasInterfaceType ()) {
861
+ auto impl = D->getImplInfo ();
865
862
PrintWithColorRAII (OS, DeclModifierColor)
866
- << " writeImpl="
867
- << getWriteImplKindName (impl.getWriteImpl ());
868
- PrintWithColorRAII (OS, DeclModifierColor)
869
- << " readWriteImpl="
870
- << getReadWriteImplKindName (impl.getReadWriteImpl ());
863
+ << " readImpl="
864
+ << getReadImplKindName (impl.getReadImpl ());
865
+ if (!impl.supportsMutation ()) {
866
+ PrintWithColorRAII (OS, DeclModifierColor)
867
+ << " immutable" ;
868
+ } else {
869
+ PrintWithColorRAII (OS, DeclModifierColor)
870
+ << " writeImpl="
871
+ << getWriteImplKindName (impl.getWriteImpl ());
872
+ PrintWithColorRAII (OS, DeclModifierColor)
873
+ << " readWriteImpl="
874
+ << getReadWriteImplKindName (impl.getReadWriteImpl ());
875
+ }
871
876
}
872
877
}
873
878
0 commit comments