Skip to content

Commit c78285e

Browse files
authored
Merge pull request github#5784 from Marcono1234/marcono1234/switch-expr-stmt-parent
Java: Add StmtParent as superclass of SwitchExpr
2 parents 6693c5b + 05ce49a commit c78285e

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)