Skip to content

Commit a7a50cf

Browse files
committed
Swift: more downgrade script fixes
1 parent 50521f7 commit a7a50cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

swift/downgrades/dd1bfe298d87cd82cb0d26e3349ada7244778785/for_in_downgrade.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ query predicate new_for_each_stmts(
3030
ForEachStmt stmt, Element pattern, Element body, Element sequence,
3131
Element iteratorVar
3232
) {
33-
for_each_stmt(stmt, pattern, body) and
33+
for_each_stmts(stmt, pattern, body) and
3434
for_each_stmt_iterator_vars(stmt, iteratorVar) and
3535
(
3636
iteratorVar instanceof @pattern_binding_decl and
@@ -40,7 +40,7 @@ query predicate new_for_each_stmts(
4040

4141
query predicate new_pattern_binding_decls(Element id) {
4242
pattern_binding_decls(id) and
43-
not for_each_stmt_iterator_vars(id)
43+
not for_each_stmt_iterator_vars(id, _)
4444
}
4545

4646
query predicate new_pattern_binding_decl_patterns(Element id, int index, Element pattern) {

0 commit comments

Comments
 (0)