Skip to content

Commit 393aad5

Browse files
committed
Swift: downgrade parameter packs
1 parent 0fb439b commit 393aad5

File tree

7 files changed

+10712
-0
lines changed

7 files changed

+10712
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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 = "Removed parameter packs during the database downgrade" and
9+
property = "" and
10+
(
11+
pack_element_exprs(e, _) or
12+
pack_expansion_exprs(e, _) or
13+
pack_element_types(e, _) or
14+
pack_expansion_types(e, _, _) or
15+
pack_types(e) or
16+
element_archetype_types(e)
17+
)
18+
}
19+
20+
query predicate new_unspecified_element_children(Element e, int index, Element child) {
21+
unspecified_element_children(e, index, child)
22+
or
23+
pack_element_exprs(e, child) and index = 0
24+
or
25+
pack_expansion_exprs(e, child) and index = 0
26+
}

0 commit comments

Comments
 (0)