mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Merge pull request #5784 from Marcono1234/marcono1234/switch-expr-stmt-parent
Java: Add StmtParent as superclass of SwitchExpr
This commit is contained in:
@@ -1280,7 +1280,7 @@ class ConditionalExpr extends Expr, @conditionalexpr {
|
||||
/**
|
||||
* A `switch` expression.
|
||||
*/
|
||||
class SwitchExpr extends Expr, @switchexpr {
|
||||
class SwitchExpr extends Expr, StmtParent, @switchexpr {
|
||||
/** Gets an immediate child statement of this `switch` expression. */
|
||||
Stmt getAStmt() { result.getParent() = this }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user