Skip to content

Commit 7676ad3

Browse files
committed
Swift: database downgrade script
1 parent a4da1a0 commit 7676ad3

File tree

4 files changed

+5567
-0
lines changed

4 files changed

+5567
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
class Element extends @element {
2+
string toString() { none() }
3+
}
4+
5+
query predicate new_unspecified_elements(Element e, string property, string error) {
6+
unspecified_elements(e, property, error)
7+
or
8+
error =
9+
"DiscardStmt and MaterializePackExpr removed during database downgrade. Please update your CodeQL code." and
10+
property = "" and
11+
(
12+
materialize_pack_exprs(e, _) or
13+
discard_stmts(e, _)
14+
)
15+
}
16+
17+
query predicate new_unspecified_element_children(Element e, int index, Element child) {
18+
unspecified_element_children(e, index, child)
19+
or
20+
materialize_pack_exprs(e, child) and index = 0
21+
or
22+
discard_stmts(e, child) and index = 0
23+
}

0 commit comments

Comments
 (0)