@@ -299,7 +299,7 @@ public struct WrapAllProperties: MemberAttributeMacro {
299
299
public static func expansion(
300
300
of node: AttributeSyntax ,
301
301
attachedTo parent: some DeclGroupSyntax ,
302
- providingAttributesFor member: DeclSyntax ,
302
+ providingAttributesFor member: some DeclSyntaxProtocol ,
303
303
in context: some MacroExpansionContext
304
304
) throws -> [ AttributeSyntax ] {
305
305
guard member. is ( VariableDeclSyntax . self) else {
@@ -329,7 +329,7 @@ extension TypeWrapperMacro: MemberAttributeMacro {
329
329
public static func expansion(
330
330
of node: AttributeSyntax ,
331
331
attachedTo decl: some DeclGroupSyntax ,
332
- providingAttributesFor member: DeclSyntax ,
332
+ providingAttributesFor member: some DeclSyntaxProtocol ,
333
333
in context: some MacroExpansionContext
334
334
) throws -> [ AttributeSyntax ] {
335
335
guard let varDecl = member. as ( VariableDeclSyntax . self) ,
@@ -451,7 +451,7 @@ public struct WrapStoredPropertiesMacro: MemberAttributeMacro {
451
451
> (
452
452
of node: AttributeSyntax ,
453
453
attachedTo decl: Declaration ,
454
- providingAttributesFor member: DeclSyntax ,
454
+ providingAttributesFor member: some DeclSyntaxProtocol ,
455
455
in context: Context
456
456
) throws -> [ AttributeSyntax ] {
457
457
guard let property = member. as ( VariableDeclSyntax . self) ,
@@ -660,7 +660,7 @@ public struct ObservableMacro: MemberMacro, MemberAttributeMacro {
660
660
public static func expansion(
661
661
of node: AttributeSyntax ,
662
662
attachedTo declaration: some DeclGroupSyntax ,
663
- providingAttributesFor member: DeclSyntax ,
663
+ providingAttributesFor member: some DeclSyntaxProtocol ,
664
664
in context: some MacroExpansionContext
665
665
) throws -> [ SwiftSyntax . AttributeSyntax ] {
666
666
guard member. isObservableStoredProperty else {
0 commit comments