@@ -294,9 +294,12 @@ extension PropertyWrapper: AccessorMacro {
294294}
295295
296296extension PropertyWrapper : PeerMacro {
297- public static func expansion< Context: MacroExpansionContext > (
297+ public static func expansion<
298+ Context: MacroExpansionContext ,
299+ Declaration: DeclSyntaxProtocol
300+ > (
298301 of node: AttributeSyntax ,
299- providingPeersOf declaration: DeclSyntax ,
302+ providingPeersOf declaration: Declaration ,
300303 in context: Context
301304 ) throws -> [ SwiftSyntax . DeclSyntax ] {
302305 guard let varDecl = declaration. as ( VariableDeclSyntax . self) ,
@@ -331,9 +334,12 @@ extension PropertyWrapper: PeerMacro {
331334}
332335
333336public struct AddCompletionHandler : PeerMacro {
334- public static func expansion< Context: MacroExpansionContext > (
337+ public static func expansion<
338+ Context: MacroExpansionContext ,
339+ Declaration: DeclSyntaxProtocol
340+ > (
335341 of node: AttributeSyntax ,
336- providingPeersOf declaration: DeclSyntax ,
342+ providingPeersOf declaration: Declaration ,
337343 in context: Context
338344 ) throws -> [ DeclSyntax ] {
339345 // Only on functions at the moment. We could handle initializers as well
0 commit comments