mirror of
https://github.com/github/codeql.git
synced 2026-02-20 00:43:44 +01:00
Treat for variables and exception variables as declarations
This commit is contained in:
@@ -25,7 +25,8 @@ private predicate patternNode(Generated::AstNode n, boolean parameter) {
|
||||
parameter = false and
|
||||
n in [
|
||||
any(Generated::Assignment assign).getLeft(),
|
||||
any(Generated::OperatorAssignment assign).getLeft()
|
||||
any(Generated::OperatorAssignment assign).getLeft(),
|
||||
any(Generated::ExceptionVariable a).getChild(), any(Generated::For f).getPattern(_)
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user