mirror of
https://github.com/github/codeql.git
synced 2026-04-22 23:35:14 +02:00
PrintAst: report pattern-cases similar to pattern-instanceof
This commit is contained in:
@@ -423,7 +423,8 @@ private class SingleLocalVarDeclParent extends ExprOrStmt {
|
||||
SingleLocalVarDeclParent() {
|
||||
this instanceof EnhancedForStmt or
|
||||
this instanceof CatchClause or
|
||||
this.(InstanceOfExpr).isPattern()
|
||||
this.(InstanceOfExpr).isPattern() or
|
||||
this instanceof PatternCase
|
||||
}
|
||||
|
||||
/** Gets the variable declaration that this element contains */
|
||||
|
||||
Reference in New Issue
Block a user