File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -1620,17 +1620,26 @@ void BindingSet::dump(llvm::raw_ostream &out, unsigned indent) const {
16201620 PO.PrintTypesForDebugging = true ;
16211621
16221622 out.indent (indent);
1623+ std::vector<std::string> attributes;
16231624 if (isDirectHole ())
1624- out << " hole " ;
1625+ attributes. push_back ( " hole" ) ;
16251626 if (isPotentiallyIncomplete ())
1626- out << " potentially_incomplete " ;
1627+ attributes. push_back ( " potentially_incomplete" ) ;
16271628 if (isDelayed ())
1628- out << " delayed " ;
1629+ attributes. push_back ( " delayed" ) ;
16291630 if (isSubtypeOfExistentialType ())
1630- out << " subtype_of_existential " ;
1631+ attributes. push_back ( " subtype_of_existential" ) ;
16311632 auto literalKind = getLiteralKind ();
1632- if (literalKind != LiteralBindingKind::None)
1633- out << " literal=" << static_cast <int >(literalKind) << " " ;
1633+ if (literalKind != LiteralBindingKind::None) {
1634+ auto literalAttrStr = (" [literal: " + getLiteralBindingKind (literalKind)
1635+ + " ]" ).str ();
1636+ attributes.push_back (literalAttrStr);
1637+ }
1638+ if (!attributes.empty ()) {
1639+ out << " [attributes: " ;
1640+ interleave (attributes, out, " , " );
1641+ out << " ] " ;
1642+ }
16341643 if (involvesTypeVariables ()) {
16351644 out << " involves_type_vars=[" ;
16361645 interleave (AdjacentVars,
You can’t perform that action at this time.
0 commit comments