File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ let package = Package(
191
191
192
192
] ,
193
193
dependencies: [
194
- . package ( url: " https://github.com/swiftlang/swift-syntax " , from: " 600 .0.1" ) ,
194
+ . package ( url: " https://github.com/swiftlang/swift-syntax " , from: " 601 .0.1" ) ,
195
195
. package ( url: " https://github.com/apple/swift-argument-parser " , from: " 1.5.0 " ) ,
196
196
. package ( url: " https://github.com/apple/swift-system " , from: " 1.4.0 " ) ,
197
197
Original file line number Diff line number Diff line change @@ -180,7 +180,12 @@ extension SwiftType {
180
180
// Translate the generic arguments.
181
181
let genericArgs = try identifierType. genericArgumentClause. map { genericArgumentClause in
182
182
try genericArgumentClause. arguments. map { argument in
183
- try SwiftType ( argument. argument, symbolTable: symbolTable)
183
+ switch argument. argument {
184
+ case . type( let argumentTy) :
185
+ try SwiftType ( argumentTy, symbolTable: symbolTable)
186
+ default :
187
+ throw TypeTranslationError . unimplementedType ( type)
188
+ }
184
189
}
185
190
}
186
191
@@ -210,7 +215,12 @@ extension SwiftType {
210
215
// Translate the generic arguments.
211
216
let genericArgs = try memberType. genericArgumentClause. map { genericArgumentClause in
212
217
try genericArgumentClause. arguments. map { argument in
213
- try SwiftType ( argument. argument, symbolTable: symbolTable)
218
+ switch argument. argument {
219
+ case . type( let argumentTy) :
220
+ try SwiftType ( argumentTy, symbolTable: symbolTable)
221
+ default :
222
+ throw TypeTranslationError . unimplementedType ( type)
223
+ }
214
224
}
215
225
}
216
226
You can’t perform that action at this time.
0 commit comments