@@ -1338,6 +1338,24 @@ class CoAwaitExpr extends UnaryOperation, @co_await {
1338
1338
override string getOperator ( ) { result = "co_await" }
1339
1339
1340
1340
override int getPrecedence ( ) { result = 16 }
1341
+
1342
+ /**
1343
+ * Gets the Boolean expression that is used to decide if the enclosing
1344
+ * coroutine should be suspended.
1345
+ */
1346
+ Expr getAwaitReady ( ) { result = this .getChild ( 1 ) }
1347
+
1348
+ /**
1349
+ * Gets the expression that represents the resume point if the enclosing
1350
+ * coroutine was suspended.
1351
+ */
1352
+ Expr getAwaitResume ( ) { result = this .getChild ( 2 ) }
1353
+
1354
+ /**
1355
+ * Gets the expression that is evaluated when the enclosing coroutine is
1356
+ * suspended.
1357
+ */
1358
+ Expr getAwaitSuspend ( ) { result = this .getChild ( 3 ) }
1341
1359
}
1342
1360
1343
1361
/**
@@ -1352,6 +1370,24 @@ class CoYieldExpr extends UnaryOperation, @co_yield {
1352
1370
override string getOperator ( ) { result = "co_yield" }
1353
1371
1354
1372
override int getPrecedence ( ) { result = 2 }
1373
+
1374
+ /**
1375
+ * Gets the Boolean expression that is used to decide if the enclosing
1376
+ * coroutine should be suspended.
1377
+ */
1378
+ Expr getAwaitReady ( ) { result = this .getChild ( 1 ) }
1379
+
1380
+ /**
1381
+ * Gets the expression that represents the resume point if the enclosing
1382
+ * coroutine was suspended.
1383
+ */
1384
+ Expr getAwaitResume ( ) { result = this .getChild ( 2 ) }
1385
+
1386
+ /**
1387
+ * Gets the expression that is evaluated when the enclosing coroutine is
1388
+ * suspended.
1389
+ */
1390
+ Expr getAwaitSuspend ( ) { result = this .getChild ( 3 ) }
1355
1391
}
1356
1392
1357
1393
/**
0 commit comments