Skip to content

Commit e307830

Browse files
authored
Updated swift-syntax and related packages to version 600.0.0 (#20)
* Updated packages and swift-syntax to 600.0.0 * Fixed indentation in testOptionSetMacro
1 parent 2eded9c commit e307830

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

Package.resolved

Lines changed: 6 additions & 6 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: "510.0.0"
18+
from: "600.0.0"
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/Function.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public struct Function {
3232
}
3333

3434
public var isThrowing: Bool {
35-
_syntax.signature.effectSpecifiers?.throwsSpecifier != nil
35+
_syntax.signature.effectSpecifiers?.throwsClause?.throwsSpecifier != nil
3636
}
3737

3838
public var parameters: [FunctionParameter] {

Sources/MacroToolkit/SwiftSyntax+Extensions.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ extension FunctionDeclSyntax {
6767
public var effectSpecifiersOrDefault: FunctionEffectSpecifiersSyntax {
6868
signature.effectSpecifiers
6969
?? FunctionEffectSpecifiersSyntax(
70-
leadingTrivia: " ", asyncSpecifier: nil, throwsSpecifier: nil
70+
leadingTrivia: " ", asyncSpecifier: nil, throwsClause: nil
7171
)
7272
}
7373

@@ -92,7 +92,7 @@ extension FunctionDeclSyntax {
9292
.with(
9393
\.effectSpecifiers,
9494
effectSpecifiersOrDefault
95-
.with(\.throwsSpecifier, isPresent ? " throws" : nil)
95+
.with(\.throwsClause, isPresent ? ThrowsClauseSyntax(throwsSpecifier: " throws") : nil)
9696
)
9797
)
9898
}

Tests/MacroToolkitTests/MacroToolkitTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,16 +222,16 @@ final class MacroToolkitTests: XCTestCase {
222222
}
223223
224224
static let nextDay: Self =
225-
Self (rawValue: 1 << Options.nextDay.rawValue)
225+
Self(rawValue: 1 << Options.nextDay.rawValue)
226226
227227
static let secondDay: Self =
228-
Self (rawValue: 1 << Options.secondDay.rawValue)
228+
Self(rawValue: 1 << Options.secondDay.rawValue)
229229
230230
static let priority: Self =
231-
Self (rawValue: 1 << Options.priority.rawValue)
231+
Self(rawValue: 1 << Options.priority.rawValue)
232232
233233
static let standard: Self =
234-
Self (rawValue: 1 << Options.standard.rawValue)
234+
Self(rawValue: 1 << Options.standard.rawValue)
235235
}
236236
237237
extension ShippingOptions: OptionSet {

0 commit comments

Comments
 (0)