FreestandingMacroExpansionSyntax
SyntaxTraits.swift:198protocol FreestandingMacroExpansionSyntax : SyntaxProtocol
Browse conforming typesprotocol FreestandingMacroExpansionSyntax : SyntaxProtocol
import SwiftSyntax
A library for working with Swift code.
protocol SyntaxProtocol : CustomDebugStringConvertible, CustomReflectable, CustomStringConvertible, Sendable, TextOutputStreamable
Provide common functionality for specialized syntax nodes. Extend this protocol to provide common functionality for all syntax nodes.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol CustomReflectable
A type that explicitly supplies its own mirror.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Sendable
A thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.
protocol TextOutputStreamable
A source of text-streaming operations.
var additionalTrailingClosures: MultipleTrailingClosureElementListSyntax { get set }
var arguments: LabeledExprListSyntax { get set }
var genericArgumentClause: GenericArgumentClauseSyntax? { get set }
var leftParen: TokenSyntax? { get set }
var macroName: TokenSyntax { get set }
var pound: TokenSyntax { get set }
var rightParen: TokenSyntax? { get set }
var trailingClosure: ClosureExprSyntax? { get set }
protocol BracedSyntax : SyntaxProtocol
/ Automatically generated by generate-swift-syntax / Do not edit directly!
protocol DeclGroupSyntax : DeclSyntaxProtocol
protocol EffectSpecifiersSyntax : SyntaxProtocol
protocol NamedDeclSyntax : SyntaxProtocol
protocol MissingNodeSyntax : SyntaxProtocol
Represents a layout node that is missing in the source file.
protocol ParenthesizedSyntax : SyntaxProtocol
protocol WithAttributesSyntax : SyntaxProtocol
protocol WithCodeBlockSyntax : SyntaxProtocol
protocol WithGenericParametersSyntax : SyntaxProtocol
Syntax nodes that have generic parameters.
protocol WithModifiersSyntax : SyntaxProtocol
protocol WithOptionalCodeBlockSyntax : SyntaxProtocol
protocol WithStatementsSyntax : SyntaxProtocol
protocol WithTrailingCommaSyntax : SyntaxProtocol
func with<T>(_ keyPath: WritableKeyPath<any FreestandingMacroExpansionSyntax, T>, _ newChild: T) -> any FreestandingMacroExpansionSyntax
Without this function, the with
function defined on SyntaxProtocol
does not work on existentials of this protocol type.
var argumentList: LabeledExprListSyntax { get set }
var genericArguments: GenericArgumentClauseSyntax? { get set }
var macro: TokenSyntax { get set }
var poundToken: TokenSyntax { get set }