Skip to content

Commit 59ee3e1

Browse files
authored
Merge pull request github#14800 from github/alexdenisov/more-extractions
Swift: final 5.8/5.9 extractions
2 parents 865cbab + 2783c6d commit 59ee3e1

37 files changed

+11547
-21
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)