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.
SendableMetatype
Macro
1 parent 29fd4cc commit 72f59a2Copy full SHA for 72f59a2
Sources/SwiftSyntaxMacros/MacroProtocols/Macro.swift
@@ -11,8 +11,12 @@
11
//===----------------------------------------------------------------------===//
12
13
/// Describes a macro.
14
-public protocol Macro {
+public protocol Macro: SendableMetatype {
15
/// How the resulting expansion should be formatted, `.auto` by default.
16
/// Use `.disabled` for the expansion to be used as is.
17
static var formatMode: FormatMode { get }
18
}
19
+
20
+#if compiler(<6.2)
21
+public typealias SendableMetatype = Any
22
+#endif
0 commit comments