Skip to content

Commit

Permalink
Bump dependencies (#2)
Browse files Browse the repository at this point in the history
Signed-off-by: furby™ <[email protected]>
  • Loading branch information
furby-tm authored Aug 13, 2024
1 parent 0d6e5c2 commit 8aa8af8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ DerivedData/
.swiftpm/configuration/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc
/.vscode
16 changes: 8 additions & 8 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/swiftwasm/carton",
"state" : {
"revision" : "85fa55e4f9cbfa68d37dc7050ba7952fed300a2c",
"version" : "1.0.3"
"revision" : "d3f1da61faa05283e46a05698ac9bea46fd1035f",
"version" : "1.1.2"
}
},
{
"identity" : "javascriptkit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/swiftwasm/JavaScriptKit",
"state" : {
"revision" : "2d7bc960eed438dce7355710ece43fa004bbb3ac",
"version" : "0.15.0"
"revision" : "bfaba41ab62aaa89080f9d467eb68497e77a8a10",
"version" : "0.20.0"
}
},
{
Expand Down Expand Up @@ -59,8 +59,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/stackotter/swift-macro-toolkit",
"state" : {
"revision" : "106daeb38eb3f52b1540aed981fc63fa22274576",
"version" : "0.3.1"
"revision" : "687075e7bf976e121d083e922a07c7a9350ca85d",
"version" : "0.4.0"
}
},
{
Expand All @@ -77,8 +77,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-syntax.git",
"state" : {
"revision" : "74203046135342e4a4a627476dd6caf8b28fe11b",
"version" : "509.0.0"
"revision" : "2bc86522d115234d1f588efe2bcb4ce4be8f8b82",
"version" : "510.0.3"
}
},
{
Expand Down
8 changes: 4 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ let package = Package(
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.3.0"),
.package(
url: "https://github.com/apple/swift-syntax.git",
from: "509.0.0"
from: "510.0.3"
),
.package(
url: "https://github.com/stackotter/swift-macro-toolkit",
from: "0.3.1"
from: "0.4.0"
),
.package(url: "https://github.com/swiftwasm/carton", from: "1.0.0"),
.package(url: "https://github.com/swiftwasm/JavaScriptKit", exact: "0.15.0"),
.package(url: "https://github.com/swiftwasm/carton", from: "1.1.2"),
.package(url: "https://github.com/swiftwasm/JavaScriptKit", exact: "0.20.0"),
],
targets: [
.executableTarget(
Expand Down
5 changes: 2 additions & 3 deletions Sources/UtilityMacrosPlugin/ResultMacro.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public struct ResultMacro: ExpressionMacro {
of node: some FreestandingMacroExpansionSyntax,
in context: some MacroExpansionContext
) throws -> ExprSyntax {
guard node.argumentList.isEmpty, node.additionalTrailingClosures.isEmpty else {
guard node.arguments.isEmpty, node.additionalTrailingClosures.isEmpty else {
throw MacroError("#result expects a single trailing closure")
}

Expand Down Expand Up @@ -140,8 +140,7 @@ public struct ResultMacro: ExpressionMacro {
let rewriter = ArrowSyntaxRewriter(context: context, contextVariables: contextVariables)
closure.statements = rewriter.rewrite(closure.statements, detach: true).as(
CodeBlockItemListSyntax.self)!
closure.signature?.parameterClause = ClosureParameterClauseSyntax.init(parameters: [])
.as(ClosureSignatureSyntax.ParameterClause.self)
closure.signature?.parameterClause = ClosureSignatureSyntax.ParameterClause.parameterClause(.init(parameters: []))

guard rewriter.diagnostics.isEmpty else {
for diagnostic in rewriter.diagnostics {
Expand Down

0 comments on commit 8aa8af8

Please sign in to comment.