Skip to content

Commit fcefd03

Browse files
committed
Swift: Fill out the upgrade/downgrade scripts.
1 parent d5928e1 commit fcefd03

File tree

4 files changed

+26
-4
lines changed

4 files changed

+26
-4
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class TypeAliasDecl extends @type_alias_decl {
2+
string toString() { result = "TypeAliasDecl" }
3+
}
4+
5+
from TypeAliasDecl id
6+
select id
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
description: <INSERT DESCRIPTION HERE>
2-
compatibility: full|backwards|partial|breaking
1+
description: Revert adding TypeAliasDecl.getAliasedType()
2+
compatibility: full
3+
type_alias_decls.rel: run type_alias_decls.qlo
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
class TypeAliasDecl extends @type_alias_decl {
2+
string toString() { result = "TypeAliasDecl" }
3+
}
4+
5+
class Type extends @type_or_none {
6+
string toString() { result = "Type" }
7+
}
8+
9+
// use the canonical type as an approximation of the aliased type
10+
from TypeAliasDecl td, Type t, Type canonical
11+
where
12+
type_alias_types(t, td) and // td is the declaration of t
13+
types(t, _, canonical) // canonical is the canonical type of t
14+
select td, canonical
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
description: <INSERT DESCRIPTION HERE>
2-
compatibility: full|backwards|partial|breaking
1+
description: Add TypeAliasDecl.getAliasedType()
2+
compatibility: backwards
3+
type_alias_decls.rel: run type_alias_decls.qlo

0 commit comments

Comments
 (0)