diff --git a/Sources/SwiftGodotMacroLibrary/MacroExport.swift b/Sources/SwiftGodotMacroLibrary/MacroExport.swift index d95e64be9..98374beb2 100644 --- a/Sources/SwiftGodotMacroLibrary/MacroExport.swift +++ b/Sources/SwiftGodotMacroLibrary/MacroExport.swift @@ -98,8 +98,6 @@ public struct GodotExport: PeerMacro { throw GodotMacroError.expectedIdentifier(singleVar) } let varName = ips.identifier.text - let setterName = "_mproxy_set_\(varName)" - let getterName = "_mproxy_get_\(varName)" if let accessors = last.accessorBlock { if accessors.as (CodeBlockSyntax.self) != nil { diff --git a/Sources/SwiftGodotMacroLibrary/SceneTreeMacro.swift b/Sources/SwiftGodotMacroLibrary/SceneTreeMacro.swift index 448d383e8..58f124879 100644 --- a/Sources/SwiftGodotMacroLibrary/SceneTreeMacro.swift +++ b/Sources/SwiftGodotMacroLibrary/SceneTreeMacro.swift @@ -53,7 +53,7 @@ public struct SceneTreeMacro: AccessorMacro { public static func expansion(of node: AttributeSyntax, providingAccessorsOf declaration: some DeclSyntaxProtocol, in context: some MacroExpansionContext) throws -> [AccessorDeclSyntax] { - guard let argument = node.argument?.as(TupleExprElementListSyntax.self)?.first?.expression else { + guard let argument = node.arguments?.as(LabeledExprListSyntax.self)?.first?.expression else { let missingArgErr = Diagnostic(node: node.root, message: ProviderDiagnostic.missingPathArgument) context.diagnose(missingArgErr) return [