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(
191191
192192 ] ,
193193 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" ) ,
195195 . package ( url: " https://github.com/apple/swift-argument-parser " , from: " 1.5.0 " ) ,
196196 . package ( url: " https://github.com/apple/swift-system " , from: " 1.4.0 " ) ,
197197
Original file line number Diff line number Diff line change @@ -180,7 +180,12 @@ extension SwiftType {
180180 // Translate the generic arguments.
181181 let genericArgs = try identifierType. genericArgumentClause. map { genericArgumentClause in
182182 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+ }
184189 }
185190 }
186191
@@ -210,7 +215,12 @@ extension SwiftType {
210215 // Translate the generic arguments.
211216 let genericArgs = try memberType. genericArgumentClause. map { genericArgumentClause in
212217 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+ }
214224 }
215225 }
216226
You can’t perform that action at this time.
0 commit comments