SwiftNodeSyntax
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SwiftNodeSyntax.type
Members list
Type members
Classlikes
No documentation available.
Documentation
No documentation available.
Children
leftBrace
:{
accessors
: (AccessorDeclListSyntax
|CodeBlockItemListSyntax
)rightBrace
:}
Contained in
PatternBindingSyntax
.PatternBindingSyntax/accessorBlock
SubscriptDeclSyntax
.SubscriptDeclSyntax/accessorBlock
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
AccessorDeclSyntax
*
Contained in
AccessorBlockSyntax
.AccessorBlockSyntax/accessors
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
attributes
:AttributeListSyntax
modifier
:DeclModifierSyntax
?accessorSpecifier
: (get
|set
|didSet
|willSet
|unsafeAddress
|addressWithOwner
|addressWithNativeOwner
|unsafeMutableAddress
|mutableAddressWithOwner
|mutableAddressWithNativeOwner
|_read
|_modify
|init
)parameters
:AccessorParametersSyntax
?effectSpecifiers
:AccessorEffectSpecifiersSyntax
?body
:CodeBlockSyntax
?
Contained in
AccessorDeclListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithAttributestrait WithOptionalCodeBlocktrait DeclSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
asyncSpecifier
:async
?throwsClause
:ThrowsClauseSyntax
?
Contained in
AccessorDeclSyntax
.AccessorDeclSyntax/effectSpecifiers
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait EffectSpecifierstrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
leftParen
:(
name
:<identifier>
rightParen
:)
Contained in
AccessorDeclSyntax
.AccessorDeclSyntax/parameters
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Parenthesizedtrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
attributes
:AttributeListSyntax
modifiers
:DeclModifierListSyntax
actorKeyword
:actor
name
:<identifier>
genericParameterClause
:GenericParameterClauseSyntax
?inheritanceClause
:InheritanceClauseSyntax
?genericWhereClause
:GenericWhereClauseSyntax
?memberBlock
:MemberBlockSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithModifierstrait WithGenericParameterstrait WithAttributestrait NamedDecltrait DeclGrouptrait DeclSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
ArrayElementSyntax
*
Contained in
ArrayExprSyntax
.ArrayExprSyntax/elements
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
An element inside an array literal.
Documentation
An element inside an array literal.
Children
expression
:ExprSyntax
trailingComma
:,
?
Contained in
ArrayElementListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithTrailingCommatrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
An array literal.
Documentation
An array literal.
Children
leftSquare
:[
elements
:ArrayElementListSyntax
rightSquare
:]
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
leftSquare
:[
element
:TypeSyntax
rightSquare
:]
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
The arrow when a type is used at a position that syntactically expectes an expression.
Documentation
The arrow when a type is used at a position that syntactically expectes an expression.
Examples
This represents the arrow in
let array = [(Int) -> Int]()
Children
effectSpecifiers
:TypeEffectSpecifiersSyntax
?arrow
:->
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
The cast of an expressison to a different type.
Documentation
The cast of an expressison to a different type.
Examples
dog as Animal
myPet as? Dog
- Note: This node is only generated after operators are folded using the
SwiftOperators
library. Beforehand, the parser does not know the precedences of operators and thus representsis
by anUnresolvedAsExprSyntax
.
Children
expression
:ExprSyntax
asKeyword
:as
questionOrExclamationMark
: (?
|!
)?type
:TypeSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
An associatedtype
declaration
Documentation
An associatedtype
declaration
An example of an associatedtype declaration is
associatedtype Item
An associated type declaration may contain a type initializer clause which represents a default type assignment for the associated type.
associatedtype Item = Int
An associated type declaration may be declared with an inheritance clause which specifies the required conformances.
associatedtype Iterator: IteratorProtocol
A generic where clause may be present, here is an example which shows an associated type containing an inheritance clauses and a generic where clause.
associatedtype Iterator: IteratorProtocol where Iterator.Element == Item
Children
attributes
:AttributeListSyntax
modifiers
:DeclModifierListSyntax
associatedtypeKeyword
:associatedtype
name
:<identifier>
inheritanceClause
:InheritanceClauseSyntax
?initializer
:TypeInitializerClauseSyntax
?genericWhereClause
:GenericWhereClauseSyntax
?
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithModifierstrait WithAttributestrait NamedDecltrait DeclSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A list of attributes that can be attached to a declaration.
Documentation
A list of attributes that can be attached to a declaration.
An element in this collection can either be an attribute itself or an IfConfigDeclSyntax
that contains attributes. This is because attributes can be added conditional on compilcation conditions, for example.
#if !DISABLE_DEPRECATIONS
@available(*, deprecated)
#endif
func myFunction() {}
Children
(AttributeSyntax
| IfConfigDeclSyntax
) *
Contained in
AccessorDeclSyntax
.AccessorDeclSyntax/attributes
ActorDeclSyntax
.ActorDeclSyntax/attributes
AssociatedTypeDeclSyntax
.AssociatedTypeDeclSyntax/attributes
AttributedTypeSyntax
.AttributedTypeSyntax/attributes
ClassDeclSyntax
.ClassDeclSyntax/attributes
ClosureParameterSyntax
.ClosureParameterSyntax/attributes
ClosureSignatureSyntax
.ClosureSignatureSyntax/attributes
DeinitializerDeclSyntax
.DeinitializerDeclSyntax/attributes
EditorPlaceholderDeclSyntax
.EditorPlaceholderDeclSyntax/attributes
EnumCaseDeclSyntax
.EnumCaseDeclSyntax/attributes
EnumDeclSyntax
.EnumDeclSyntax/attributes
ExtensionDeclSyntax
.ExtensionDeclSyntax/attributes
FunctionDeclSyntax
.FunctionDeclSyntax/attributes
FunctionParameterSyntax
.FunctionParameterSyntax/attributes
GenericParameterSyntax
.GenericParameterSyntax/attributes
IfConfigClauseSyntax
.IfConfigClauseSyntax/elements
ImportDeclSyntax
.ImportDeclSyntax/attributes
InitializerDeclSyntax
.InitializerDeclSyntax/attributes
MacroDeclSyntax
.MacroDeclSyntax/attributes
MacroExpansionDeclSyntax
.MacroExpansionDeclSyntax/attributes
MissingDeclSyntax
.MissingDeclSyntax/attributes
PrecedenceGroupDeclSyntax
.PrecedenceGroupDeclSyntax/attributes
ProtocolDeclSyntax
.ProtocolDeclSyntax/attributes
StructDeclSyntax
.StructDeclSyntax/attributes
SubscriptDeclSyntax
.SubscriptDeclSyntax/attributes
TypeAliasDeclSyntax
.TypeAliasDeclSyntax/attributes
VariableDeclSyntax
.VariableDeclSyntax/attributes
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
An @
attribute.
Documentation
An @
attribute.
Children
atSign
:@
attributeName
:TypeSyntax
leftParen
:(
?arguments
: (LabeledExprListSyntax
|TokenSyntax
|StringLiteralExprSyntax
|AvailabilityArgumentListSyntax
|SpecializeAttributeArgumentListSyntax
|ObjCSelectorPieceListSyntax
|ImplementsAttributeArgumentsSyntax
|DifferentiableAttributeArgumentsSyntax
|DerivativeAttributeArgumentsSyntax
|BackDeployedAttributeArgumentsSyntax
|ConventionAttributeArgumentsSyntax
|ConventionWitnessMethodAttributeArgumentsSyntax
|OpaqueReturnTypeOfAttributeArgumentsSyntax
|ExposeAttributeArgumentsSyntax
|OriginallyDefinedInAttributeArgumentsSyntax
|UnderscorePrivateAttributeArgumentsSyntax
|DynamicReplacementAttributeArgumentsSyntax
|UnavailableFromAsyncAttributeArgumentsSyntax
|EffectsAttributeArgumentListSyntax
|DocumentationAttributeArgumentListSyntax
)?rightParen
:)
?
Contained in
AttributeListSyntax
SwitchCaseSyntax
.SwitchCaseSyntax/attribute
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
specifiers
:TypeSpecifierListSyntax
attributes
:AttributeListSyntax
baseType
:TypeSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithAttributestrait TypeSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
AvailabilityArgumentSyntax
*
Contained in
AttributeSyntax
.AttributeSyntax/arguments
AvailabilityConditionSyntax
.AvailabilityConditionSyntax/availabilityArguments
SpecializeAvailabilityArgumentSyntax
.SpecializeAvailabilityArgumentSyntax/availabilityArguments
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A single argument to an @available
argument like *
, iOS 10.1
, or message: "This has been deprecated"
.
Documentation
A single argument to an @available
argument like *
, iOS 10.1
, or message: "This has been deprecated"
.
Children
argument
: ((<binaryOperator>
|<identifier>
) |PlatformVersionSyntax
|AvailabilityLabeledArgumentSyntax
)trailingComma
:,
?
Contained in
AvailabilityArgumentListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithTrailingCommatrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
availabilityKeyword
: (#available
|#unavailable
)leftParen
:(
availabilityArguments
:AvailabilityArgumentListSyntax
rightParen
:)
Contained in
ConditionElementSyntax
.ConditionElementSyntax/condition
Attributes
- Supertypes
An argument to an @available
attribute that consists of a label and a value, e.g. message: "This has been deprecated"
.
Documentation
An argument to an @available
attribute that consists of a label and a value, e.g. message: "This has been deprecated"
.
Children
label
: (message
|renamed
|introduced
|obsoleted
|deprecated
)colon
::
value
: (SimpleStringLiteralExprSyntax
|VersionTupleSyntax
)
Contained in
AvailabilityArgumentSyntax
.AvailabilityArgumentSyntax/argument
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
awaitKeyword
:await
expression
:ExprSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A collection of arguments for the @backDeployed
attribute
Documentation
A collection of arguments for the @backDeployed
attribute
Children
beforeLabel
:before
colon
::
platforms
:PlatformVersionItemListSyntax
Contained in
AttributeSyntax
.AttributeSyntax/arguments
Attributes
- Supertypes
An operator like +
or -
.
Documentation
An operator like +
or -
.
This node represents the binary operator itself. It can occur inside a SequenceExprSyntax
after parsing and will be the operator
child of an InfixOperatorExprSyntax
after folding operator using the SwiftOperators
library.
Children
operator
:<binaryOperator>
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
borrowKeyword
:_borrow
expression
:ExprSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class AccessorBlockSyntaxclass ClosureExprSyntaxclass CodeBlockSyntaxclass MemberBlockSyntaxclass SwitchExprSyntaxShow all
No documentation available.
Documentation
No documentation available.
Children
breakKeyword
:break
label
:<identifier>
?
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait StmtSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
canImportKeyword
:canImport
leftParen
:(
importPath
:<identifier>
versionInfo
:CanImportVersionInfoSyntax
?rightParen
:)
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
comma
:,
label
: (_version
|_underlyingVersion
)colon
::
version
:VersionTupleSyntax
Contained in
CanImportExprSyntax
.CanImportExprSyntax/versionInfo
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
CatchClauseSyntax
*
Contained in
DoStmtSyntax
.DoStmtSyntax/catchClauses
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
catchKeyword
:catch
catchItems
:CatchItemListSyntax
body
:CodeBlockSyntax
Contained in
CatchClauseListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithCodeBlocktrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
CatchItemSyntax
*
Contained in
CatchClauseSyntax
.CatchClauseSyntax/catchItems
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
pattern
:PatternSyntax
?whereClause
:WhereClauseSyntax
?trailingComma
:,
?
Contained in
CatchItemListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithTrailingCommatrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A class
declaration
Documentation
A class
declaration
An example of a class declaration is
class SomeClass {
let someMember: String
init(someMember: String) {
self.someMember = someMember
}
func foo() {
print(someMember)
}
static func bar() -> Int {
return 1
}
}
A class declaration may be declared without any members.
Children
attributes
:AttributeListSyntax
modifiers
:DeclModifierListSyntax
classKeyword
:class
name
:<identifier>
genericParameterClause
:GenericParameterClauseSyntax
?inheritanceClause
:InheritanceClauseSyntax
?genericWhereClause
:GenericWhereClauseSyntax
?memberBlock
:MemberBlockSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithModifierstrait WithGenericParameterstrait WithAttributestrait NamedDecltrait DeclGrouptrait DeclSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
leftSquare
:[
items
:ClosureCaptureListSyntax
rightSquare
:]
Contained in
ClosureSignatureSyntax
.ClosureSignatureSyntax/capture
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
ClosureCaptureSyntax
*
Contained in
ClosureCaptureClauseSyntax
.ClosureCaptureClauseSyntax/items
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
specifier
: (weak
|unowned
)leftParen
:(
?detail
: (safe
|unsafe
)?rightParen
:)
?
Contained in
ClosureCaptureSyntax
.ClosureCaptureSyntax/specifier
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
specifier
:ClosureCaptureSpecifierSyntax
?name
:<identifier>
?equal
:=
?expression
:ExprSyntax
trailingComma
:,
?
Contained in
ClosureCaptureListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithTrailingCommatrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
leftBrace
:{
signature
:ClosureSignatureSyntax
?statements
:CodeBlockItemListSyntax
rightBrace
:}
Contained in
FunctionCallExprSyntax
.FunctionCallExprSyntax/trailingClosure
MacroExpansionDeclSyntax
.MacroExpansionDeclSyntax/trailingClosure
MacroExpansionExprSyntax
.MacroExpansionExprSyntax/trailingClosure
MultipleTrailingClosureElementSyntax
.MultipleTrailingClosureElementSyntax/closure
SubscriptCallExprSyntax
.SubscriptCallExprSyntax/trailingClosure
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithStatementstrait Bracedtrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
leftParen
:(
parameters
:ClosureParameterListSyntax
rightParen
:)
Contained in
ClosureSignatureSyntax
.ClosureSignatureSyntax/parameterClause
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Parenthesizedtrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
ClosureParameterSyntax
*
Contained in
ClosureParameterClauseSyntax
.ClosureParameterClauseSyntax/parameters
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
attributes
:AttributeListSyntax
modifiers
:DeclModifierListSyntax
firstName
: (<identifier>
|_
)secondName
: (<identifier>
|_
)?colon
::
?type
:TypeSyntax
?ellipsis
:...
?trailingComma
:,
?
Contained in
ClosureParameterListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithModifierstrait WithAttributestrait WithTrailingCommatrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A list of closure parameters that are not parenthesized and don't have type annotations.
Documentation
A list of closure parameters that are not parenthesized and don't have type annotations.
If the closure parameters are parenthesized, they can also carry type annotations. In that case, the closure parameters are represented by ClosureParameterListSyntax
.
Examples
}}} let closure = { a, b in return a + b } }}}
Children
ClosureShorthandParameterSyntax
*
Contained in
ClosureSignatureSyntax
.ClosureSignatureSyntax/parameterClause
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
name
: (<identifier>
|_
)trailingComma
:,
?
Contained in
ClosureShorthandParameterListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithTrailingCommatrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
attributes
:AttributeListSyntax
capture
:ClosureCaptureClauseSyntax
?parameterClause
: (ClosureShorthandParameterListSyntax
|ClosureParameterClauseSyntax
)?effectSpecifiers
:TypeEffectSpecifiersSyntax
?returnClause
:ReturnClauseSyntax
?inKeyword
:in
Contained in
ClosureExprSyntax
.ClosureExprSyntax/signature
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithAttributestrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
CodeBlockItemSyntax
*
Contained in
AccessorBlockSyntax
.AccessorBlockSyntax/accessors
ClosureExprSyntax
.ClosureExprSyntax/statements
CodeBlockSyntax
.CodeBlockSyntax/statements
IfConfigClauseSyntax
.IfConfigClauseSyntax/elements
SourceFileSyntax
.SourceFileSyntax/statements
SwitchCaseSyntax
.SwitchCaseSyntax/statements
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A CodeBlockItem is any Syntax node that appears on its own line inside a CodeBlock.
Documentation
A CodeBlockItem is any Syntax node that appears on its own line inside a CodeBlock.
Children
item
: (DeclSyntax
|StmtSyntax
|ExprSyntax
)semicolon
:;
?
Contained in
CodeBlockItemListSyntax
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
leftBrace
:{
statements
:CodeBlockItemListSyntax
rightBrace
:}
Contained in
AccessorDeclSyntax
.AccessorDeclSyntax/body
CatchClauseSyntax
.CatchClauseSyntax/body
DeferStmtSyntax
.DeferStmtSyntax/body
DeinitializerDeclSyntax
.DeinitializerDeclSyntax/body
DoStmtSyntax
.DoStmtSyntax/body
ForStmtSyntax
.ForStmtSyntax/body
FunctionDeclSyntax
.FunctionDeclSyntax/body
GuardStmtSyntax
.GuardStmtSyntax/body
IfExprSyntax
.IfExprSyntax/body
IfExprSyntax
.IfExprSyntax/elseBody
InitializerDeclSyntax
.InitializerDeclSyntax/body
RepeatStmtSyntax
.RepeatStmtSyntax/body
WhileStmtSyntax
.WhileStmtSyntax/body
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithStatementstrait Bracedtrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
CompositionTypeElementSyntax
*
Contained in
CompositionTypeSyntax
.CompositionTypeSyntax/elements
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
type
:TypeSyntax
ampersand
:TokenSyntax
?
Contained in
CompositionTypeElementListSyntax
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
elements
:CompositionTypeElementListSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
ConditionElementSyntax
*
Contained in
GuardStmtSyntax
.GuardStmtSyntax/conditions
IfExprSyntax
.IfExprSyntax/conditions
WhileStmtSyntax
.WhileStmtSyntax/conditions
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
condition
: (ExprSyntax
|AvailabilityConditionSyntax
|MatchingPatternConditionSyntax
|OptionalBindingConditionSyntax
)trailingComma
:,
?
Contained in
ConditionElementListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithTrailingCommatrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
leftType
:TypeSyntax
colon
::
rightType
:TypeSyntax
Contained in
GenericRequirementSyntax
.GenericRequirementSyntax/requirement
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
consumeKeyword
: (_move
|consume
)expression
:ExprSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
continueKeyword
:continue
label
:<identifier>
?
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait StmtSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
The arguments for the '@convention(...)'.
Documentation
The arguments for the '@convention(...)'.
Children
conventionLabel
:<identifier>
comma
:,
?cTypeLabel
:cType
?colon
::
?cTypeString
:StringLiteralExprSyntax
?
Contained in
AttributeSyntax
.AttributeSyntax/arguments
Attributes
- Supertypes
The arguments for the '@convention(witness_method: ...)'.
Documentation
The arguments for the '@convention(witness_method: ...)'.
Children
witnessMethodLabel
:witness_method
colon
::
protocolName
:<identifier>
Contained in
AttributeSyntax
.AttributeSyntax/arguments
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
copyKeyword
:copy
expression
:ExprSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class ActorDeclSyntaxclass ClassDeclSyntaxclass EnumDeclSyntaxclass ExtensionDeclSyntaxclass ProtocolDeclSyntaxclass StructDeclSyntaxShow all
No documentation available.
Documentation
No documentation available.
Children
leftParen
:(
detail
:<identifier>
rightParen
:)
Contained in
DeclModifierSyntax
.DeclModifierSyntax/detail
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Parenthesizedtrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
DeclModifierSyntax
*
Contained in
ActorDeclSyntax
.ActorDeclSyntax/modifiers
AssociatedTypeDeclSyntax
.AssociatedTypeDeclSyntax/modifiers
ClassDeclSyntax
.ClassDeclSyntax/modifiers
ClosureParameterSyntax
.ClosureParameterSyntax/modifiers
DeinitializerDeclSyntax
.DeinitializerDeclSyntax/modifiers
EditorPlaceholderDeclSyntax
.EditorPlaceholderDeclSyntax/modifiers
EnumCaseDeclSyntax
.EnumCaseDeclSyntax/modifiers
EnumCaseParameterSyntax
.EnumCaseParameterSyntax/modifiers
EnumDeclSyntax
.EnumDeclSyntax/modifiers
ExtensionDeclSyntax
.ExtensionDeclSyntax/modifiers
FunctionDeclSyntax
.FunctionDeclSyntax/modifiers
FunctionParameterSyntax
.FunctionParameterSyntax/modifiers
ImportDeclSyntax
.ImportDeclSyntax/modifiers
InitializerDeclSyntax
.InitializerDeclSyntax/modifiers
MacroDeclSyntax
.MacroDeclSyntax/modifiers
MacroExpansionDeclSyntax
.MacroExpansionDeclSyntax/modifiers
MissingDeclSyntax
.MissingDeclSyntax/modifiers
PrecedenceGroupDeclSyntax
.PrecedenceGroupDeclSyntax/modifiers
ProtocolDeclSyntax
.ProtocolDeclSyntax/modifiers
StructDeclSyntax
.StructDeclSyntax/modifiers
SubscriptDeclSyntax
.SubscriptDeclSyntax/modifiers
TypeAliasDeclSyntax
.TypeAliasDeclSyntax/modifiers
VariableDeclSyntax
.VariableDeclSyntax/modifiers
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
name
: (__consuming
|__setter_access
|_const
|_local
|actor
|async
|borrowing
|class
|consuming
|convenience
|distributed
|dynamic
|fileprivate
|final
|indirect
|infix
|internal
|isolated
|lazy
|mutating
|nonisolated
|nonmutating
|open
|optional
|override
|package
|postfix
|prefix
|private
|public
|reasync
|_resultDependsOnSelf
|required
|static
|transferring
|unowned
|weak
)detail
:DeclModifierDetailSyntax
?
Contained in
AccessorDeclSyntax
.AccessorDeclSyntax/modifier
DeclModifierListSyntax
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
DeclNameArgumentSyntax
*
Contained in
DeclNameArgumentsSyntax
.DeclNameArgumentsSyntax/arguments
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
name
:TokenSyntax
colon
::
Contained in
DeclNameArgumentListSyntax
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
leftParen
:(
arguments
:DeclNameArgumentListSyntax
rightParen
:)
Contained in
DeclReferenceExprSyntax
.DeclReferenceExprSyntax/argumentNames
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Parenthesizedtrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
baseName
: (<identifier>
|self
|Self
|init
|deinit
|subscript
|<dollarIdentifier>
|<binaryOperator>
|<integerLiteral>
)argumentNames
:DeclNameArgumentsSyntax
?
Contained in
DynamicReplacementAttributeArgumentsSyntax
.DynamicReplacementAttributeArgumentsSyntax/declName
ImplementsAttributeArgumentsSyntax
.ImplementsAttributeArgumentsSyntax/declName
KeyPathPropertyComponentSyntax
.KeyPathPropertyComponentSyntax/declName
MemberAccessExprSyntax
.MemberAccessExprSyntax/declName
SpecializeTargetFunctionArgumentSyntax
.SpecializeTargetFunctionArgumentSyntax/declName
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
- Known subtypes
-
class AccessorDeclSyntaxclass ActorDeclSyntaxclass AssociatedTypeDeclSyntaxclass ClassDeclSyntaxclass DeinitializerDeclSyntaxclass EnumCaseDeclSyntaxclass EnumDeclSyntaxclass ExtensionDeclSyntaxclass FunctionDeclSyntaxclass IfConfigDeclSyntaxclass ImportDeclSyntaxclass InitializerDeclSyntaxclass MacroDeclSyntaxclass MacroExpansionDeclSyntaxclass MissingDeclSyntaxclass OperatorDeclSyntaxclass ProtocolDeclSyntaxclass StructDeclSyntaxclass SubscriptDeclSyntaxclass TypeAliasDeclSyntaxclass VariableDeclSyntaxShow all
No documentation available.
Documentation
No documentation available.
Children
deferKeyword
:defer
body
:CodeBlockSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithCodeBlocktrait StmtSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A deint
declaration
Documentation
A deint
declaration
An example of a deinitializer is
deinit {
}
Children
attributes
:AttributeListSyntax
modifiers
:DeclModifierListSyntax
deinitKeyword
:deinit
effectSpecifiers
:DeinitializerEffectSpecifiersSyntax
?body
:CodeBlockSyntax
?
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithOptionalCodeBlocktrait WithModifierstrait WithAttributestrait DeclSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
asyncSpecifier
:async
?
Contained in
DeinitializerDeclSyntax
.DeinitializerDeclSyntax/effectSpecifiers
Attributes
- Supertypes
The arguments for the '@derivative(of:)' and '@transpose(of:)' attributes: the 'of:' label, the original declaration name, and an optional differentiability parameter list.
Documentation
The arguments for the '@derivative(of:)' and '@transpose(of:)' attributes: the 'of:' label, the original declaration name, and an optional differentiability parameter list.
Children
ofLabel
:of
colon
::
originalDeclName
:ExprSyntax
period
:.
?accessorSpecifier
: (get
|set
)?comma
:,
?arguments
:DifferentiabilityWithRespectToArgumentSyntax
?
Contained in
AttributeSyntax
.AttributeSyntax/arguments
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
DesignatedTypeSyntax
*
Contained in
OperatorPrecedenceAndTypesSyntax
.OperatorPrecedenceAndTypesSyntax/designatedTypes
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
leadingComma
:,
name
:TokenSyntax
Contained in
DesignatedTypeListSyntax
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
DictionaryElementSyntax
*
Contained in
DictionaryExprSyntax
.DictionaryExprSyntax/content
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
An element inside a dictionary literal.
Documentation
An element inside a dictionary literal.
Children
key
:ExprSyntax
colon
::
value
:ExprSyntax
trailingComma
:,
?
Contained in
DictionaryElementListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithTrailingCommatrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A dictionary literal
Documentation
A dictionary literal
Children
leftSquare
:[
content
: (:
|DictionaryElementListSyntax
)rightSquare
:]
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
leftSquare
:[
key
:TypeSyntax
colon
::
value
:TypeSyntax
rightSquare
:]
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
DifferentiabilityArgumentSyntax
*
Contained in
DifferentiabilityArgumentsSyntax
.DifferentiabilityArgumentsSyntax/arguments
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A differentiability argument: either the "self" identifier, a function parameter name, or a function parameter index.
Documentation
A differentiability argument: either the "self" identifier, a function parameter name, or a function parameter index.
Children
argument
: (<identifier>
|<integerLiteral>
|self
)trailingComma
:,
?
Contained in
DifferentiabilityArgumentListSyntax
DifferentiabilityWithRespectToArgumentSyntax
.DifferentiabilityWithRespectToArgumentSyntax/arguments
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithTrailingCommatrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
The differentiability arguments.
Documentation
The differentiability arguments.
Children
leftParen
:(
arguments
:DifferentiabilityArgumentListSyntax
rightParen
:)
Contained in
DifferentiabilityWithRespectToArgumentSyntax
.DifferentiabilityWithRespectToArgumentSyntax/arguments
Attributes
- Supertypes
A clause containing differentiability parameters.
Documentation
A clause containing differentiability parameters.
Children
wrtLabel
:wrt
colon
::
arguments
: (DifferentiabilityArgumentSyntax
|DifferentiabilityArgumentsSyntax
)
Contained in
DerivativeAttributeArgumentsSyntax
.DerivativeAttributeArgumentsSyntax/arguments
DifferentiableAttributeArgumentsSyntax
.DifferentiableAttributeArgumentsSyntax/arguments
Attributes
- Supertypes
The arguments for the @differentiable
attribute: an optional differentiability kind, an optional differentiability parameter clause, and an optional 'where' clause.
Documentation
The arguments for the @differentiable
attribute: an optional differentiability kind, an optional differentiability parameter clause, and an optional 'where' clause.
Children
kindSpecifier
: (_forward
|reverse
|_linear
)?kindSpecifierComma
:,
?arguments
:DifferentiabilityWithRespectToArgumentSyntax
?argumentsComma
:,
?genericWhereClause
:GenericWhereClauseSyntax
?
Contained in
AttributeSyntax
.AttributeSyntax/arguments
Attributes
- Supertypes
A _
that discards a value inside an assignment.
Documentation
A _
that discards a value inside an assignment.
Examples
_ = 42
if case .foo(_) = myValue
Children
wildcard
:_
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
discardKeyword
:discard
expression
:ExprSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait StmtSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A do
block with one of more optional catch
clauses.
Documentation
A do
block with one of more optional catch
clauses.
This represents do blocks in both expression and statement postitions (where the latter are wrapped in ExpressionStmtSyntax).
Examples
do {
let x = 0
print(x)
}
let x = do {
try someThrowingFn()
} catch {
defaultValue
}
Children
doKeyword
:do
body
:CodeBlockSyntax
catchClauses
:CatchClauseListSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithCodeBlocktrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
doKeyword
:do
throwsClause
:ThrowsClauseSyntax
?body
:CodeBlockSyntax
catchClauses
:CatchClauseListSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithCodeBlocktrait StmtSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
The arguments of the '@_documentation' attribute
Documentation
The arguments of the '@_documentation' attribute
Children
DocumentationAttributeArgumentSyntax
*
Contained in
AttributeSyntax
.AttributeSyntax/arguments
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
label
: (visibility
|metadata
)colon
::
value
: ((<identifier>
|private
|fileprivate
|internal
|public
|open
) |StringLiteralExprSyntax
)trailingComma
:,
?
Contained in
DocumentationAttributeArgumentListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithTrailingCommatrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
The arguments for the '@_dynamicReplacement' attribute
Documentation
The arguments for the '@_dynamicReplacement' attribute
Children
forLabel
:for
colon
::
declName
:DeclReferenceExprSyntax
Contained in
AttributeSyntax
.AttributeSyntax/arguments
Attributes
- Supertypes
An editor placeholder, e.g. <#declaration#>
that is used in a position that expects a declaration.
Documentation
An editor placeholder, e.g. <#declaration#>
that is used in a position that expects a declaration.
- Warning: This
EditorPlaceholderDeclSyntax
node is not generated by the parser anymore. Placeholders are represented by aMissingDeclSyntax
.
Children
attributes
:AttributeListSyntax
modifiers
:DeclModifierListSyntax
placeholder
:<identifier>
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithModifierstrait WithAttributestrait DeclSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Documentation
- Warning: This
EditorPlaceholderExprSyntax
node is not generated by the parser anymore. Placeholders are represented by aDeclReferenceExprSyntax
.
Children
placeholder
:<identifier>
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
The arguments of the '@_effects' attribute. These will be parsed during the SIL stage.
Documentation
The arguments of the '@_effects' attribute. These will be parsed during the SIL stage.
Children
TokenSyntax
*
Contained in
AttributeSyntax
.AttributeSyntax/arguments
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A case
declaration of a Swift enum
. It can have 1 or more EnumCaseElement
s inside, each declaring a different case of the enum.
Documentation
A case
declaration of a Swift enum
. It can have 1 or more EnumCaseElement
s inside, each declaring a different case of the enum.
Children
attributes
:AttributeListSyntax
modifiers
:DeclModifierListSyntax
caseKeyword
:case
elements
:EnumCaseElementListSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithModifierstrait WithAttributestrait DeclSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A collection of 0 or more EnumCaseElementSyntax
s.
Documentation
A collection of 0 or more EnumCaseElementSyntax
s.
Children
EnumCaseElementSyntax
*
Contained in
EnumCaseDeclSyntax
.EnumCaseDeclSyntax/elements
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
An element of an enum case, containing the name of the case and, optionally, either associated values or an assignment to a raw value.
Documentation
An element of an enum case, containing the name of the case and, optionally, either associated values or an assignment to a raw value.
Children
name
:<identifier>
parameterClause
:EnumCaseParameterClauseSyntax
?rawValue
:InitializerClauseSyntax
?trailingComma
:,
?
Contained in
EnumCaseElementListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithTrailingCommatrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
leftParen
:(
parameters
:EnumCaseParameterListSyntax
rightParen
:)
Contained in
EnumCaseElementSyntax
.EnumCaseElementSyntax/parameterClause
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Parenthesizedtrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
EnumCaseParameterSyntax
*
Contained in
EnumCaseParameterClauseSyntax
.EnumCaseParameterClauseSyntax/parameters
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
modifiers
:DeclModifierListSyntax
firstName
: (<identifier>
|_
)?secondName
: (<identifier>
|_
)?colon
::
?type
:TypeSyntax
defaultValue
:InitializerClauseSyntax
?trailingComma
:,
?
Contained in
EnumCaseParameterListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithModifierstrait WithTrailingCommatrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A Swift enum
declaration.
Documentation
A Swift enum
declaration.
Children
attributes
:AttributeListSyntax
modifiers
:DeclModifierListSyntax
enumKeyword
:enum
name
:<identifier>
genericParameterClause
:GenericParameterClauseSyntax
?inheritanceClause
:InheritanceClauseSyntax
?genericWhereClause
:GenericWhereClauseSyntax
?memberBlock
:MemberBlockSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithModifierstrait WithGenericParameterstrait WithAttributestrait NamedDecltrait DeclGrouptrait DeclSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
The arguments for the '@_expose' attribute
Documentation
The arguments for the '@_expose' attribute
Children
language
:TokenSyntax
comma
:,
?cxxName
:StringLiteralExprSyntax
?
Contained in
AttributeSyntax
.AttributeSyntax/arguments
Attributes
- Supertypes
A list of expressions connected by operators. This list is contained by a SequenceExprSyntax
.
Documentation
A list of expressions connected by operators. This list is contained by a SequenceExprSyntax
.
Children
ExprSyntax
*
Contained in
SequenceExprSyntax
.SequenceExprSyntax/elements
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
- Known subtypes
-
class ArrayExprSyntaxclass ArrowExprSyntaxclass AsExprSyntaxclass AssignmentExprSyntaxclass AwaitExprSyntaxclass BinaryOperatorExprSyntaxclass BooleanLiteralExprSyntaxclass BorrowExprSyntaxclass CanImportExprSyntaxclass ClosureExprSyntaxclass ConsumeExprSyntaxclass CopyExprSyntaxclass DeclReferenceExprSyntaxclass DictionaryExprSyntaxclass DoExprSyntaxclass FloatLiteralExprSyntaxclass ForceUnwrapExprSyntaxclass FunctionCallExprSyntaxclass IfExprSyntaxclass InOutExprSyntaxclass InfixOperatorExprSyntaxclass IntegerLiteralExprSyntaxclass IsExprSyntaxclass KeyPathExprSyntaxclass MacroExpansionExprSyntaxclass MemberAccessExprSyntaxclass MissingExprSyntaxclass NilLiteralExprSyntaxclass PackElementExprSyntaxclass PackExpansionExprSyntaxclass PatternExprSyntaxclass PrefixOperatorExprSyntaxclass RegexLiteralExprSyntaxclass SequenceExprSyntaxclass StringLiteralExprSyntaxclass SubscriptCallExprSyntaxclass SuperExprSyntaxclass SwitchExprSyntaxclass TernaryExprSyntaxclass TryExprSyntaxclass TupleExprSyntaxclass TypeExprSyntaxclass UnresolvedAsExprSyntaxclass UnresolvedIsExprSyntaxShow all
A pattern that contains an ExprSyntaxProtocol
.
Documentation
A pattern that contains an ExprSyntaxProtocol
.
Examples
Patterns can be used in switch cases like the following example:
switch raw.kind {
case .expressionPattern:
return true
default:
return false
}
Children
expression
:ExprSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait PatternSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
An interpolated expression inside a string literal.
Documentation
An interpolated expression inside a string literal.
- SeeAlso:
StringSegmentSyntax
Children
backslash
:\
pounds
:<rawStringPoundDelimiter>
?leftParen
:(
expressions
:LabeledExprListSyntax
rightParen
:)
Contained in
StringLiteralSegmentListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Parenthesizedtrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait StmtSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
attributes
:AttributeListSyntax
modifiers
:DeclModifierListSyntax
extensionKeyword
:extension
extendedType
:TypeSyntax
inheritanceClause
:InheritanceClauseSyntax
?genericWhereClause
:GenericWhereClauseSyntax
?memberBlock
:MemberBlockSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithModifierstrait WithAttributestrait DeclGrouptrait DeclSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
fallthroughKeyword
:fallthrough
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait StmtSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
forKeyword
:for
tryKeyword
:try
?awaitKeyword
:await
?caseKeyword
:case
?pattern
:PatternSyntax
typeAnnotation
:TypeAnnotationSyntax
?inKeyword
:in
sequence
:ExprSyntax
whereClause
:WhereClauseSyntax
?body
:CodeBlockSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithCodeBlocktrait StmtSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
expression
:ExprSyntax
exclamationMark
:!
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class MacroExpansionDeclSyntaxclass MacroExpansionExprSyntax
No documentation available.
Documentation
No documentation available.
Children
calledExpression
:ExprSyntax
leftParen
:(
?arguments
:LabeledExprListSyntax
rightParen
:)
?trailingClosure
:ClosureExprSyntax
?additionalTrailingClosures
:MultipleTrailingClosureElementListSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
attributes
:AttributeListSyntax
modifiers
:DeclModifierListSyntax
funcKeyword
:func
name
: (<identifier>
|<binaryOperator>
|<prefixOperator>
|<postfixOperator>
)genericParameterClause
:GenericParameterClauseSyntax
?signature
:FunctionSignatureSyntax
genericWhereClause
:GenericWhereClauseSyntax
?body
:CodeBlockSyntax
?
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithOptionalCodeBlocktrait WithModifierstrait WithGenericParameterstrait WithAttributestrait NamedDecltrait DeclSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
asyncSpecifier
: (async
|reasync
)?throwsClause
:ThrowsClauseSyntax
?
Contained in
FunctionSignatureSyntax
.FunctionSignatureSyntax/effectSpecifiers
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait EffectSpecifierstrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
leftParen
:(
parameters
:FunctionParameterListSyntax
rightParen
:)
Contained in
FunctionSignatureSyntax
.FunctionSignatureSyntax/parameterClause
SubscriptDeclSyntax
.SubscriptDeclSyntax/parameterClause
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Parenthesizedtrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
FunctionParameterSyntax
*
Contained in
FunctionParameterClauseSyntax
.FunctionParameterClauseSyntax/parameters
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
attributes
:AttributeListSyntax
modifiers
:DeclModifierListSyntax
firstName
: (<identifier>
|_
)secondName
: (<identifier>
|_
)?colon
::
type
:TypeSyntax
ellipsis
:...
?defaultValue
:InitializerClauseSyntax
?trailingComma
:,
?
Contained in
FunctionParameterListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithModifierstrait WithAttributestrait WithTrailingCommatrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
parameterClause
:FunctionParameterClauseSyntax
effectSpecifiers
:FunctionEffectSpecifiersSyntax
?returnClause
:ReturnClauseSyntax
?
Contained in
FunctionDeclSyntax
.FunctionDeclSyntax/signature
InitializerDeclSyntax
.InitializerDeclSyntax/signature
MacroDeclSyntax
.MacroDeclSyntax/signature
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
leftParen
:(
parameters
:TupleTypeElementListSyntax
rightParen
:)
effectSpecifiers
:TypeEffectSpecifiersSyntax
?returnClause
:ReturnClauseSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Parenthesizedtrait TypeSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
leftAngle
:<
arguments
:GenericArgumentListSyntax
rightAngle
:>
Contained in
GenericSpecializationExprSyntax
.GenericSpecializationExprSyntax/genericArgumentClause
IdentifierTypeSyntax
.IdentifierTypeSyntax/genericArgumentClause
KeyPathPropertyComponentSyntax
.KeyPathPropertyComponentSyntax/genericArgumentClause
MacroExpansionDeclSyntax
.MacroExpansionDeclSyntax/genericArgumentClause
MacroExpansionExprSyntax
.MacroExpansionExprSyntax/genericArgumentClause
MemberTypeSyntax
.MemberTypeSyntax/genericArgumentClause
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
GenericArgumentSyntax
*
Contained in
GenericArgumentClauseSyntax
.GenericArgumentClauseSyntax/arguments
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
argument
:TypeSyntax
trailingComma
:,
?
Contained in
GenericArgumentListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithTrailingCommatrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
The parameter clause that defines the generic parameters.
Documentation
The parameter clause that defines the generic parameters.
Children
leftAngle
:<
parameters
:GenericParameterListSyntax
genericWhereClause
:GenericWhereClauseSyntax
?rightAngle
:>
Contained in
ActorDeclSyntax
.ActorDeclSyntax/genericParameterClause
ClassDeclSyntax
.ClassDeclSyntax/genericParameterClause
EnumDeclSyntax
.EnumDeclSyntax/genericParameterClause
FunctionDeclSyntax
.FunctionDeclSyntax/genericParameterClause
InitializerDeclSyntax
.InitializerDeclSyntax/genericParameterClause
MacroDeclSyntax
.MacroDeclSyntax/genericParameterClause
NamedOpaqueReturnTypeSyntax
.NamedOpaqueReturnTypeSyntax/genericParameterClause
StructDeclSyntax
.StructDeclSyntax/genericParameterClause
SubscriptDeclSyntax
.SubscriptDeclSyntax/genericParameterClause
TypeAliasDeclSyntax
.TypeAliasDeclSyntax/genericParameterClause
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
GenericParameterSyntax
*
Contained in
GenericParameterClauseSyntax
.GenericParameterClauseSyntax/parameters
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
attributes
:AttributeListSyntax
eachKeyword
:each
?name
:<identifier>
colon
::
?inheritedType
:TypeSyntax
?trailingComma
:,
?
Contained in
GenericParameterListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithAttributestrait WithTrailingCommatrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
GenericRequirementSyntax
*
Contained in
GenericWhereClauseSyntax
.GenericWhereClauseSyntax/requirements
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
requirement
: (SameTypeRequirementSyntax
|ConformanceRequirementSyntax
|LayoutRequirementSyntax
)trailingComma
:,
?
Contained in
GenericRequirementListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithTrailingCommatrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
expression
:ExprSyntax
genericArgumentClause
:GenericArgumentClauseSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A where
clause that places additional constraints on generic parameters like where Element: Hashable
.
Documentation
A where
clause that places additional constraints on generic parameters like where Element: Hashable
.
Children
whereKeyword
:where
requirements
:GenericRequirementListSyntax
Contained in
ActorDeclSyntax
.ActorDeclSyntax/genericWhereClause
AssociatedTypeDeclSyntax
.AssociatedTypeDeclSyntax/genericWhereClause
ClassDeclSyntax
.ClassDeclSyntax/genericWhereClause
DifferentiableAttributeArgumentsSyntax
.DifferentiableAttributeArgumentsSyntax/genericWhereClause
EnumDeclSyntax
.EnumDeclSyntax/genericWhereClause
ExtensionDeclSyntax
.ExtensionDeclSyntax/genericWhereClause
FunctionDeclSyntax
.FunctionDeclSyntax/genericWhereClause
GenericParameterClauseSyntax
.GenericParameterClauseSyntax/genericWhereClause
InitializerDeclSyntax
.InitializerDeclSyntax/genericWhereClause
MacroDeclSyntax
.MacroDeclSyntax/genericWhereClause
ProtocolDeclSyntax
.ProtocolDeclSyntax/genericWhereClause
SpecializeAttributeArgumentListSyntax
StructDeclSyntax
.StructDeclSyntax/genericWhereClause
SubscriptDeclSyntax
.SubscriptDeclSyntax/genericWhereClause
TypeAliasDeclSyntax
.TypeAliasDeclSyntax/genericWhereClause
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
guardKeyword
:guard
conditions
:ConditionElementListSyntax
elseKeyword
:else
body
:CodeBlockSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithCodeBlocktrait StmtSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A pattern that contains a TokenSyntax
.
Documentation
A pattern that contains a TokenSyntax
.
Examples
IdentifierPatternSyntax
can be used in simplple variable declarations. For example a
in the exmaple:
let a = 1
Children
identifier
: (<identifier>
|self
|init
|deinit
|subscript
)
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait PatternSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
name
: (<identifier>
|Self
|Any
|_
)genericArgumentClause
:GenericArgumentClauseSyntax
?
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
IfConfigClauseSyntax
*
Contained in
IfConfigDeclSyntax
.IfConfigDeclSyntax/clauses
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
poundKeyword
: (#if
|#elseif
|#else
)condition
:ExprSyntax
?elements
: (CodeBlockItemListSyntax
|SwitchCaseListSyntax
|MemberBlockItemListSyntax
|ExprSyntax
|AttributeListSyntax
)?
Contained in
IfConfigClauseListSyntax
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
clauses
:IfConfigClauseListSyntax
poundEndif
:#endif
Contained in
AttributeListSyntax
PostfixIfConfigExprSyntax
.PostfixIfConfigExprSyntax/config
SwitchCaseListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait DeclSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
ifKeyword
:if
conditions
:ConditionElementListSyntax
body
:CodeBlockSyntax
elseKeyword
:else
?elseBody
: (IfExprSyntax
|CodeBlockSyntax
)?
Contained in
IfExprSyntax
.IfExprSyntax/elseBody
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithCodeBlocktrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
The arguments for the @_implements
attribute of the form Type, methodName(arg1Label:arg2Label:)
Documentation
The arguments for the @_implements
attribute of the form Type, methodName(arg1Label:arg2Label:)
Children
type
:TypeSyntax
comma
:,
declName
:DeclReferenceExprSyntax
Contained in
AttributeSyntax
.AttributeSyntax/arguments
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
wrappedType
:TypeSyntax
exclamationMark
:!
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
An import
declaration
Documentation
An import
declaration
An example of an import declaration is
import Foundation
Children
attributes
:AttributeListSyntax
modifiers
:DeclModifierListSyntax
importKeyword
:import
importKindSpecifier
: (typealias
|struct
|class
|enum
|protocol
|var
|let
|func
|inout
)?path
:ImportPathComponentListSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithModifierstrait WithAttributestrait DeclSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
ImportPathComponentSyntax
*
Contained in
ImportDeclSyntax
.ImportDeclSyntax/path
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
name
: (<identifier>
|<binaryOperator>
|<prefixOperator>
|<postfixOperator>
)trailingPeriod
:.
?
Contained in
ImportPathComponentListSyntax
Attributes
- Supertypes
An expression prefixed with &
to pass an argument to an inout
parameter.
Documentation
An expression prefixed with &
to pass an argument to an inout
parameter.
Children
ampersand
:&
expression
:ExprSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
An infix operator call like 1 + 2
.
Documentation
An infix operator call like 1 + 2
.
- Note: This node is only generated after operators are folded using the
SwiftOperators
library. Beforehand, the parser does not know the precedences of operators and thus the operator is just aBinaryOperatorExprSyntax
in aSequenceExprSyntax
.
Children
leftOperand
:ExprSyntax
operator
:ExprSyntax
rightOperand
:ExprSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
colon
::
inheritedTypes
:InheritedTypeListSyntax
Contained in
ActorDeclSyntax
.ActorDeclSyntax/inheritanceClause
AssociatedTypeDeclSyntax
.AssociatedTypeDeclSyntax/inheritanceClause
ClassDeclSyntax
.ClassDeclSyntax/inheritanceClause
EnumDeclSyntax
.EnumDeclSyntax/inheritanceClause
ExtensionDeclSyntax
.ExtensionDeclSyntax/inheritanceClause
ProtocolDeclSyntax
.ProtocolDeclSyntax/inheritanceClause
StructDeclSyntax
.StructDeclSyntax/inheritanceClause
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
InheritedTypeSyntax
*
Contained in
InheritanceClauseSyntax
.InheritanceClauseSyntax/inheritedTypes
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
type
:TypeSyntax
trailingComma
:,
?
Contained in
InheritedTypeListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithTrailingCommatrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
equal
:=
value
:ExprSyntax
Contained in
EnumCaseElementSyntax
.EnumCaseElementSyntax/rawValue
EnumCaseParameterSyntax
.EnumCaseParameterSyntax/defaultValue
FunctionParameterSyntax
.FunctionParameterSyntax/defaultValue
MacroDeclSyntax
.MacroDeclSyntax/definition
MatchingPatternConditionSyntax
.MatchingPatternConditionSyntax/initializer
OptionalBindingConditionSyntax
.OptionalBindingConditionSyntax/initializer
PatternBindingSyntax
.PatternBindingSyntax/initializer
Attributes
- Supertypes
An init
declaration
Documentation
An init
declaration
An example of an initializer is
init(someParameter: Int) {
}
The body is optional because this node also represents initializer requirements inside protocols.
Children
attributes
:AttributeListSyntax
modifiers
:DeclModifierListSyntax
initKeyword
:init
optionalMark
: (?
|!
)?genericParameterClause
:GenericParameterClauseSyntax
?signature
:FunctionSignatureSyntax
genericWhereClause
:GenericWhereClauseSyntax
?body
:CodeBlockSyntax
?
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithOptionalCodeBlocktrait WithModifierstrait WithGenericParameterstrait WithAttributestrait DeclSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Checks if an expression is of a given type.
Documentation
Checks if an expression is of a given type.
An example of an is
expression is
value is Double
- Note: This node is only generated after operators are folded using the
SwiftOperators
library. Beforehand, the parser does not know the precedences of operators and thus representsis
by anUnresolvedIsExpr
.
Children
expression
:ExprSyntax
isKeyword
:is
type
:TypeSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
isKeyword
:is
type
:TypeSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait PatternSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
The components of a key path
Documentation
The components of a key path
Children
KeyPathComponentSyntax
*
Contained in
KeyPathExprSyntax
.KeyPathExprSyntax/components
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A single key path component
Documentation
A single key path component
Children
period
:.
?component
: (KeyPathPropertyComponentSyntax
|KeyPathSubscriptComponentSyntax
|KeyPathOptionalComponentSyntax
)
Contained in
KeyPathComponentListSyntax
Attributes
- Supertypes
A key path.
Documentation
A key path.
Examples
\a.b[2].a
Children
backslash
:\
root
:TypeSyntax
?components
:KeyPathComponentListSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A key path component like ?
or !
.
Documentation
A key path component like ?
or !
.
Children
questionOrExclamationMark
: (?
|!
)
Contained in
KeyPathComponentSyntax
.KeyPathComponentSyntax/component
Attributes
- Supertypes
A key path component like .property
or .1
.
Documentation
A key path component like .property
or .1
.
Children
declName
:DeclReferenceExprSyntax
genericArgumentClause
:GenericArgumentClauseSyntax
?
Contained in
KeyPathComponentSyntax
.KeyPathComponentSyntax/component
Attributes
- Supertypes
A key path component like .[17]
Documentation
A key path component like .[17]
Children
leftSquare
:[
arguments
:LabeledExprListSyntax
rightSquare
:]
Contained in
KeyPathComponentSyntax
.KeyPathComponentSyntax/component
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
LabeledExprSyntax
*
Contained in
AttributeSyntax
.AttributeSyntax/arguments
ExpressionSegmentSyntax
.ExpressionSegmentSyntax/expressions
FunctionCallExprSyntax
.FunctionCallExprSyntax/arguments
KeyPathSubscriptComponentSyntax
.KeyPathSubscriptComponentSyntax/arguments
MacroExpansionDeclSyntax
.MacroExpansionDeclSyntax/arguments
MacroExpansionExprSyntax
.MacroExpansionExprSyntax/arguments
SubscriptCallExprSyntax
.SubscriptCallExprSyntax/arguments
TupleExprSyntax
.TupleExprSyntax/elements
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
An expression that is prefixed by a label.
Documentation
An expression that is prefixed by a label.
For example, labeled expressions occur in
- Function calls, where the label is the parameter label.
- Tuples, where the label is the name of the tuple element.
Children
label
: (<identifier>
|_
)?colon
::
?expression
:ExprSyntax
trailingComma
:,
?
Contained in
LabeledExprListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithTrailingCommatrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A labeled argument for the @_specialize
attribute like exported: true
Documentation
A labeled argument for the @_specialize
attribute like exported: true
Children
label
: (target
|availability
|exported
|kind
|spi
|spiModule
)colon
::
value
:TokenSyntax
trailingComma
:,
?
Contained in
SpecializeAttributeArgumentListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithTrailingCommatrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
label
:<identifier>
colon
::
statement
:StmtSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait StmtSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
type
:TypeSyntax
colon
::
layoutSpecifier
: (_Trivial
|_TrivialAtMost
|_UnknownLayout
|_RefCountedObject
|_NativeRefCountedObject
|_Class
|_NativeClass
|_BridgeObject
|_TrivialStride
)leftParen
:(
?size
:<integerLiteral>
?comma
:,
?alignment
:<integerLiteral>
?rightParen
:)
?
Contained in
GenericRequirementSyntax
.GenericRequirementSyntax/requirement
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
LifetimeSpecifierArgumentSyntax
*
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A single argument that can be added to a lifetime specifier like borrow
, mutate
, consume
or copy
.
Documentation
A single argument that can be added to a lifetime specifier like borrow
, mutate
, consume
or copy
.
Example data
in func foo(data: Array<Item>) -> borrow(data) ComplexReferenceType
Children
parameter
: (<identifier>
|self
|<integerLiteral>
)trailingComma
:,
?
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithTrailingCommatrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
An optional argument passed to a type parameter.
Documentation
An optional argument passed to a type parameter.
Example borrow(data)
in func foo(data: Array<Item>) -> borrow(data) ComplexReferenceType
Children
leftParen
:(
arguments
:LifetimeSpecifierArgumentListSyntax
rightParen
:)
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Parenthesizedtrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A specifier that specifies function parameter on whose lifetime a type depends
Documentation
A specifier that specifies function parameter on whose lifetime a type depends
Children
specifier
: (_copy
|_consume
|_borrow
|_mutate
)arguments
:LifetimeSpecifierArgumentsSyntax
Contained in
TypeSpecifierListSyntax
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
attributes
:AttributeListSyntax
modifiers
:DeclModifierListSyntax
macroKeyword
:macro
name
:<identifier>
genericParameterClause
:GenericParameterClauseSyntax
?signature
:FunctionSignatureSyntax
definition
:InitializerClauseSyntax
?genericWhereClause
:GenericWhereClauseSyntax
?
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithModifierstrait WithGenericParameterstrait WithAttributestrait NamedDecltrait DeclSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
The expansion of a freestanding macro in a position that expects a declaration.
Documentation
The expansion of a freestanding macro in a position that expects a declaration.
Children
attributes
:AttributeListSyntax
modifiers
:DeclModifierListSyntax
pound
:#
macroName
:<identifier>
genericArgumentClause
:GenericArgumentClauseSyntax
?leftParen
:(
?arguments
:LabeledExprListSyntax
rightParen
:)
?trailingClosure
:ClosureExprSyntax
?additionalTrailingClosures
:MultipleTrailingClosureElementListSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithModifierstrait WithAttributestrait DeclSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
The expansion of a freestanding macro in a position that expects an expression.
Documentation
The expansion of a freestanding macro in a position that expects an expression.
Children
pound
:#
macroName
:<identifier>
genericArgumentClause
:GenericArgumentClauseSyntax
?leftParen
:(
?arguments
:LabeledExprListSyntax
rightParen
:)
?trailingClosure
:ClosureExprSyntax
?additionalTrailingClosures
:MultipleTrailingClosureElementListSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
caseKeyword
:case
pattern
:PatternSyntax
typeAnnotation
:TypeAnnotationSyntax
?initializer
:InitializerClauseSyntax
Contained in
ConditionElementSyntax
.ConditionElementSyntax/condition
Attributes
- Supertypes
An expression that access a member like a function or a property.
Documentation
An expression that access a member like a function or a property.
Children
base
:ExprSyntax
?period
:.
declName
:DeclReferenceExprSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
MemberBlockItemSyntax
*
Contained in
IfConfigClauseSyntax
.IfConfigClauseSyntax/elements
MemberBlockSyntax
.MemberBlockSyntax/members
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A member declaration of a type consisting of a declaration and an optional semicolon;
Documentation
A member declaration of a type consisting of a declaration and an optional semicolon;
Children
decl
:DeclSyntax
semicolon
:;
?
Contained in
MemberBlockItemListSyntax
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
leftBrace
:{
members
:MemberBlockItemListSyntax
rightBrace
:}
Contained in
ActorDeclSyntax
.ActorDeclSyntax/memberBlock
ClassDeclSyntax
.ClassDeclSyntax/memberBlock
EnumDeclSyntax
.EnumDeclSyntax/memberBlock
ExtensionDeclSyntax
.ExtensionDeclSyntax/memberBlock
ProtocolDeclSyntax
.ProtocolDeclSyntax/memberBlock
StructDeclSyntax
.StructDeclSyntax/memberBlock
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
baseType
:TypeSyntax
period
:.
name
: (<identifier>
|self
)genericArgumentClause
:GenericArgumentClauseSyntax
?
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
baseType
:TypeSyntax
period
:.
metatypeSpecifier
: (Type
|Protocol
)
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
In case the source code is missing a declaration, this node stands in place of the missing declaration.
Documentation
In case the source code is missing a declaration, this node stands in place of the missing declaration.
Children
attributes
:AttributeListSyntax
modifiers
:DeclModifierListSyntax
placeholder
:<identifier>
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithModifierstrait WithAttributestrait MissingNodetrait DeclSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
In case the source code is missing an expression, this node stands in place of the missing expression.
Documentation
In case the source code is missing an expression, this node stands in place of the missing expression.
Children
placeholder
:<identifier>
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait MissingNodetrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class MissingDeclSyntaxclass MissingExprSyntaxclass MissingPatternSyntaxclass MissingStmtSyntaxclass MissingSyntaxclass MissingTypeSyntaxShow all
In case the source code is missing a pattern, this node stands in place of the missing pattern.
Documentation
In case the source code is missing a pattern, this node stands in place of the missing pattern.
Children
placeholder
:<identifier>
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait MissingNodetrait PatternSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
In case the source code is missing a statement, this node stands in place of the missing statement.
Documentation
In case the source code is missing a statement, this node stands in place of the missing statement.
Children
placeholder
:<identifier>
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait MissingNodetrait StmtSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
In case the source code is missing a syntax node, this node stands in place of the missing node.
Documentation
In case the source code is missing a syntax node, this node stands in place of the missing node.
Children
placeholder
:<identifier>
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait MissingNodetrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
In case the source code is missing a type, this node stands in place of the missing type.
Documentation
In case the source code is missing a type, this node stands in place of the missing type.
Children
placeholder
:<identifier>
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait MissingNodetrait TypeSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
MultipleTrailingClosureElementSyntax
*
Contained in
FunctionCallExprSyntax
.FunctionCallExprSyntax/additionalTrailingClosures
MacroExpansionDeclSyntax
.MacroExpansionDeclSyntax/additionalTrailingClosures
MacroExpansionExprSyntax
.MacroExpansionExprSyntax/additionalTrailingClosures
SubscriptCallExprSyntax
.SubscriptCallExprSyntax/additionalTrailingClosures
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
label
: (<identifier>
|_
)colon
::
closure
:ClosureExprSyntax
Contained in
MultipleTrailingClosureElementListSyntax
Attributes
- Supertypes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class ActorDeclSyntaxclass AssociatedTypeDeclSyntaxclass ClassDeclSyntaxclass EnumDeclSyntaxclass FunctionDeclSyntaxclass MacroDeclSyntaxclass OperatorDeclSyntaxclass ProtocolDeclSyntaxclass StructDeclSyntaxclass TypeAliasDeclSyntaxShow all
No documentation available.
Documentation
No documentation available.
Children
genericParameterClause
:GenericParameterClauseSyntax
type
:TypeSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
ObjCSelectorPieceSyntax
*
Contained in
AttributeSyntax
.AttributeSyntax/arguments
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
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
Documentation
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
Children
name
:TokenSyntax
?colon
::
?
Contained in
ObjCSelectorPieceListSyntax
Attributes
- Supertypes
The arguments for the '@_opaqueReturnTypeOf()'.
Documentation
The arguments for the '@_opaqueReturnTypeOf()'.
Children
mangledName
:StringLiteralExprSyntax
comma
:,
ordinal
:<integerLiteral>
Contained in
AttributeSyntax
.AttributeSyntax/arguments
Attributes
- Supertypes
A Swift operator
declaration.
Documentation
A Swift operator
declaration.
Children
fixitySpecifier
: (prefix
|postfix
|infix
)operatorKeyword
:operator
name
: (<binaryOperator>
|<prefixOperator>
|<postfixOperator>
)operatorPrecedenceAndTypes
:OperatorPrecedenceAndTypesSyntax
?
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait NamedDecltrait DeclSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A clause to specify precedence group in infix operator declarations, and designated types in any operator declaration.
Documentation
A clause to specify precedence group in infix operator declarations, and designated types in any operator declaration.
Children
colon
::
precedenceGroup
:<identifier>
designatedTypes
:DesignatedTypeListSyntax
Contained in
OperatorDeclSyntax
.OperatorDeclSyntax/operatorPrecedenceAndTypes
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
bindingSpecifier
: (let
|var
|inout
|_mutating
|_borrowing
|_consuming
)pattern
:PatternSyntax
typeAnnotation
:TypeAnnotationSyntax
?initializer
:InitializerClauseSyntax
?
Contained in
ConditionElementSyntax
.ConditionElementSyntax/condition
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
expression
:ExprSyntax
questionMark
:?
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
wrappedType
:TypeSyntax
questionMark
:?
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
The arguments for the '@_originallyDefinedIn' attribute
Documentation
The arguments for the '@_originallyDefinedIn' attribute
Children
moduleLabel
:module
colon
::
moduleName
:StringLiteralExprSyntax
comma
:,
platforms
:PlatformVersionItemListSyntax
Contained in
AttributeSyntax
.AttributeSyntax/arguments
Attributes
- Supertypes
A pack element expression spelled with each
.
Documentation
A pack element expression spelled with each
.
Children
eachKeyword
:each
pack
:ExprSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
eachKeyword
:each
pack
:TypeSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A pack expansion expression spelled with repeat
.
Documentation
A pack expansion expression spelled with repeat
.
Children
repeatKeyword
:repeat
repetitionPattern
:ExprSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
repeatKeyword
:repeat
repetitionPattern
:TypeSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class AccessorParametersSyntaxclass DeclModifierDetailSyntaxclass DeclNameArgumentsSyntaxclass ExpressionSegmentSyntaxclass FunctionTypeSyntaxclass TupleExprSyntaxclass TuplePatternSyntaxclass TupleTypeSyntaxShow all
No documentation available.
Documentation
No documentation available.
Children
PatternBindingSyntax
*
Contained in
VariableDeclSyntax
.VariableDeclSyntax/bindings
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Defines variables inside a variable declaration.
Documentation
Defines variables inside a variable declaration.
Children
pattern
:PatternSyntax
typeAnnotation
:TypeAnnotationSyntax
?initializer
:InitializerClauseSyntax
?accessorBlock
:AccessorBlockSyntax
?trailingComma
:,
?
Contained in
PatternBindingListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithTrailingCommatrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
- Known subtypes
-
class ExpressionPatternSyntaxclass IdentifierPatternSyntaxclass IsTypePatternSyntaxclass MissingPatternSyntaxclass TuplePatternSyntaxclass WildcardPatternSyntaxShow all
No documentation available.
Documentation
No documentation available.
Children
PlatformVersionItemSyntax
*
Contained in
BackDeployedAttributeArgumentsSyntax
.BackDeployedAttributeArgumentsSyntax/platforms
OriginallyDefinedInAttributeArgumentsSyntax
.OriginallyDefinedInAttributeArgumentsSyntax/platforms
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A single platform/version pair in an attribute, e.g. iOS 10.1
.
Documentation
A single platform/version pair in an attribute, e.g. iOS 10.1
.
Children
platformVersion
:PlatformVersionSyntax
trailingComma
:,
?
Contained in
PlatformVersionItemListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithTrailingCommatrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
An argument to @available
that restricts the availability on a certain platform to a version, e.g. iOS 10
or swift 3.4
.
Documentation
An argument to @available
that restricts the availability on a certain platform to a version, e.g. iOS 10
or swift 3.4
.
Children
platform
:<identifier>
version
:VersionTupleSyntax
?
Contained in
AvailabilityArgumentSyntax
.AvailabilityArgumentSyntax/argument
PlatformVersionItemSyntax
.PlatformVersionItemSyntax/platformVersion
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
base
:ExprSyntax
?config
:IfConfigDeclSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
expression
:ExprSyntax
operator
:<postfixOperator>
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
fileLabel
:file
fileColon
::
fileName
:SimpleStringLiteralExprSyntax
comma
:,
lineLabel
:line
lineColon
::
lineNumber
:<integerLiteral>
Contained in
PoundSourceLocationSyntax
.PoundSourceLocationSyntax/arguments
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
poundSourceLocation
:#sourceLocation
leftParen
:(
arguments
:PoundSourceLocationArgumentsSyntax
?rightParen
:)
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Parenthesizedtrait DeclSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Specifies the precedence of an operator when used in an operation that includes optional chaining.
Documentation
Specifies the precedence of an operator when used in an operation that includes optional chaining.
Children
assignmentLabel
:assignment
colon
::
value
: (true
|false
)
Contained in
PrecedenceGroupAttributeListSyntax
Attributes
- Supertypes
Specifies how a sequence of operators with the same precedence level are grouped together in the absence of grouping parentheses.
Documentation
Specifies how a sequence of operators with the same precedence level are grouped together in the absence of grouping parentheses.
Children
associativityLabel
:associativity
colon
::
value
: (left
|right
|none
)
Contained in
PrecedenceGroupAttributeListSyntax
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
(PrecedenceGroupRelationSyntax
| PrecedenceGroupAssignmentSyntax
| PrecedenceGroupAssociativitySyntax
) *
Contained in
PrecedenceGroupDeclSyntax
.PrecedenceGroupDeclSyntax/groupAttributes
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A Swift precedencegroup
declaration.
Documentation
A Swift precedencegroup
declaration.
Children
attributes
:AttributeListSyntax
modifiers
:DeclModifierListSyntax
precedencegroupKeyword
:precedencegroup
name
:<identifier>
leftBrace
:{
groupAttributes
:PrecedenceGroupAttributeListSyntax
rightBrace
:}
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithModifierstrait WithAttributestrait NamedDecltrait Bracedtrait DeclSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
PrecedenceGroupNameSyntax
*
Contained in
PrecedenceGroupRelationSyntax
.PrecedenceGroupRelationSyntax/precedenceGroups
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
name
:<identifier>
trailingComma
:,
?
Contained in
PrecedenceGroupNameListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithTrailingCommatrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Specify the new precedence group's relation to existing precedence groups.
Documentation
Specify the new precedence group's relation to existing precedence groups.
Children
higherThanOrLowerThanLabel
: (higherThan
|lowerThan
)colon
::
precedenceGroups
:PrecedenceGroupNameListSyntax
Contained in
PrecedenceGroupAttributeListSyntax
Attributes
- Supertypes
A prefix operator applied to a value.
Documentation
A prefix operator applied to a value.
Examples
-x
!true
Children
operator
:<prefixOperator>
expression
:ExprSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
leftAngle
:<
primaryAssociatedTypes
:PrimaryAssociatedTypeListSyntax
rightAngle
:>
Contained in
ProtocolDeclSyntax
.ProtocolDeclSyntax/primaryAssociatedTypeClause
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
PrimaryAssociatedTypeSyntax
*
Contained in
PrimaryAssociatedTypeClauseSyntax
.PrimaryAssociatedTypeClauseSyntax/primaryAssociatedTypes
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
name
:<identifier>
trailingComma
:,
?
Contained in
PrimaryAssociatedTypeListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithTrailingCommatrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A protocol
declaration
Documentation
A protocol
declaration
An example of a protocol declaration is
protocol Example {
var isValid: Bool { get }
}
Children
attributes
:AttributeListSyntax
modifiers
:DeclModifierListSyntax
protocolKeyword
:protocol
name
:<identifier>
primaryAssociatedTypeClause
:PrimaryAssociatedTypeClauseSyntax
?inheritanceClause
:InheritanceClauseSyntax
?genericWhereClause
:GenericWhereClauseSyntax
?memberBlock
:MemberBlockSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithModifierstrait WithAttributestrait NamedDecltrait DeclGrouptrait DeclSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
openingPounds
:<regexPoundDelimiter>
?openingSlash
:/
regex
:<regexLiteralPattern>
closingSlash
:/
closingPounds
:<regexPoundDelimiter>
?
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
repeatKeyword
:repeat
body
:CodeBlockSyntax
whileKeyword
:while
condition
:ExprSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithCodeBlocktrait StmtSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
arrow
:->
type
:TypeSyntax
Contained in
ClosureSignatureSyntax
.ClosureSignatureSyntax/returnClause
FunctionSignatureSyntax
.FunctionSignatureSyntax/returnClause
FunctionTypeSyntax
.FunctionTypeSyntax/returnClause
SubscriptDeclSyntax
.SubscriptDeclSyntax/returnClause
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
returnKeyword
:return
expression
:ExprSyntax
?
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait StmtSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
leftType
:TypeSyntax
equal
: (<binaryOperator>
|<prefixOperator>
|<postfixOperator>
)rightType
:TypeSyntax
Contained in
GenericRequirementSyntax
.GenericRequirementSyntax/requirement
Attributes
- Supertypes
A flat list of expressions before operator folding using the SwiftOperators
library.
Documentation
A flat list of expressions before operator folding using the SwiftOperators
library.
Examples
1 + 2 + 3
Children
elements
:ExprListSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A simple string that can’t contain string interpolation and cannot have raw string delimiters.
Documentation
A simple string that can’t contain string interpolation and cannot have raw string delimiters.
Children
openingQuote
: ("
|"""
)segments
:SimpleStringLiteralSegmentListSyntax
closingQuote
: ("
|"""
)
Contained in
AvailabilityLabeledArgumentSyntax
.AvailabilityLabeledArgumentSyntax/value
PoundSourceLocationArgumentsSyntax
.PoundSourceLocationArgumentsSyntax/fileName
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
String literal segments that only can contain non string interpolated or extended escaped strings
Documentation
String literal segments that only can contain non string interpolated or extended escaped strings
Children
StringSegmentSyntax
*
Contained in
SimpleStringLiteralExprSyntax
.SimpleStringLiteralExprSyntax/segments
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A specifier that can be attached to a type to eg. mark a parameter as inout
or consuming
Documentation
A specifier that can be attached to a type to eg. mark a parameter as inout
or consuming
Children
specifier
: (inout
|__shared
|__owned
|isolated
|_const
|borrowing
|consuming
|transferring
|_resultDependsOn
)
Contained in
TypeSpecifierListSyntax
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
someOrAnySpecifier
: (some
|any
)constraint
:TypeSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
shebang
:<shebang>
?statements
:CodeBlockItemListSyntax
endOfFileToken
: ``
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithStatementstrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A collection of arguments for the @_specialize
attribute
Documentation
A collection of arguments for the @_specialize
attribute
Children
(LabeledSpecializeArgumentSyntax
| SpecializeAvailabilityArgumentSyntax
| SpecializeTargetFunctionArgumentSyntax
| GenericWhereClauseSyntax
) *
Contained in
AttributeSyntax
.AttributeSyntax/arguments
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
The availability argument for the _specialize attribute
Documentation
The availability argument for the _specialize attribute
Children
availabilityLabel
:availability
colon
::
availabilityArguments
:AvailabilityArgumentListSyntax
semicolon
:;
Contained in
SpecializeAttributeArgumentListSyntax
Attributes
- Supertypes
A labeled argument for the @_specialize
attribute with a function decl value like target: myFunc(_:)
Documentation
A labeled argument for the @_specialize
attribute with a function decl value like target: myFunc(_:)
Children
targetLabel
:target
colon
::
declName
:DeclReferenceExprSyntax
trailingComma
:,
?
Contained in
SpecializeAttributeArgumentListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithTrailingCommatrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
- Known subtypes
-
class BreakStmtSyntaxclass ContinueStmtSyntaxclass DeferStmtSyntaxclass DiscardStmtSyntaxclass DoStmtSyntaxclass ExpressionStmtSyntaxclass FallThroughStmtSyntaxclass ForStmtSyntaxclass GuardStmtSyntaxclass LabeledStmtSyntaxclass MissingStmtSyntaxclass RepeatStmtSyntaxclass ReturnStmtSyntaxclass ThenStmtSyntaxclass ThrowStmtSyntaxclass WhileStmtSyntaxclass YieldStmtSyntaxShow all
A string literal.
Documentation
A string literal.
Examples
"Hello \(userName())!"
Children
openingPounds
:<rawStringPoundDelimiter>
?openingQuote
: ("
|"""
|'
)segments
:StringLiteralSegmentListSyntax
closingQuote
: ("
|"""
|'
)closingPounds
:<rawStringPoundDelimiter>
?
Contained in
AttributeSyntax
.AttributeSyntax/arguments
ConventionAttributeArgumentsSyntax
.ConventionAttributeArgumentsSyntax/cTypeString
DocumentationAttributeArgumentSyntax
.DocumentationAttributeArgumentSyntax/value
ExposeAttributeArgumentsSyntax
.ExposeAttributeArgumentsSyntax/cxxName
OpaqueReturnTypeOfAttributeArgumentsSyntax
.OpaqueReturnTypeOfAttributeArgumentsSyntax/mangledName
OriginallyDefinedInAttributeArgumentsSyntax
.OriginallyDefinedInAttributeArgumentsSyntax/moduleName
UnavailableFromAsyncAttributeArgumentsSyntax
.UnavailableFromAsyncAttributeArgumentsSyntax/message
UnderscorePrivateAttributeArgumentsSyntax
.UnderscorePrivateAttributeArgumentsSyntax/filename
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
(StringSegmentSyntax
| ExpressionSegmentSyntax
) *
Contained in
StringLiteralExprSyntax
.StringLiteralExprSyntax/segments
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A literal segment inside a string segment.
Documentation
A literal segment inside a string segment.
- SeeAlso:
ExpressionSegmentSyntax
Children
content
:<stringSegment>
Contained in
SimpleStringLiteralSegmentListSyntax
StringLiteralSegmentListSyntax
Attributes
- Supertypes
A struct
declaration
Documentation
A struct
declaration
An example of a struct declaration is
struct SomeStruct {
let someMember: String
var anotherMember: Int
func foo() {
print(someMember)
}
mutating func bar() {
anotherMember = 42
}
}
A struct declaration may be declared without any members.
struct EmptyStruct {
}
A struct declaration may include a type inheritance clause listing one or more protocols the struct conforms to.
The example below uses Hashable and Equatable protocols whose members are automatically synthesized by the compiler if the struct contains stored members that are themselves Hashable
and Equatable
.
struct AdvancedStruct: Hashable, Equatable {
let someMember: String
var anotherMember: Int
}
A struct declaration may include a generic parameter clause as well as a generic where clause.
struct Stack<Element> {
var items: [Element] = []
mutating func push(_ item: Element) {
items.append(item)
}
mutating func pop() -> Element {
return items.removeLast()
}
}
Children
attributes
:AttributeListSyntax
modifiers
:DeclModifierListSyntax
structKeyword
:struct
name
:<identifier>
genericParameterClause
:GenericParameterClauseSyntax
?inheritanceClause
:InheritanceClauseSyntax
?genericWhereClause
:GenericWhereClauseSyntax
?memberBlock
:MemberBlockSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithModifierstrait WithGenericParameterstrait WithAttributestrait NamedDecltrait DeclGrouptrait DeclSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
calledExpression
:ExprSyntax
leftSquare
:[
arguments
:LabeledExprListSyntax
rightSquare
:]
trailingClosure
:ClosureExprSyntax
?additionalTrailingClosures
:MultipleTrailingClosureElementListSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
attributes
:AttributeListSyntax
modifiers
:DeclModifierListSyntax
subscriptKeyword
:subscript
genericParameterClause
:GenericParameterClauseSyntax
?parameterClause
:FunctionParameterClauseSyntax
returnClause
:ReturnClauseSyntax
genericWhereClause
:GenericWhereClauseSyntax
?accessorBlock
:AccessorBlockSyntax
?
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithModifierstrait WithGenericParameterstrait WithAttributestrait DeclSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
withoutTilde
:<prefixOperator>
type
:TypeSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TypeSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait DeclSyntaxclass AccessorDeclSyntaxclass ActorDeclSyntaxclass AssociatedTypeDeclSyntaxclass ClassDeclSyntaxclass DeinitializerDeclSyntaxclass EnumCaseDeclSyntaxclass EnumDeclSyntaxclass ExtensionDeclSyntaxclass FunctionDeclSyntaxclass IfConfigDeclSyntaxclass ImportDeclSyntaxclass InitializerDeclSyntaxclass MacroDeclSyntaxclass MacroExpansionDeclSyntaxclass MissingDeclSyntaxclass OperatorDeclSyntaxclass ProtocolDeclSyntaxclass StructDeclSyntaxclass SubscriptDeclSyntaxclass TypeAliasDeclSyntaxclass VariableDeclSyntaxtrait ExprSyntaxclass ArrayExprSyntaxclass ArrowExprSyntaxclass AsExprSyntaxclass AssignmentExprSyntaxclass AwaitExprSyntaxclass BinaryOperatorExprSyntaxclass BooleanLiteralExprSyntaxclass BorrowExprSyntaxclass CanImportExprSyntaxclass ClosureExprSyntaxclass ConsumeExprSyntaxclass CopyExprSyntaxclass DeclReferenceExprSyntaxclass DictionaryExprSyntaxclass DoExprSyntaxclass FloatLiteralExprSyntaxclass ForceUnwrapExprSyntaxclass FunctionCallExprSyntaxclass IfExprSyntaxclass InOutExprSyntaxclass InfixOperatorExprSyntaxclass IntegerLiteralExprSyntaxclass IsExprSyntaxclass KeyPathExprSyntaxclass MacroExpansionExprSyntaxclass MemberAccessExprSyntaxclass MissingExprSyntaxclass NilLiteralExprSyntaxclass PackElementExprSyntaxclass PackExpansionExprSyntaxclass PatternExprSyntaxclass PrefixOperatorExprSyntaxclass RegexLiteralExprSyntaxclass SequenceExprSyntaxclass StringLiteralExprSyntaxclass SubscriptCallExprSyntaxclass SuperExprSyntaxclass SwitchExprSyntaxclass TernaryExprSyntaxclass TryExprSyntaxclass TupleExprSyntaxclass TypeExprSyntaxclass UnresolvedAsExprSyntaxclass UnresolvedIsExprSyntaxtrait PatternSyntaxclass ExpressionPatternSyntaxclass IdentifierPatternSyntaxclass IsTypePatternSyntaxclass MissingPatternSyntaxclass TuplePatternSyntaxclass WildcardPatternSyntaxtrait StmtSyntaxclass BreakStmtSyntaxclass ContinueStmtSyntaxclass DeferStmtSyntaxclass DiscardStmtSyntaxclass DoStmtSyntaxclass ExpressionStmtSyntaxclass FallThroughStmtSyntaxclass ForStmtSyntaxclass GuardStmtSyntaxclass LabeledStmtSyntaxclass MissingStmtSyntaxclass RepeatStmtSyntaxclass ReturnStmtSyntaxclass ThenStmtSyntaxclass ThrowStmtSyntaxclass WhileStmtSyntaxclass YieldStmtSyntaxtrait SwiftTokenclass arrowclass atSignclass backslashclass backtickclass binaryOperatorclass colonclass commaclass dollarIdentifierclass ellipsisclass endOfFileclass equalclass exclamationMarkclass floatLiteralclass identifierclass infixQuestionMarkclass integerLiteralclass keywordclass leftAngleclass leftBraceclass leftParenclass leftSquareclass multilineStringQuoteclass periodclass postfixOperatorclass postfixQuestionMarkclass poundclass poundAvailableclass poundElseclass poundElseifclass poundEndifclass poundIfclass poundSourceLocationclass poundUnavailableclass prefixAmpersandclass prefixOperatorclass rawStringPoundDelimiterclass regexLiteralPatternclass regexPoundDelimiterclass regexSlashclass rightAngleclass rightBraceclass rightParenclass rightSquareclass semicolonclass shebangclass singleQuoteclass stringQuoteclass stringSegmentclass unknownclass wildcardtrait Syntaxclass AccessorBlockSyntaxclass AccessorParametersSyntaxclass ArrayElementSyntaxclass AttributeSyntaxclass CatchClauseSyntaxclass CatchItemSyntaxclass ClosureCaptureSyntaxclass ClosureParameterSyntaxclass ClosureSignatureSyntaxclass CodeBlockItemSyntaxclass CodeBlockSyntaxclass ConditionElementSyntaxclass DeclModifierDetailSyntaxclass DeclModifierSyntaxclass DeclNameArgumentSyntaxclass DeclNameArgumentsSyntaxclass DesignatedTypeSyntaxclass DictionaryElementSyntaxclass EnumCaseElementSyntaxclass EnumCaseParameterSyntaxclass ExpressionSegmentSyntaxclass FunctionParameterSyntaxclass FunctionSignatureSyntaxclass GenericArgumentSyntaxclass GenericParameterSyntaxclass GenericRequirementSyntaxclass GenericWhereClauseSyntaxclass IfConfigClauseSyntaxclass InheritanceClauseSyntaxclass InheritedTypeSyntaxclass InitializerClauseSyntaxclass KeyPathComponentSyntaxclass LabeledExprSyntaxclass LayoutRequirementSyntaxclass MemberBlockItemSyntaxclass MemberBlockSyntaxclass MissingSyntaxclass ObjCSelectorPieceSyntaxclass PatternBindingSyntaxclass PlatformVersionSyntaxclass ReturnClauseSyntaxclass SourceFileSyntaxclass StringSegmentSyntaxclass SwitchCaseItemSyntaxclass SwitchCaseLabelSyntaxclass SwitchCaseSyntaxclass SwitchDefaultLabelSyntaxclass ThrowsClauseSyntaxclass TokenSyntaxclass TupleTypeElementSyntaxclass TypeAnnotationSyntaxclass VersionComponentSyntaxclass VersionTupleSyntaxclass WhereClauseSyntaxclass YieldedExpressionSyntaxtrait SyntaxCollectionclass AccessorDeclListSyntaxclass ArrayElementListSyntaxclass AttributeListSyntaxclass CatchClauseListSyntaxclass CatchItemListSyntaxclass ClosureCaptureListSyntaxclass CodeBlockItemListSyntaxclass DeclModifierListSyntaxclass DesignatedTypeListSyntaxclass ExprListSyntaxclass IfConfigClauseListSyntaxclass InheritedTypeListSyntaxclass LabeledExprListSyntaxclass PatternBindingListSyntaxclass SwitchCaseItemListSyntaxclass SwitchCaseListSyntaxclass TypeSpecifierListSyntaxclass UnexpectedNodesSyntaxtrait TypeSyntaxclass ArrayTypeSyntaxclass AttributedTypeSyntaxclass CompositionTypeSyntaxclass DictionaryTypeSyntaxclass FunctionTypeSyntaxclass IdentifierTypeSyntaxclass MemberTypeSyntaxclass MetatypeTypeSyntaxclass MissingTypeSyntaxclass OptionalTypeSyntaxclass PackElementTypeSyntaxclass PackExpansionTypeSyntaxclass SomeOrAnyTypeSyntaxclass SuppressedTypeSyntaxclass TupleTypeSyntaxShow all
Attributes
- Supertypes
- Known subtypes
-
class arrowclass atSignclass backslashclass backtickclass binaryOperatorclass colonclass commaclass dollarIdentifierclass ellipsisclass endOfFileclass equalclass exclamationMarkclass floatLiteralclass identifierclass infixQuestionMarkclass integerLiteralclass keywordclass leftAngleclass leftBraceclass leftParenclass leftSquareclass multilineStringQuoteclass periodclass postfixOperatorclass postfixQuestionMarkclass poundclass poundAvailableclass poundElseclass poundElseifclass poundEndifclass poundIfclass poundSourceLocationclass poundUnavailableclass prefixAmpersandclass prefixOperatorclass rawStringPoundDelimiterclass regexLiteralPatternclass regexPoundDelimiterclass regexSlashclass rightAngleclass rightBraceclass rightParenclass rightSquareclass semicolonclass shebangclass singleQuoteclass stringQuoteclass stringSegmentclass unknownclass wildcardShow all
No documentation available.
Documentation
No documentation available.
Children
SwitchCaseItemSyntax
*
Contained in
SwitchCaseLabelSyntax
.SwitchCaseLabelSyntax/caseItems
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
pattern
:PatternSyntax
whereClause
:WhereClauseSyntax
?trailingComma
:,
?
Contained in
SwitchCaseItemListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithTrailingCommatrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
caseKeyword
:case
caseItems
:SwitchCaseItemListSyntax
colon
::
Contained in
SwitchCaseSyntax
.SwitchCaseSyntax/label
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
(SwitchCaseSyntax
| IfConfigDeclSyntax
) *
Contained in
IfConfigClauseSyntax
.IfConfigClauseSyntax/elements
SwitchExprSyntax
.SwitchExprSyntax/cases
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
attribute
:AttributeSyntax
?label
: (SwitchDefaultLabelSyntax
|SwitchCaseLabelSyntax
)statements
:CodeBlockItemListSyntax
Contained in
SwitchCaseListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithStatementstrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
defaultKeyword
:default
colon
::
Contained in
SwitchCaseSyntax
.SwitchCaseSyntax/label
Attributes
- Supertypes
A switch
expression.
Documentation
A switch
expression.
Examples
This represents the switch expression in
switch self.foo {
}
A switch ecpression may be declared without any cases.
Children
switchKeyword
:switch
subject
:ExprSyntax
leftBrace
:{
cases
:SwitchCaseListSyntax
rightBrace
:}
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Bracedtrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
- Known subtypes
-
class AccessorBlockSyntaxclass AccessorParametersSyntaxclass ArrayElementSyntaxclass AttributeSyntaxclass CatchClauseSyntaxclass CatchItemSyntaxclass ClosureCaptureSyntaxclass ClosureParameterSyntaxclass ClosureSignatureSyntaxclass CodeBlockItemSyntaxclass CodeBlockSyntaxclass ConditionElementSyntaxclass DeclModifierDetailSyntaxclass DeclModifierSyntaxclass DeclNameArgumentSyntaxclass DeclNameArgumentsSyntaxclass DesignatedTypeSyntaxclass DictionaryElementSyntaxclass EnumCaseElementSyntaxclass EnumCaseParameterSyntaxclass ExpressionSegmentSyntaxclass FunctionParameterSyntaxclass FunctionSignatureSyntaxclass GenericArgumentSyntaxclass GenericParameterSyntaxclass GenericRequirementSyntaxclass GenericWhereClauseSyntaxclass IfConfigClauseSyntaxclass InheritanceClauseSyntaxclass InheritedTypeSyntaxclass InitializerClauseSyntaxclass KeyPathComponentSyntaxclass LabeledExprSyntaxclass LayoutRequirementSyntaxclass MemberBlockItemSyntaxclass MemberBlockSyntaxclass MissingSyntaxclass ObjCSelectorPieceSyntaxclass PatternBindingSyntaxclass PlatformVersionSyntaxclass ReturnClauseSyntaxclass SourceFileSyntaxclass StringSegmentSyntaxclass SwitchCaseItemSyntaxclass SwitchCaseLabelSyntaxclass SwitchCaseSyntaxclass SwitchDefaultLabelSyntaxclass ThrowsClauseSyntaxclass TokenSyntaxclass TupleTypeElementSyntaxclass TypeAnnotationSyntaxclass VersionComponentSyntaxclass VersionTupleSyntaxclass WhereClauseSyntaxclass YieldedExpressionSyntaxShow all
Attributes
- Supertypes
- Known subtypes
-
class AccessorDeclListSyntaxclass ArrayElementListSyntaxclass AttributeListSyntaxclass CatchClauseListSyntaxclass CatchItemListSyntaxclass ClosureCaptureListSyntaxclass CodeBlockItemListSyntaxclass DeclModifierListSyntaxclass DesignatedTypeListSyntaxclass ExprListSyntaxclass IfConfigClauseListSyntaxclass InheritedTypeListSyntaxclass LabeledExprListSyntaxclass PatternBindingListSyntaxclass SwitchCaseItemListSyntaxclass SwitchCaseListSyntaxclass TypeSpecifierListSyntaxclass UnexpectedNodesSyntaxShow all
The ternary operator with operator precedences resolved.
Documentation
The ternary operator with operator precedences resolved.
Examples
a ? 1 : 0
- Note: This node is only generated after operators are folded using the
SwiftOperators
library. Beforehand, the parser does not know the precedences of operators and thus represents the?
and:
by anUnresolvedTernaryExprSyntax
.
Children
condition
:ExprSyntax
questionMark
:?
thenExpression
:ExprSyntax
colon
::
elseExpression
:ExprSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A statement used to indicate the produced value from an if/switch expression.
Documentation
A statement used to indicate the produced value from an if/switch expression.
Written as:
then <expr>
Children
thenKeyword
:then
expression
:ExprSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait StmtSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
throwKeyword
:throw
expression
:ExprSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait StmtSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
throwsSpecifier
: (throws
|rethrows
)leftParen
:(
?type
:TypeSyntax
?rightParen
:)
?
Contained in
AccessorEffectSpecifiersSyntax
.AccessorEffectSpecifiersSyntax/throwsClause
DoStmtSyntax
.DoStmtSyntax/throwsClause
FunctionEffectSpecifiersSyntax
.FunctionEffectSpecifiersSyntax/throwsClause
TypeEffectSpecifiersSyntax
.TypeEffectSpecifiersSyntax/throwsClause
Attributes
- Supertypes
An expression prefixed with try
.
Documentation
An expression prefixed with try
.
Examples
try foo()
try? foo()
try! foo()
Children
tryKeyword
:try
questionOrExclamationMark
: (?
|!
)?expression
:ExprSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
leftParen
:(
elements
:LabeledExprListSyntax
rightParen
:)
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Parenthesizedtrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A list of TuplePatternElementSyntax
.
Documentation
A list of TuplePatternElementSyntax
.
Children
TuplePatternElementSyntax
*
Contained in
TuplePatternSyntax
.TuplePatternSyntax/elements
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
An element that represents a single tuple value in TuplePatternElementListSyntax
.
Documentation
An element that represents a single tuple value in TuplePatternElementListSyntax
.
Children
label
:<identifier>
?colon
::
?pattern
:PatternSyntax
trailingComma
:,
?
Contained in
TuplePatternElementListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithTrailingCommatrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A pattern that contains a list of other pattern.
Documentation
A pattern that contains a list of other pattern.
Examples
TuplePatternSyntax
can be used in more complex variable declarations. For example (x, y)
in the example:
let (x, y) = (1, 2)
Children
leftParen
:(
elements
:TuplePatternElementListSyntax
rightParen
:)
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Parenthesizedtrait PatternSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
TupleTypeElementSyntax
*
Contained in
FunctionTypeSyntax
.FunctionTypeSyntax/parameters
TupleTypeSyntax
.TupleTypeSyntax/elements
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
inoutKeyword
:inout
?firstName
: (<identifier>
|_
)?secondName
: (<identifier>
|_
)?colon
::
?type
:TypeSyntax
ellipsis
:...
?trailingComma
:,
?
Contained in
TupleTypeElementListSyntax
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithTrailingCommatrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
leftParen
:(
elements
:TupleTypeElementListSyntax
rightParen
:)
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Parenthesizedtrait TypeSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
attributes
:AttributeListSyntax
modifiers
:DeclModifierListSyntax
typealiasKeyword
:typealias
name
:<identifier>
genericParameterClause
:GenericParameterClauseSyntax
?initializer
:TypeInitializerClauseSyntax
genericWhereClause
:GenericWhereClauseSyntax
?
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithModifierstrait WithGenericParameterstrait WithAttributestrait NamedDecltrait DeclSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
colon
::
type
:TypeSyntax
Contained in
ForStmtSyntax
.ForStmtSyntax/typeAnnotation
MatchingPatternConditionSyntax
.MatchingPatternConditionSyntax/typeAnnotation
OptionalBindingConditionSyntax
.OptionalBindingConditionSyntax/typeAnnotation
PatternBindingSyntax
.PatternBindingSyntax/typeAnnotation
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
asyncSpecifier
:async
?throwsClause
:ThrowsClauseSyntax
?
Contained in
ArrowExprSyntax
.ArrowExprSyntax/effectSpecifiers
ClosureSignatureSyntax
.ClosureSignatureSyntax/effectSpecifiers
FunctionTypeSyntax
.FunctionTypeSyntax/effectSpecifiers
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait EffectSpecifierstrait Syntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
equal
:=
value
:TypeSyntax
Contained in
AssociatedTypeDeclSyntax
.AssociatedTypeDeclSyntax/initializer
TypeAliasDeclSyntax
.TypeAliasDeclSyntax/initializer
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
(SimpleTypeSpecifierSyntax
| LifetimeTypeSpecifierSyntax
) *
Contained in
AttributedTypeSyntax
.AttributedTypeSyntax/specifiers
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
- Known subtypes
-
class ArrayTypeSyntaxclass AttributedTypeSyntaxclass CompositionTypeSyntaxclass DictionaryTypeSyntaxclass FunctionTypeSyntaxclass IdentifierTypeSyntaxclass MemberTypeSyntaxclass MetatypeTypeSyntaxclass MissingTypeSyntaxclass OptionalTypeSyntaxclass PackElementTypeSyntaxclass PackExpansionTypeSyntaxclass SomeOrAnyTypeSyntaxclass SuppressedTypeSyntaxclass TupleTypeSyntaxShow all
The arguments for the '@_unavailableFromAsync' attribute
Documentation
The arguments for the '@_unavailableFromAsync' attribute
Children
messageLabel
:message
colon
::
message
:StringLiteralExprSyntax
Contained in
AttributeSyntax
.AttributeSyntax/arguments
Attributes
- Supertypes
The arguments for the '@_private' attribute
Documentation
The arguments for the '@_private' attribute
Children
sourceFileLabel
:sourceFile
colon
::
filename
:StringLiteralExprSyntax
Contained in
AttributeSyntax
.AttributeSyntax/arguments
Attributes
- Supertypes
A collection of syntax nodes that occurred in the source code but could not be used to form a valid syntax tree.
Documentation
A collection of syntax nodes that occurred in the source code but could not be used to form a valid syntax tree.
Children
Syntax
*
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
The as
keyword without any operands.
Documentation
The as
keyword without any operands.
- Note: The parser does not know the precedences of operators and thus represents
as
by anUnresolvedAsExprSyntax
. After operator folding using theSwiftOperators
library, this gets translated to anAsExprSyntax
.
Children
asKeyword
:as
questionOrExclamationMark
: (?
|!
)?
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
The is
keyword without any operands.
Documentation
The is
keyword without any operands.
- Note: The parser does not know the precedences of operators and thus represents
is
by anUnresolvedIsExprSyntax
. After operator folding using theSwiftOperators
library, this gets translated to anIsExprSyntax
.
Children
isKeyword
:is
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
The middle section of a ternary operator between ?
and :
.
Documentation
The middle section of a ternary operator between ?
and :
.
- Note: The parser does not know the precedences of operators and thus represents the middle section of a ternary operator by an
UnresolvedTernaryExprSyntax
. After operator folding using theSwiftOperators
library, this gets translated to anTernaryExprSyntax
.
Children
questionMark
:?
thenExpression
:ExprSyntax
colon
::
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ExprSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
bindingSpecifier
: (let
|var
|inout
|_mutating
|_borrowing
|_consuming
)pattern
:PatternSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait PatternSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Declaration of one or more variables
Documentation
Declaration of one or more variables
The core of a variable declaration consists of a binding specifier (let
or var
), followed by any number of pattern bindings, which define the variables.
Children
attributes
:AttributeListSyntax
modifiers
:DeclModifierListSyntax
bindingSpecifier
: (let
|var
|inout
|_mutating
|_borrowing
|_consuming
)bindings
:PatternBindingListSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithModifierstrait WithAttributestrait DeclSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
VersionComponentSyntax
*
Contained in
VersionTupleSyntax
.VersionTupleSyntax/components
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
An element to represent a single component in a version, like .1
.
Documentation
An element to represent a single component in a version, like .1
.
Children
period
:.
number
:<integerLiteral>
Contained in
VersionComponentListSyntax
Attributes
- Supertypes
A version number like 1.2.0
. Only the first version component is required. There might be an arbitrary number of following components.
Documentation
A version number like 1.2.0
. Only the first version component is required. There might be an arbitrary number of following components.
Children
major
:<integerLiteral>
components
:VersionComponentListSyntax
Contained in
AvailabilityLabeledArgumentSyntax
.AvailabilityLabeledArgumentSyntax/value
CanImportVersionInfoSyntax
.CanImportVersionInfoSyntax/version
PlatformVersionSyntax
.PlatformVersionSyntax/version
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
whereKeyword
:where
condition
:ExprSyntax
Contained in
CatchItemSyntax
.CatchItemSyntax/whereClause
ForStmtSyntax
.ForStmtSyntax/whereClause
SwitchCaseItemSyntax
.SwitchCaseItemSyntax/whereClause
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
whileKeyword
:while
conditions
:ConditionElementListSyntax
body
:CodeBlockSyntax
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait WithCodeBlocktrait StmtSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
A pattern that represent a wildcard.
Documentation
A pattern that represent a wildcard.
Examples
WildcardPatternSyntax
matches and ignores any value. For example _
in the example:
for _ in 1...3 {
// ...
}
Children
wildcard
:_
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait PatternSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class AccessorDeclSyntaxclass ActorDeclSyntaxclass AssociatedTypeDeclSyntaxclass AttributedTypeSyntaxclass ClassDeclSyntaxclass ClosureParameterSyntaxclass ClosureSignatureSyntaxclass DeinitializerDeclSyntaxclass EnumCaseDeclSyntaxclass EnumDeclSyntaxclass ExtensionDeclSyntaxclass FunctionDeclSyntaxclass FunctionParameterSyntaxclass GenericParameterSyntaxclass ImportDeclSyntaxclass InitializerDeclSyntaxclass MacroDeclSyntaxclass MacroExpansionDeclSyntaxclass MissingDeclSyntaxclass ProtocolDeclSyntaxclass StructDeclSyntaxclass SubscriptDeclSyntaxclass TypeAliasDeclSyntaxclass VariableDeclSyntaxShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class CatchClauseSyntaxclass DeferStmtSyntaxclass DoExprSyntaxclass DoStmtSyntaxclass ForStmtSyntaxclass GuardStmtSyntaxclass IfExprSyntaxclass RepeatStmtSyntaxclass WhileStmtSyntaxShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class ActorDeclSyntaxclass ClassDeclSyntaxclass EnumDeclSyntaxclass FunctionDeclSyntaxclass InitializerDeclSyntaxclass MacroDeclSyntaxclass StructDeclSyntaxclass SubscriptDeclSyntaxclass TypeAliasDeclSyntaxShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class ActorDeclSyntaxclass AssociatedTypeDeclSyntaxclass ClassDeclSyntaxclass ClosureParameterSyntaxclass DeinitializerDeclSyntaxclass EnumCaseDeclSyntaxclass EnumCaseParameterSyntaxclass EnumDeclSyntaxclass ExtensionDeclSyntaxclass FunctionDeclSyntaxclass FunctionParameterSyntaxclass ImportDeclSyntaxclass InitializerDeclSyntaxclass MacroDeclSyntaxclass MacroExpansionDeclSyntaxclass MissingDeclSyntaxclass ProtocolDeclSyntaxclass StructDeclSyntaxclass SubscriptDeclSyntaxclass TypeAliasDeclSyntaxclass VariableDeclSyntaxShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class AccessorDeclSyntaxclass DeinitializerDeclSyntaxclass FunctionDeclSyntaxclass InitializerDeclSyntax
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class ArrayElementSyntaxclass CatchItemSyntaxclass ClosureCaptureSyntaxclass ClosureParameterSyntaxclass ConditionElementSyntaxclass DictionaryElementSyntaxclass EnumCaseElementSyntaxclass EnumCaseParameterSyntaxclass FunctionParameterSyntaxclass GenericArgumentSyntaxclass GenericParameterSyntaxclass GenericRequirementSyntaxclass InheritedTypeSyntaxclass LabeledExprSyntaxclass PatternBindingSyntaxclass SwitchCaseItemSyntaxclass TupleTypeElementSyntaxShow all
No documentation available.
Documentation
No documentation available.
Children
yieldKeyword
:yield
yieldedExpressions
: (YieldedExpressionsClauseSyntax
|ExprSyntax
)
Nowhere contained in
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait StmtSyntaxtrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
YieldedExpressionSyntax
*
Contained in
YieldedExpressionsClauseSyntax
.YieldedExpressionsClauseSyntax/elements
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SyntaxCollectiontrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
No documentation available.
Documentation
No documentation available.
Children
expression
:ExprSyntax
comma
:,
?
Contained in
YieldedExpressionListSyntax
Attributes
- Supertypes
No documentation available.
Documentation
No documentation available.
Children
leftParen
:(
elements
:YieldedExpressionListSyntax
rightParen
:)
Contained in
YieldStmtSyntax
.YieldStmtSyntax/yieldedExpressions
Attributes
- Supertypes
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SwiftTokentrait SwiftNodeclass Objecttrait Matchableclass AnyShow all