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 0efe931Copy full SHA for 0efe931
Sources/SwiftSyntaxMacros/MacroProtocols/Macro.swift
@@ -10,9 +10,18 @@
10
//
11
//===----------------------------------------------------------------------===//
12
13
+#if compiler(>=6.2)
14
+/// Describes a macro.
15
+public protocol Macro: SendableMetatype {
16
+ /// How the resulting expansion should be formatted, `.auto` by default.
17
+ /// Use `.disabled` for the expansion to be used as is.
18
+ static var formatMode: FormatMode { get }
19
+}
20
+#else
21
/// Describes a macro.
22
public protocol Macro {
23
/// How the resulting expansion should be formatted, `.auto` by default.
24
/// Use `.disabled` for the expansion to be used as is.
25
static var formatMode: FormatMode { get }
26
}
27
+#endif
0 commit comments