@@ -572,6 +572,7 @@ class NodePrinter {
572
572
case Node::Kind::DifferentiableFunctionType:
573
573
case Node::Kind::GlobalActorFunctionType:
574
574
case Node::Kind::IsolatedAnyFunctionType:
575
+ case Node::Kind::NonIsolatedCallerFunctionType:
575
576
case Node::Kind::SendingResultFunctionType:
576
577
case Node::Kind::AsyncAnnotation:
577
578
case Node::Kind::ThrowsAnnotation:
@@ -915,6 +916,14 @@ class NodePrinter {
915
916
print (node->getChild (startIndex), depth + 1 );
916
917
++startIndex;
917
918
}
919
+
920
+ Node *nonIsolatedCallerNode = nullptr ;
921
+ if (node->getChild (startIndex)->getKind () ==
922
+ Node::Kind::NonIsolatedCallerFunctionType) {
923
+ nonIsolatedCallerNode = node->getChild (startIndex);
924
+ ++startIndex;
925
+ }
926
+
918
927
if (node->getChild (startIndex)->getKind () ==
919
928
Node::Kind::GlobalActorFunctionType) {
920
929
print (node->getChild (startIndex), depth + 1 );
@@ -963,6 +972,9 @@ class NodePrinter {
963
972
break ;
964
973
}
965
974
975
+ if (nonIsolatedCallerNode)
976
+ print (nonIsolatedCallerNode, depth + 1 );
977
+
966
978
if (isSendable)
967
979
Printer << " @Sendable " ;
968
980
@@ -3108,6 +3120,9 @@ NodePointer NodePrinter::print(NodePointer Node, unsigned depth,
3108
3120
case Node::Kind::IsolatedAnyFunctionType:
3109
3121
Printer << " @isolated(any) " ;
3110
3122
return nullptr ;
3123
+ case Node::Kind::NonIsolatedCallerFunctionType:
3124
+ Printer << " @execution(caller) " ;
3125
+ return nullptr ;
3111
3126
case Node::Kind::SendingResultFunctionType:
3112
3127
Printer << " sending " ;
3113
3128
return nullptr ;
0 commit comments