Skip to content

Commit 05ce49a

Browse files
committed
Java: Add StmtParent as superclass of SwitchExpr
Database type `@stmtparent` already includes `@switchexpr`, this commit merely changes the class SwitchExpr to also accordingly extend StmtParent.
1 parent 0509a12 commit 05ce49a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,7 @@ class ConditionalExpr extends Expr, @conditionalexpr {
12801280
/**
12811281
* A `switch` expression.
12821282
*/
1283-
class SwitchExpr extends Expr, @switchexpr {
1283+
class SwitchExpr extends Expr, StmtParent, @switchexpr {
12841284
/** Gets an immediate child statement of this `switch` expression. */
12851285
Stmt getAStmt() { result.getParent() = this }
12861286

0 commit comments

Comments
 (0)