Fix: ensure is a switch block

This commit is contained in:
Chris Smowton
2023-11-27 12:35:52 +00:00
parent cc68169f43
commit 3971817c92

View File

@@ -1300,7 +1300,7 @@ private module ControlFlowGraphImpl {
)
or
// Switch statements and expressions
exists(StmtParent switch |
exists(StmtParent switch | switch instanceof SwitchStmt or switch instanceof SwitchExpr |
exists(Expr switchExpr |
switchExpr = switch.(SwitchStmt).getExpr() or switchExpr = switch.(SwitchExpr).getExpr()
|