Skip to content

Commit b129111

Browse files
committed
[CHORE] Updating to swift-syntax 601.0.1: compile-time version check
1 parent 75ebf13 commit b129111

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

Package@swift-5.10.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ let package = Package(
2020
),
2121
],
2222
dependencies: [
23-
.package(url: "https://github.com/swiftlang/swift-syntax.git", from: "601.0.1"),
23+
.package(url: "https://github.com/swiftlang/swift-syntax.git", from: "600.0.1"),
2424
],
2525
targets: [
2626
.target(

Package@swift-5.8.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ let package = Package(
2020
),
2121
],
2222
dependencies: [
23-
23+
.package(url: "https://github.com/swiftlang/swift-syntax.git", from: "600.0.1"),
2424
],
2525
targets: [
2626
.target(

Package@swift-5.9.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ let package = Package(
2020
),
2121
],
2222
dependencies: [
23-
.package(url: "https://github.com/swiftlang/swift-syntax.git", from: "601.0.1"),
23+
.package(url: "https://github.com/swiftlang/swift-syntax.git", from: "600.0.1"),
2424
],
2525
targets: [
2626
.target(

Package@swift-6.0.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ let package = Package(
2020
),
2121
],
2222
dependencies: [
23-
.package(url: "https://github.com/swiftlang/swift-syntax.git", from: "601.0.1"),
23+
.package(url: "https://github.com/swiftlang/swift-syntax.git", from: "600.0.1"),
2424
],
2525
targets: [
2626
.target(

Sources/SyntaxSparrow/Public/Semantics/Components/EntityType.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ public enum EntityType: Equatable, Hashable, CustomStringConvertible {
140140
self = EntityType.parseType(typeSyntax)
141141
}
142142

143+
#if swift(>=6.1)
143144
/// Creates a new ``SyntaxSparrow/EntityType`` instance from a `GenericArgumentSyntax.Argument` node.
144145
public init(_ argument: GenericArgumentSyntax.Argument) {
145146
switch argument {
@@ -149,4 +150,5 @@ public enum EntityType: Equatable, Hashable, CustomStringConvertible {
149150
self = .empty
150151
}
151152
}
153+
#endif
152154
}

0 commit comments

Comments
 (0)