Skip to content

Commit ec8c5cf

Browse files
authored
Update to swift-syntax 601.0.1 (#27)
1 parent 5696270 commit ec8c5cf

File tree

3 files changed

+28
-10
lines changed

3 files changed

+28
-10
lines changed

Package.resolved

Lines changed: 26 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ let package = Package(
1515
dependencies: [
1616
.package(
1717
url: "https://github.com/swiftlang/swift-syntax.git",
18-
from: "600.0.1"
18+
from: "601.0.1"
1919
),
2020
.package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "1.3.0"),
2121
.package(url: "https://github.com/SwiftPackageIndex/SPIManifest.git", from: "0.12.0"),

Sources/MacroToolkit/SimpleType.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public struct SimpleType: TypeProtocol {
2222
/// `Dictionary<Int, String>` it would be `["Int", "String"]`).
2323
public var genericArguments: [Type]? {
2424
_baseSyntax.genericArgumentClause.map { clause in
25-
clause.arguments.map(\.argument).map(Type.init)
25+
clause.arguments.map(\.argument).compactMap { $0.as(TypeSyntax.self).map(Type.init) }
2626
}
2727
}
2828
}

0 commit comments

Comments
 (0)