@@ -22,7 +22,7 @@ import OSLog
2222/// #logDebug("Value:", x, y)
2323/// // → Log.debug("Value:", x, y)
2424/// ```
25- public struct LogDebugMacro : ExpressionMacro {
25+ public struct LogDebugMacro : ExpressionMacro , Sendable {
2626 public static func expansion(
2727 of node: some FreestandingMacroExpansionSyntax ,
2828 in context: some MacroExpansionContext
@@ -49,7 +49,7 @@ public struct LogDebugMacro: ExpressionMacro {
4949/// #logInfo("Started")
5050/// // → Log.info("Started")
5151/// ```
52- public struct LogInfoMacro : ExpressionMacro {
52+ public struct LogInfoMacro : ExpressionMacro , Sendable {
5353 public static func expansion(
5454 of node: some FreestandingMacroExpansionSyntax ,
5555 in context: some MacroExpansionContext
@@ -71,7 +71,7 @@ public struct LogInfoMacro: ExpressionMacro {
7171/// `#logNetwork(...)` 매크로 확장.
7272///
7373/// - `Log.network(...)` 호출로 변환합니다.
74- public struct LogNetworkMacro : ExpressionMacro {
74+ public struct LogNetworkMacro : ExpressionMacro , Sendable {
7575 public static func expansion(
7676 of node: some FreestandingMacroExpansionSyntax ,
7777 in context: some MacroExpansionContext
@@ -93,7 +93,7 @@ public struct LogNetworkMacro: ExpressionMacro {
9393/// `#logError(...)` 매크로 확장.
9494///
9595/// - `Log.error(...)` 호출로 변환합니다.
96- public struct LogErrorMacro : ExpressionMacro {
96+ public struct LogErrorMacro : ExpressionMacro , Sendable {
9797 public static func expansion(
9898 of node: some FreestandingMacroExpansionSyntax ,
9999 in context: some MacroExpansionContext
@@ -115,7 +115,7 @@ public struct LogErrorMacro: ExpressionMacro {
115115/// `#logTest(...)` 매크로 확장.
116116///
117117/// - `Log.test(...)` 호출로 변환합니다.
118- public struct LogTestMacro : ExpressionMacro {
118+ public struct LogTestMacro : ExpressionMacro , Sendable {
119119 public static func expansion(
120120 of node: some FreestandingMacroExpansionSyntax ,
121121 in context: some MacroExpansionContext
@@ -137,7 +137,7 @@ public struct LogTestMacro: ExpressionMacro {
137137/// `#logCustom(category:message:...)` 매크로 확장.
138138///
139139/// - `Log.custom(category: , ...)` 호출로 변환합니다.
140- public struct LogCustomMacro : ExpressionMacro {
140+ public struct LogCustomMacro : ExpressionMacro , Sendable {
141141 /// `#logCustom(category: "Category", "Message", args...)` 매크로를 `Log.custom(...)` 호출로 변환합니다.
142142 ///
143143 /// - Parameters:
@@ -153,11 +153,11 @@ public struct LogCustomMacro: ExpressionMacro {
153153 guard node. arguments. count >= 2 else {
154154 fatalError ( " compiler bug: the macro does not have enough arguments " )
155155 }
156-
156+
157157 // 첫 번째 인자는 카테고리, 두 번째 인자는 메시지
158158 let category = node. arguments. first!. expression
159159 let message = node. arguments. dropFirst ( ) . first!. expression
160-
160+
161161 // 나머지 인자가 있으면 쉼표로 연결
162162 let arguments = node. arguments
163163 . dropFirst ( 2 )
0 commit comments