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 d23d7b8 commit e782e6bCopy full SHA for e782e6b
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