Skip to content

Commit 8b95e0e

Browse files
authored
Merge pull request #19315 from github/redsun82/swift-6.1
Swift: make extractor compile again after 6.1 upgrade
2 parents f9172ff + e8eac81 commit 8b95e0e

File tree

55 files changed

+11407
-165
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+11407
-165
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)