mirror of
https://github.com/github/codeql.git
synced 2026-04-24 16:25:15 +02:00
Simplify getCaseIndex
This commit is contained in:
@@ -461,7 +461,7 @@ class SwitchCase extends Stmt, @case {
|
||||
* Gets this case's ordinal in its switch block.
|
||||
*/
|
||||
int getCaseIndex() {
|
||||
this = this.getSwitch().getCase(result) or this = this.getSwitchExpr().getCase(result)
|
||||
this = any(SwitchStmt ss).getCase(result) or this = any(SwitchExpr se).getCase(result)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user