mirror of
https://github.com/github/codeql.git
synced 2026-04-21 06:55:31 +02:00
Fix: ensure is a switch block
This commit is contained in:
@@ -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()
|
||||
|
|
||||
|
||||
Reference in New Issue
Block a user