@@ -29,6 +29,7 @@ fileprivate struct NoOpMemberMacro: MemberMacro {
29
29
static func expansion(
30
30
of node: AttributeSyntax ,
31
31
providingMembersOf declaration: some DeclGroupSyntax ,
32
+ conformingTo protocols: [ TypeSyntax ] ,
32
33
in context: some MacroExpansionContext
33
34
) throws -> [ DeclSyntax ] {
34
35
return [ ]
@@ -43,6 +44,7 @@ final class MemberMacroTests: XCTestCase {
43
44
static func expansion(
44
45
of node: AttributeSyntax ,
45
46
providingMembersOf declaration: some DeclGroupSyntax ,
47
+ conformingTo protocols: [ TypeSyntax ] ,
46
48
in context: some MacroExpansionContext
47
49
) throws -> [ DeclSyntax ] {
48
50
guard case . argumentList( let arguments) = node. arguments else {
@@ -88,6 +90,7 @@ final class MemberMacroTests: XCTestCase {
88
90
static func expansion(
89
91
of node: AttributeSyntax ,
90
92
providingMembersOf decl: some DeclGroupSyntax ,
93
+ conformingTo protocols: [ TypeSyntax ] ,
91
94
in context: some MacroExpansionContext
92
95
) throws -> [ DeclSyntax ] {
93
96
return [ " var _storage: Storage<Self> " ]
@@ -179,6 +182,7 @@ final class MemberMacroTests: XCTestCase {
179
182
static func expansion(
180
183
of node: AttributeSyntax ,
181
184
providingMembersOf declaration: some DeclGroupSyntax ,
185
+ conformingTo protocols: [ TypeSyntax ] ,
182
186
in context: some MacroExpansionContext
183
187
) throws -> [ DeclSyntax ] {
184
188
guard case . argumentList( let arguments) = node. arguments, let argument = arguments. first? . expression else {
@@ -227,6 +231,7 @@ final class MemberMacroTests: XCTestCase {
227
231
static func expansion(
228
232
of node: AttributeSyntax ,
229
233
providingMembersOf declaration: some DeclGroupSyntax ,
234
+ conformingTo protocols: [ TypeSyntax ] ,
230
235
in context: some MacroExpansionContext
231
236
) throws -> [ DeclSyntax ] {
232
237
guard case . argumentList( let arguments) = node. arguments, let argument = arguments. first? . expression else {
0 commit comments