mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Abolish the old attribute syntax for type attributes (and SIL type attrs)
- Change type attribute printing logic (in astprinter and the demangler) to print in the new syntax - Change the swift parser to only accept type attributes in the new syntax. - Update canParseTypeTupleBody to lookahead over new-syntax type attributes. - Update the testsuite to use the new syntax. Swift SVN r9273
This commit is contained in:
@@ -1738,7 +1738,7 @@ void toString(NodePointer pointer, DemanglerPrinter &printer) {
|
||||
toStringChildren(pointer, printer);
|
||||
break;
|
||||
case swift::Demangle::Node::Kind::InOut:
|
||||
printer << "[inout] ";
|
||||
printer << "@inout ";
|
||||
pointer = pointer->child_at(0); continue;
|
||||
case swift::Demangle::Node::Kind::ObjCAttribute:
|
||||
printer << "[objc] ";
|
||||
@@ -1856,7 +1856,7 @@ void toString(NodePointer pointer, DemanglerPrinter &printer) {
|
||||
break;
|
||||
}
|
||||
case swift::Demangle::Node::Kind::ObjCBlock: {
|
||||
printer << "[objc_block] ";
|
||||
printer << "@objc_block ";
|
||||
NodePointer tuple = pointer->child_at(0);
|
||||
NodePointer rettype = pointer->child_at(1);
|
||||
toString(tuple, printer);
|
||||
|
||||
Reference in New Issue
Block a user