SwiftSyntaxMacros
import SwiftSyntaxMacros
Module information
- Declarations
- 77
- Symbols
- 81
import SwiftSyntaxMacros
protocol AccessorMacro : AttachedMacro
Describes a macro that adds accessors to a given declaration.
protocol AttachedMacro : Macro
Describes a macro that is attached, meaning that it is used with custom attribute syntax and attached to another entity.
protocol BodyMacro : AttachedMacro
Describes a macro that can create the body for a function that does not have one.
protocol CodeItemMacro : FreestandingMacro
Describes a macro that forms code items in a function or closure body.
protocol DeclarationMacro : FreestandingMacro
Describes a macro that forms declarations.
protocol ExpressionMacro : FreestandingMacro
Describes a macro that is explicitly expanded as an expression.
protocol ExtensionMacro : AttachedMacro
Describes a macro that can add extensions to the declaration it’s attached to.
protocol FreestandingMacro : Macro
Describes a macro that is freestanding, meaning that it is used with the #
syntax.
protocol Macro
Describes a macro.
protocol MacroExpansionContext : AnyObject
Interface to extract information about the context in which a given macro is expanded.
protocol MemberAttributeMacro : AttachedMacro
Describes a macro that can add attributes to the members inside the declaration it’s attached to.
protocol MemberMacro : AttachedMacro
Describes a macro that can add members to the declaration it’s attached to.
protocol PeerMacro : AttachedMacro
protocol PreambleMacro : AttachedMacro
Describes a macro that can introduce “preamble” code into an existing function body.
struct AbstractSourceLocation
Abstractly represents a source location in the macro.
enum FormatMode
Describes the mode to use to format the result of an expansion.
struct MacroExpansionErrorMessage
An error during macro expansion that is described by its message.
struct MacroExpansionFixItMessage
The message of a Fix-It that is specified by a string literal
struct MacroExpansionNoteMessage
The message of a note that is specified by a string literal
struct MacroExpansionWarningMessage
An warning during macro expansion that is described by its message.
enum PositionInSyntaxNode
Describe the position within a syntax node that can be used to compute source locations.
enum SourceLocationFilePathMode
Describes the source location file path
import SwiftBasicFormat
import SwiftCompilerPlugin
import SwiftCompilerPluginMessageHandling
import SwiftDiagnostics
import SwiftIDEUtils
import SwiftLibraryPluginProvider
import SwiftOperators
An implementation of Swift’s user-defined operator declarations and precedence groups, allowing a program to reason about the relative precedence of infix operations and transform syntax trees to describe the order of operations.
import SwiftParser
A parser for the Swift programming language.
import SwiftParserDiagnostics
import SwiftRefactor
import SwiftSyntax
A library for working with Swift code.
import SwiftSyntax509
import SwiftSyntax510
import SwiftSyntax600
import SwiftSyntaxBuilder
SwiftSyntaxBuilder is a tool for generating Swift code in a convenient way using result builders.
import SwiftSyntaxMacroExpansion
import SwiftSyntaxMacrosGenericTestSupport
import SwiftSyntaxMacrosTestSupport
import _SwiftLibraryPluginProviderCShims
import _SwiftSyntaxCShims
import _SwiftSyntaxGenericTestSupport