Skip to content

Commit 00b16c1

Browse files
committed
Swift: Add upgrade and downgrade scripts
1 parent 64b6523 commit 00b16c1

File tree

7 files changed

+11276
-0
lines changed

7 files changed

+11276
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
class MacroRole extends @macro_role {
2+
string toString() { none() }
3+
}
4+
5+
class ExprOrNone extends @expr_or_none {
6+
string toString() { none() }
7+
}
8+
9+
class TypeExpr extends @type_expr {
10+
string toString() { none() }
11+
}
12+
13+
class UnspecifiedElement extends @unspecified_element {
14+
string toString() { none() }
15+
}
16+
17+
from MacroRole role, int index, ExprOrNone conformance
18+
where
19+
macro_role_conformances(role, index, conformance) and
20+
(conformance instanceof TypeExpr or conformance instanceof UnspecifiedElement)
21+
select role, index, conformance

0 commit comments

Comments
 (0)