@@ -469,11 +469,12 @@ public struct AddBackingStorage: MemberMacro {
469
469
public struct WrapAllProperties : MemberAttributeMacro {
470
470
public static func expansion<
471
471
Declaration: DeclGroupSyntax ,
472
+ MemberDeclaration: DeclSyntaxProtocol ,
472
473
Context: MacroExpansionContext
473
474
> (
474
475
of node: AttributeSyntax ,
475
476
attachedTo decl: Declaration ,
476
- providingAttributesFor member: DeclSyntax ,
477
+ providingAttributesFor member: MemberDeclaration ,
477
478
in context: Context
478
479
) throws -> [ AttributeSyntax ] {
479
480
guard member. is ( VariableDeclSyntax . self) else {
@@ -494,11 +495,12 @@ public struct WrapAllProperties: MemberAttributeMacro {
494
495
public struct WrapStoredProperties : MemberAttributeMacro {
495
496
public static func expansion<
496
497
Declaration: DeclGroupSyntax ,
498
+ MemberDeclaration: DeclSyntaxProtocol ,
497
499
Context: MacroExpansionContext
498
500
> (
499
501
of node: AttributeSyntax ,
500
502
attachedTo decl: Declaration ,
501
- providingAttributesFor member: DeclSyntax ,
503
+ providingAttributesFor member: MemberDeclaration ,
502
504
in context: Context
503
505
) throws -> [ AttributeSyntax ] {
504
506
guard let property = member. as ( VariableDeclSyntax . self) ,
@@ -559,11 +561,12 @@ extension CustomTypeWrapperMacro: MemberMacro {
559
561
extension CustomTypeWrapperMacro : MemberAttributeMacro {
560
562
static func expansion<
561
563
Declaration: DeclGroupSyntax ,
564
+ MemberDeclaration: DeclSyntaxProtocol ,
562
565
Context: MacroExpansionContext
563
566
> (
564
567
of node: AttributeSyntax ,
565
568
attachedTo declaration: Declaration ,
566
- providingAttributesFor member: DeclSyntax ,
569
+ providingAttributesFor member: MemberDeclaration ,
567
570
in context: Context
568
571
) throws -> [ AttributeSyntax ] {
569
572
return [
0 commit comments