CasePathableMacro
CasePathableMacro.swift:6struct CasePathableMacro
struct CasePathableMacro
import CasePathsMacros
protocol AttachedMacro : Macro
Describes a macro that is attached, meaning that it is used with custom attribute syntax and attached to another entity.
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Escapable
protocol ExtensionMacro : AttachedMacro
Describes a macro that can add extensions to the declaration it’s attached to.
protocol Macro
Describes a macro.
protocol MemberMacro : AttachedMacro
Describes a macro that can add members to the declaration it’s attached to.
static func expansion<D, T, C>(of node: AttributeSyntax, attachedTo declaration: D, providingExtensionsOf type: T, conformingTo protocols: [TypeSyntax], in context: C) throws -> [ExtensionDeclSyntax] where D : DeclGroupSyntax, T : TypeSyntaxProtocol, C : MacroExpansionContext
static func expansion<Declaration, Context>(of node: AttributeSyntax, providingMembersOf declaration: Declaration, in context: Context) throws -> [DeclSyntax] where Declaration : DeclGroupSyntax, Context : MacroExpansionContext
static var formatMode: FormatMode { get }
static func expansion(of node: AttributeSyntax, providingMembersOf declaration: some DeclGroupSyntax, conformingTo protocols: [TypeSyntax], in context: some MacroExpansionContext) throws -> [DeclSyntax]
Default implementation that ignores the unhandled conformances.
static func expansion(of node: AttributeSyntax, providingMembersOf declaration: some DeclGroupSyntax, in context: some MacroExpansionContext) throws -> [DeclSyntax]
Default implementation supplies no conformances.