@@ -2227,12 +2227,12 @@ namespace {
22272227 if (Writer.isParsable ()) {
22282228 // Parsable outputs are meant to be used for semantic analysis, so we
22292229 // 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) {
22312231 printRec (D, label);
22322232 }, Label::optional (" members" ));
22332233 } else {
22342234 auto members = ParseIfNeeded ? IDC->getMembers ()
2235- : IDC->getCurrentMembersWithoutLoading ();
2235+ : IDC->getCurrentMembersWithoutLoading ();
22362236 printList (members, [&](Decl *D, Label label) {
22372237 printRec (D, label);
22382238 }, Label::optional (" members" ));
@@ -4794,7 +4794,7 @@ class PrintAttribute : public AttributeVisitor<PrintAttribute, void, Label>,
47944794
47954795 void visitExecutionAttr (ExecutionAttr *Attr, Label label) {
47964796 printCommon (Attr, " execution_attr" , label);
4797- printField (Attr->getBehavior (), " behavior" );
4797+ printField (Attr->getBehavior (), Label::always ( " behavior" ) );
47984798 printFoot ();
47994799 }
48004800 void visitABIAttr (ABIAttr *Attr, Label label) {
@@ -5869,14 +5869,15 @@ namespace {
58695869#define VISIT_BINDABLE_NOMINAL_TYPE (TypeClass, Name ) \
58705870 VISIT_NOMINAL_TYPE (TypeClass, Name) \
58715871 void visitBoundGeneric##TypeClass( \
5872- BoundGeneric##TypeClass *T, StringRef label) { \
5872+ BoundGeneric##TypeClass *T, Label label) { \
58735873 printCommon (" bound_generic_" #Name, label); \
5874- printFieldQuoted (T->getDecl ()->printRef (), " decl" ); \
5874+ printFieldQuoted (T->getDecl ()->printRef (), Label::always ( " decl" ) ); \
58755875 printFlag (T->getDecl ()->hasClangNode (), " foreign" ); \
58765876 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" )); \
58805881 printFoot (); \
58815882 }
58825883
@@ -5919,7 +5920,7 @@ namespace {
59195920
59205921 void visitModuleType (ModuleType *T, Label label) {
59215922 printCommon (" module_type" , label);
5922- printDeclNameField (T->getModule (), Label::always (" module" ));
5923+ printDeclName (T->getModule (), Label::always (" module" ));
59235924 printFlag (T->getModule ()->isNonSwiftModule (), " foreign" );
59245925 printFoot ();
59255926 }
@@ -6042,7 +6043,7 @@ namespace {
60426043 void printAnyFunctionParamsRec (ArrayRef<AnyFunctionType::Param> params,
60436044 Label label) {
60446045 printRecArbitrary ([&](Label label) {
6045- printCommon (" function_params" , FieldLabelColor, label);
6046+ printHead (" function_params" , FieldLabelColor, label);
60466047
60476048 printField (params.size (), Label::always (" num_params" ));
60486049 printList (params, [&](const auto ¶m, Label label) {
0 commit comments