mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
More StmtParent -> SwitchBlock
This commit is contained in:
@@ -1684,7 +1684,7 @@ class LocalVariableDeclExpr extends Expr, @localvariabledeclexpr {
|
||||
/**
|
||||
* Gets the switch statement or expression whose pattern declares this identifier, if any.
|
||||
*/
|
||||
StmtParent getAssociatedSwitch() {
|
||||
SwitchBlock getAssociatedSwitch() {
|
||||
exists(PatternCase pc |
|
||||
pc = result.(SwitchStmt).getAPatternCase()
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user