Skip to content

Commit 94819e3

Browse files
committed
More StmtParent -> SwitchBlock
1 parent e93fe8d commit 94819e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

java/ql/lib/semmle/code/java/Expr.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1684,7 +1684,7 @@ class LocalVariableDeclExpr extends Expr, @localvariabledeclexpr {
16841684
/**
16851685
* Gets the switch statement or expression whose pattern declares this identifier, if any.
16861686
*/
1687-
StmtParent getAssociatedSwitch() {
1687+
SwitchBlock getAssociatedSwitch() {
16881688
exists(PatternCase pc |
16891689
pc = result.(SwitchStmt).getAPatternCase()
16901690
or

java/ql/lib/semmle/code/java/Statement.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ class SwitchCase extends Stmt, @case {
468468
* Holds if this is the `n`th case of switch block `parent`.
469469
*/
470470
pragma[nomagic]
471-
predicate isNthCaseOf(StmtParent parent, int n) {
471+
predicate isNthCaseOf(SwitchBlock parent, int n) {
472472
this.getCaseIndex() = n and this.getParent() = parent
473473
}
474474

0 commit comments

Comments
 (0)