PeerMacro
PeerMacro.swift:17protocol PeerMacro : AttachedMacro
Browse conforming typesprotocol PeerMacro : AttachedMacro
import SwiftSyntaxMacros
protocol AttachedMacro : Macro
Describes a macro that is attached, meaning that it is used with custom attribute syntax and attached to another entity.
protocol Macro
Describes a macro.
static func expansion(of node: AttributeSyntax, providingPeersOf declaration: some DeclSyntaxProtocol, in context: some MacroExpansionContext) throws -> [DeclSyntax]
Expand a macro described by the given custom attribute and attached to the given declaration and evaluated within a particular expansion context.