SyntaxChildrenIndex
An index in a syntax children collection.
struct SyntaxChildrenIndex
An index in a syntax children collection.
struct SyntaxChildrenIndex
import SwiftSyntax
A library for working with Swift code.
struct SyntaxChildren
Collection that contains the present child Syntax
nodes of the given node.
struct AccessorDeclListSyntax
struct ArrayElementListSyntax
struct ArrayElementSyntax
An element inside an array literal.
struct AttributeListSyntax
A list of attributes that can be attached to a declaration.
struct AttributeSyntax
An @
attribute.
struct AvailabilityArgumentListSyntax
struct AvailabilityArgumentSyntax
A single argument to an @available
argument like *
, iOS 10.1
, or message: "This has been deprecated"
.
struct CatchClauseListSyntax
struct CatchClauseSyntax
struct CatchItemListSyntax
struct CatchItemSyntax
struct ClosureCaptureListSyntax
struct ClosureCaptureSyntax
struct ClosureParameterListSyntax
struct ClosureParameterSyntax
struct ClosureShorthandParameterListSyntax
A list of closure parameters that are not parenthesized and don’t have type annotations.
struct ClosureShorthandParameterSyntax
struct CodeBlockItemListSyntax
struct CodeBlockItemSyntax
A CodeBlockItem is any Syntax node that appears on its own line inside a CodeBlock.
struct CompositionTypeElementListSyntax
struct CompositionTypeElementSyntax
struct ConditionElementListSyntax
struct ConditionElementSyntax
struct DeclModifierListSyntax
struct DeclModifierSyntax
struct DeclNameArgumentListSyntax
struct DeclNameArgumentSyntax
struct DesignatedTypeListSyntax
struct DesignatedTypeSyntax
struct DictionaryElementListSyntax
struct DictionaryElementSyntax
An element inside a dictionary literal.
struct DifferentiabilityArgumentListSyntax
struct DifferentiabilityArgumentSyntax
A differentiability argument: either the “self” identifier, a function parameter name, or a function parameter index.
struct DocumentationAttributeArgumentListSyntax
The arguments of the ‘@_documentation’ attribute
struct DocumentationAttributeArgumentSyntax
struct EffectsAttributeArgumentListSyntax
The arguments of the ‘@_effects’ attribute. These will be parsed during the SIL stage.
struct EnumCaseElementListSyntax
A collection of 0 or more EnumCaseElementSyntax
s.
struct EnumCaseElementSyntax
An element of an enum case, containing the name of the case and, optionally, either associated values or an assignment to a raw value.
struct EnumCaseParameterListSyntax
struct EnumCaseParameterSyntax
struct ExprListSyntax
A list of expressions connected by operators. This list is contained by a SequenceExprSyntax
.
struct FunctionParameterListSyntax
A list of function parameters that are type annotated and a label. The function parameters are represented by FunctionParameterListSyntax
.
struct FunctionParameterSyntax
A function parameter
struct GenericArgumentListSyntax
struct GenericArgumentSyntax
struct GenericParameterListSyntax
struct GenericParameterSyntax
struct GenericRequirementListSyntax
struct GenericRequirementSyntax
struct IfConfigClauseListSyntax
struct IfConfigClauseSyntax
struct ImportPathComponentListSyntax
struct ImportPathComponentSyntax
struct InheritedTypeListSyntax
struct InheritedTypeSyntax
struct KeyPathComponentListSyntax
The components of a key path
struct KeyPathComponentSyntax
A single key path component
struct LabeledExprListSyntax
struct LabeledExprSyntax
An expression that is prefixed by a label.
struct MemberBlockItemListSyntax
struct MemberBlockItemSyntax
A member declaration of a type consisting of a declaration and an optional semicolon;
struct MultipleTrailingClosureElementListSyntax
struct MultipleTrailingClosureElementSyntax
struct ObjCSelectorPieceListSyntax
struct ObjCSelectorPieceSyntax
A piece of an Objective-C selector. Either consisting of just an identifier for a nullary selector, an identifier and a colon for a labeled argument or just a colon for an unlabeled argument
struct PatternBindingListSyntax
struct PatternBindingSyntax
Defines variables inside a variable declaration.
struct PlatformVersionItemListSyntax
struct PlatformVersionItemSyntax
A single platform/version pair in an attribute, e.g. iOS 10.1
.
struct PrecedenceGroupAttributeListSyntax
struct PrecedenceGroupRelationSyntax
Specify the new precedence group’s relation to existing precedence groups.
struct PrecedenceGroupAssignmentSyntax
Specifies the precedence of an operator when used in an operation that includes optional chaining.
struct PrecedenceGroupAssociativitySyntax
Specifies how a sequence of operators with the same precedence level are grouped together in the absence of grouping parentheses.
struct PrecedenceGroupNameListSyntax
struct PrecedenceGroupNameSyntax
struct PrimaryAssociatedTypeListSyntax
struct PrimaryAssociatedTypeSyntax
struct SimpleStringLiteralSegmentListSyntax
String literal segments that only can contain non string interpolated or extended escaped strings
struct StringSegmentSyntax
A literal segment inside a string segment.
struct SpecializeAttributeArgumentListSyntax
A collection of arguments for the @_specialize
attribute
struct LabeledSpecializeArgumentSyntax
A labeled argument for the @_specialize
attribute like exported: true
struct SpecializeAvailabilityArgumentSyntax
The availability argument for the _specialize attribute
struct SpecializeTargetFunctionArgumentSyntax
A labeled argument for the @_specialize
attribute with a function decl value like target: myFunc(_:)
struct GenericWhereClauseSyntax
A where
clause that places additional constraints on generic parameters like where Element: Hashable
.
struct StringLiteralSegmentListSyntax
struct ExpressionSegmentSyntax
An interpolated expression inside a string literal.
struct SwitchCaseItemListSyntax
struct SwitchCaseItemSyntax
struct SwitchCaseListSyntax
struct SwitchCaseSyntax
struct TuplePatternElementListSyntax
A list of TuplePatternElementSyntax
.
struct TuplePatternElementSyntax
An element that represents a single tuple value in TuplePatternElementListSyntax
.
struct TupleTypeElementListSyntax
struct TupleTypeElementSyntax
struct TypeSpecifierListSyntax
struct SimpleTypeSpecifierSyntax
A specifier that can be attached to a type to eg. mark a parameter as inout
or consuming
struct UnexpectedNodesSyntax
A collection of syntax nodes that occurred in the source code but could not be used to form a valid syntax tree.
struct VersionComponentListSyntax
struct VersionComponentSyntax
An element to represent a single component in a version, like .1
.
struct YieldedExpressionListSyntax
struct YieldedExpressionSyntax
protocol Comparable : Equatable
A type that can be compared using the relational operators <
, <=
, >=
, and >
.
protocol Equatable
A type that can be compared for value equality.
protocol ExpressibleByNilLiteral : ~Copyable
A type that can be initialized using the nil literal, nil
.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
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.
init(nilLiteral: ())
Construct the endIndex
of a SyntaxChildren
collection.
static func < (lhs: SyntaxChildrenIndex, rhs: SyntaxChildrenIndex) -> Bool
Returns true
if lhs
occurs before rhs
.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
static func ... (minimum: Self) -> PartialRangeFrom<Self>
Returns a partial range extending upward from a lower bound.
static func ... (maximum: Self) -> PartialRangeThrough<Self>
Returns a partial range up to, and including, its upper bound.
static func ... (minimum: Self, maximum: Self) -> ClosedRange<Self>
Returns a closed range that contains both of its bounds.
static func ..< (maximum: Self) -> PartialRangeUpTo<Self>
Returns a partial range up to, but not including, its upper bound.
static func ..< (minimum: Self, maximum: Self) -> Range<Self>
Returns a half-open range that contains its lower bound but not its upper bound.
static func <= (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument.
static func > (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument.
static func >= (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument.