@@ -63,36 +63,6 @@ public macro column<T: ExpressibleByIntegerLiteral>() -> T =
6363@freestanding ( expression)
6464public macro dsohandle( ) -> UnsafeRawPointer = Builtin . DSOHandleMacro
6565
66- /// Create an option set from a struct that contains a nested `Options` enum.
67- ///
68- /// Attach this macro to a struct that contains a nested `Options` enum
69- /// with an integer raw value. The struct will be transformed to conform to
70- /// `OptionSet` by
71- /// 1. Introducing a `rawValue` stored property to track which options are set,
72- /// along with the necessary `RawType` typealias and initializers to satisfy
73- /// the `OptionSet` protocol. The raw type is specified after `@OptionSet`,
74- /// e.g., `@OptionSet<UInt8>`.
75- /// 2. Introducing static properties for each of the cases within the `Options`
76- /// enum, of the type of the struct.
77- ///
78- /// The `Options` enum must have a raw value, where its case elements
79- /// each indicate a different option in the resulting option set. For example,
80- /// the struct and its nested `Options` enum could look like this:
81- ///
82- /// @OptionSet<UInt8>
83- /// struct ShippingOptions {
84- /// private enum Options: Int {
85- /// case nextDay
86- /// case secondDay
87- /// case priority
88- /// case standard
89- /// }
90- /// }
91- @attached ( member, names: named ( RawValue) , named ( rawValue) , named ( `init`) , arbitrary)
92- @attached ( conformance)
93- public macro OptionSet< RawType> ( ) =
94- #externalMacro( module: " SwiftMacros " , type: " OptionSetMacro " )
95-
9666/// Produce the given warning message during compilation.
9767@freestanding ( declaration)
9868public macro warning( _ message: String ) = Builtin . WarningMacro
0 commit comments