We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bd898e commit 74c9bfbCopy full SHA for 74c9bfb
test/Serialization/Inputs/def_macro_plugin.swift
@@ -57,8 +57,13 @@ public struct SendableMacro: ExtensionMacro {
57
of node: AttributeSyntax,
58
attachedTo: some DeclGroupSyntax,
59
providingExtensionsOf type: some TypeSyntaxProtocol,
60
+ conformingTo protocols: [TypeSyntax],
61
in context: some MacroExpansionContext
62
) throws -> [ExtensionDeclSyntax] {
63
+ if (protocols.isEmpty) {
64
+ return []
65
+ }
66
+
67
let sendableExtension: DeclSyntax =
68
"""
69
extension \(type.trimmed): Sendable {}
0 commit comments