File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
swift/ql/lib/codeql/swift/controlflow/internal Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -1444,6 +1444,24 @@ module Exprs {
1444
1444
}
1445
1445
}
1446
1446
1447
+ /** Control-flow for Move Semantics. See the QLDoc for `CopyExpr` for details. */
1448
+ private class CopyExprTree extends AstStandardPostOrderTree {
1449
+ override CopyExpr ast ;
1450
+
1451
+ final override ControlFlowElement getChildElement ( int i ) {
1452
+ i = 0 and result .asAstNode ( ) = ast .getSubExpr ( ) .getFullyUnresolved ( )
1453
+ }
1454
+ }
1455
+
1456
+ /** Control-flow for Move Semantics. See the QLDoc for `ConsumeExpr` for details. */
1457
+ private class ConsumeExprTree extends AstStandardPostOrderTree {
1458
+ override ConsumeExpr ast ;
1459
+
1460
+ final override ControlFlowElement getChildElement ( int i ) {
1461
+ i = 0 and result .asAstNode ( ) = ast .getSubExpr ( ) .getFullyUnresolved ( )
1462
+ }
1463
+ }
1464
+
1447
1465
private class OpaqueValueExprTree extends AstLeafTree {
1448
1466
override OpaqueValueExpr ast ;
1449
1467
}
You can’t perform that action at this time.
0 commit comments