@@ -2,19 +2,19 @@ import SwiftSyntax
22import SwiftSyntaxMacros
33
44public struct AutoRoutableMacro : MemberMacro {
5- public static func expansion< Declaration : DeclGroupSyntax , Context : MacroExpansionContext > (
5+ public static func expansion(
66 of node: AttributeSyntax ,
7- providingMembersOf declaration: Declaration ,
8- conformingTo _ : [ TypeSyntax ] ,
9- in context: Context
7+ providingMembersOf declaration: some DeclGroupSyntax ,
8+ conformingTo protocols : [ TypeSyntax ] ,
9+ in context: some MacroExpansionContext
1010 ) throws -> [ DeclSyntax ] {
1111 try expansion ( of: node, providingMembersOf: declaration, in: context)
1212 }
1313
14- public static func expansion< Declaration : DeclGroupSyntax , Context : MacroExpansionContext > (
15- of _ : AttributeSyntax ,
16- providingMembersOf declaration: Declaration ,
17- in _ : Context
14+ public static func expansion(
15+ of node : AttributeSyntax ,
16+ providingMembersOf declaration: some DeclGroupSyntax ,
17+ in context : some MacroExpansionContext
1818 ) throws -> [ DeclSyntax ] {
1919 let caseNames : [ String ] = declaration. memberBlock. members
2020 . compactMap { $0. decl. as ( EnumCaseDeclSyntax . self) }
0 commit comments