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.
2 parents 29fd4cc + 0efe931 commit e95026eCopy full SHA for e95026e
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