Swift: Add upgrade and downgrade scripts

This commit is contained in:
Jeroen Ketema
2025-04-23 10:01:22 +02:00
committed by Paolo Tranquilli
parent a74b38c0ec
commit eea963e3f4
7 changed files with 11276 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
class MacroRole extends @macro_role {
string toString() { none() }
}
class ExprOrNone extends @expr_or_none {
string toString() { none() }
}
class TypeExpr extends @type_expr {
string toString() { none() }
}
class UnspecifiedElement extends @unspecified_element {
string toString() { none() }
}
from MacroRole role, int index, ExprOrNone conformance
where
macro_role_conformances(role, index, conformance) and
(conformance instanceof TypeExpr or conformance instanceof UnspecifiedElement)
select role, index, conformance

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,3 @@
description: Upgrade to Swift 6.1
compatibility: partial
macro_role_conformances.rel: run macro_role_conformances.qlo

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,2 @@
description: Upgrade to Swift 6.1
compatibility: full