Skip to content

Commit c52af96

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)