Skip to content

Commit

Permalink
Update swift-syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
samdeane committed Dec 18, 2024
1 parent fbcdc87 commit aff34ce
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ let package = Package(
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.3.0"),
.package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "1.3.0"),
.package(url: "https://github.com/swiftlang/swift-syntax", from: "510.0.1"),
.package(url: "https://github.com/swiftlang/swift-syntax", from: "600.0.1"),
],
targets: targets
)
2 changes: 1 addition & 1 deletion Sources/SwiftGodotMacroLibrary/MacroCallable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public struct GodotCallable: PeerMacro {

if let effects = funcDecl.signature.effectSpecifiers,
effects.asyncSpecifier?.presence == .present ||
effects.throwsSpecifier?.presence == .present {
effects.throwsClause?.throwsSpecifier.presence == .present {
throw GodotMacroError.unsupportedCallableEffect
}

Expand Down
2 changes: 1 addition & 1 deletion Tests/SwiftGodotMacrosTests/MacroGodotTestCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class MacroGodotTestCase: XCTestCase {
sourceFiles: [file: .init(moduleName: "test", fullFilePath: "test.swift")]
)

let expandedSourceFile = file.expand(macros: Self.macros, in: context, indentationWidth: .spaces(4))
let expandedSourceFile = file.expand(macros: Self.macros, contextGenerator: { _ in context }, indentationWidth: .spaces(4))

let testBody = """
assertExpansion(
Expand Down
3 changes: 2 additions & 1 deletion Tests/SwiftGodotMacrosTests/MacroGodotTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,8 @@ final class MacroGodotTests: MacroGodotTestCase {
let className = StringName("MyData")
assert(ClassDB.classExists(class: className))
let classInfo = ClassInfo<MyData> (name: className)
} ()}
} ()
}
final class MyClass: Node {
var data: MyData = .init()
Expand Down

0 comments on commit aff34ce

Please sign in to comment.