mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Simplify PatternExpr definition
This commit is contained in:
@@ -2633,7 +2633,7 @@ class PatternExpr extends Expr {
|
||||
(
|
||||
this.getParent() instanceof SwitchCase or
|
||||
this.getParent() instanceof InstanceOfExpr or
|
||||
this.getParent() instanceof PatternExpr
|
||||
this.getParent() instanceof RecordPatternExpr
|
||||
) and
|
||||
(this instanceof LocalVariableDeclExpr or this instanceof RecordPatternExpr)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user