@@ -2227,12 +2227,12 @@ namespace {
2227
2227
if (Writer.isParsable ()) {
2228
2228
// Parsable outputs are meant to be used for semantic analysis, so we
2229
2229
// want the full list of members, including macro-generated ones.
2230
- printList (IDC->getABIMembers (), [&](Decl *D, Label label) {
2230
+ printList (IDC->getAllMembers (), [&](Decl *D, Label label) {
2231
2231
printRec (D, label);
2232
2232
}, Label::optional (" members" ));
2233
2233
} else {
2234
2234
auto members = ParseIfNeeded ? IDC->getMembers ()
2235
- : IDC->getCurrentMembersWithoutLoading ();
2235
+ : IDC->getCurrentMembersWithoutLoading ();
2236
2236
printList (members, [&](Decl *D, Label label) {
2237
2237
printRec (D, label);
2238
2238
}, Label::optional (" members" ));
@@ -4794,7 +4794,7 @@ class PrintAttribute : public AttributeVisitor<PrintAttribute, void, Label>,
4794
4794
4795
4795
void visitExecutionAttr (ExecutionAttr *Attr, Label label) {
4796
4796
printCommon (Attr, " execution_attr" , label);
4797
- printField (Attr->getBehavior (), " behavior" );
4797
+ printField (Attr->getBehavior (), Label::always ( " behavior" ) );
4798
4798
printFoot ();
4799
4799
}
4800
4800
void visitABIAttr (ABIAttr *Attr, Label label) {
@@ -5869,14 +5869,15 @@ namespace {
5869
5869
#define VISIT_BINDABLE_NOMINAL_TYPE (TypeClass, Name ) \
5870
5870
VISIT_NOMINAL_TYPE (TypeClass, Name) \
5871
5871
void visitBoundGeneric##TypeClass( \
5872
- BoundGeneric##TypeClass *T, StringRef label) { \
5872
+ BoundGeneric##TypeClass *T, Label label) { \
5873
5873
printCommon (" bound_generic_" #Name, label); \
5874
- printFieldQuoted (T->getDecl ()->printRef (), " decl" ); \
5874
+ printFieldQuoted (T->getDecl ()->printRef (), Label::always ( " decl" ) ); \
5875
5875
printFlag (T->getDecl ()->hasClangNode (), " foreign" ); \
5876
5876
if (T->getParent ()) \
5877
- printRec (T->getParent (), " parent" ); \
5878
- for (auto arg : T->getGenericArgs ()) \
5879
- printRec (arg); \
5877
+ printRec (T->getParent (), Label::always (" parent" )); \
5878
+ printList (T->getGenericArgs (), [&](auto arg, Label label) { \
5879
+ printRec (arg, label); \
5880
+ }, Label::optional (" generic_args" )); \
5880
5881
printFoot (); \
5881
5882
}
5882
5883
@@ -5919,7 +5920,7 @@ namespace {
5919
5920
5920
5921
void visitModuleType (ModuleType *T, Label label) {
5921
5922
printCommon (" module_type" , label);
5922
- printDeclNameField (T->getModule (), Label::always (" module" ));
5923
+ printDeclName (T->getModule (), Label::always (" module" ));
5923
5924
printFlag (T->getModule ()->isNonSwiftModule (), " foreign" );
5924
5925
printFoot ();
5925
5926
}
@@ -6042,7 +6043,7 @@ namespace {
6042
6043
void printAnyFunctionParamsRec (ArrayRef<AnyFunctionType::Param> params,
6043
6044
Label label) {
6044
6045
printRecArbitrary ([&](Label label) {
6045
- printCommon (" function_params" , FieldLabelColor, label);
6046
+ printHead (" function_params" , FieldLabelColor, label);
6046
6047
6047
6048
printField (params.size (), Label::always (" num_params" ));
6048
6049
printList (params, [&](const auto ¶m, Label label) {
0 commit comments