mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Demangling: Add option for printing simplified async resume functions
This commit is contained in:
@@ -2812,16 +2812,20 @@ NodePointer NodePrinter::print(NodePointer Node, bool asPrefixContext) {
|
||||
Printer << "async function pointer to ";
|
||||
return nullptr;
|
||||
case Node::Kind::AsyncAwaitResumePartialFunction:
|
||||
Printer << "(";
|
||||
print(Node->getChild(0));
|
||||
Printer << ")";
|
||||
Printer << " await resume partial function for ";
|
||||
if (Options.ShowAsyncResumePartial) {
|
||||
Printer << "(";
|
||||
print(Node->getChild(0));
|
||||
Printer << ")";
|
||||
Printer << " await resume partial function for ";
|
||||
}
|
||||
return nullptr;
|
||||
case Node::Kind::AsyncSuspendResumePartialFunction:
|
||||
Printer << "(";
|
||||
print(Node->getChild(0));
|
||||
Printer << ")";
|
||||
Printer << " suspend resume partial function for ";
|
||||
if (Options.ShowAsyncResumePartial) {
|
||||
Printer << "(";
|
||||
print(Node->getChild(0));
|
||||
Printer << ")";
|
||||
Printer << " suspend resume partial function for ";
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user