Skip to content

Commit 74c9bfb

Browse files
committed
[NFC] Update a macro serialization test for the change to ExtensionMacro.
1 parent 0bd898e commit 74c9bfb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/Serialization/Inputs/def_macro_plugin.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,13 @@ public struct SendableMacro: ExtensionMacro {
5757
of node: AttributeSyntax,
5858
attachedTo: some DeclGroupSyntax,
5959
providingExtensionsOf type: some TypeSyntaxProtocol,
60+
conformingTo protocols: [TypeSyntax],
6061
in context: some MacroExpansionContext
6162
) throws -> [ExtensionDeclSyntax] {
63+
if (protocols.isEmpty) {
64+
return []
65+
}
66+
6267
let sendableExtension: DeclSyntax =
6368
"""
6469
extension \(type.trimmed): Sendable {}

0 commit comments

Comments
 (0)