Skip to content

Commit 3aa0b64

Browse files
authored
Merge pull request #2754 from ahoppen/member-macro-conformance-warning
2 parents 9a2bd6a + 7513c79 commit 3aa0b64

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/SwiftSyntaxMacros/MacroProtocols/MemberMacro.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ extension MemberMacro {
8181
}
8282

8383
/// Default implementation that ignores the unhandled conformances.
84+
@available(
85+
*,
86+
deprecated,
87+
message: "`MemberMacro` conformance should implement the `expansion` function that takes a `conformingTo` parameter"
88+
)
8489
public static func expansion(
8590
of node: AttributeSyntax,
8691
providingMembersOf declaration: some DeclGroupSyntax,

0 commit comments

Comments
 (0)