You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and indicates the location of the code that performs this macro's expansion.
2649
-
The code that performs macro expansion is a separate Swift program,
2650
-
that uses the [SwiftSyntax][] module to interact with Swift code.
2651
-
Call the `externalMacro(module:type:)` macro from the Swift standard library,
2652
-
passing in the name of a type that contains the macro's implementation,
2653
-
and the name of the module that contains that type.
2645
+
*宏实现*是另一个宏,用于指示执行此宏扩展的代码位置。执行宏扩展的代码是一个独立的 Swift 程序,该程序使用 [SwiftSyntax][] 模块与 Swift 代码进行交互。调用 Swift 标准库中的 `externalMacro(module:type:)` 宏,并传入包含宏实现的类型名称以及包含该类型的模块名称。
0 commit comments