Skip to content

Commit 5257747

Browse files
committed
Macros: Implement expansion(of:providingMembersOf:conformingTo:in:) on MemberMacros.
Resolves a warning about using a deprecated default implementation.
1 parent 977ef19 commit 5257747

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

lib/Macros/Sources/ObservationMacros/ObservableMacro.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ extension ObservableMacro: MemberMacro {
196196
>(
197197
of node: AttributeSyntax,
198198
providingMembersOf declaration: Declaration,
199+
conformingTo protocols: [TypeSyntax],
199200
in context: Context
200201
) throws -> [DeclSyntax] {
201202
guard let identified = declaration.asProtocol(NamedDeclSyntax.self) else {

lib/Macros/Sources/SwiftMacros/DebugDescriptionMacro.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ extension DebugDescriptionMacro: MemberMacro {
2424
public static func expansion(
2525
of node: AttributeSyntax,
2626
providingMembersOf declaration: some DeclGroupSyntax,
27+
conformingTo protocols: [TypeSyntax],
2728
in context: some MacroExpansionContext
2829
)
2930
throws -> [DeclSyntax]

lib/Macros/Sources/SwiftMacros/OptionSetMacro.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ extension OptionSetMacro: MemberMacro {
152152
>(
153153
of attribute: AttributeSyntax,
154154
providingMembersOf decl: Decl,
155+
conformingTo protocols: [TypeSyntax],
155156
in context: Context
156157
) throws -> [DeclSyntax] {
157158
// Decode the expansion arguments.

0 commit comments

Comments
 (0)