ExprSyntax
SyntaxBaseNodes.swift:509struct ExprSyntax
Subtypes
struct ArrayExprSyntax
An array literal.
struct ArrowExprSyntax
The arrow when a type is used at a position that syntactically expectes an expression.
struct AsExprSyntax
The cast of an expressison to a different type.
struct AssignmentExprSyntax
struct AwaitExprSyntax
struct BinaryOperatorExprSyntax
An operator like
+
or-
.struct BooleanLiteralExprSyntax
struct BorrowExprSyntax
struct ClosureExprSyntax
struct ConsumeExprSyntax
struct CopyExprSyntax
struct DeclReferenceExprSyntax
struct DictionaryExprSyntax
A dictionary literal
struct DiscardAssignmentExprSyntax
A
_
that discards a value inside an assignment.struct EditorPlaceholderExprSyntax
struct FloatLiteralExprSyntax
struct ForceUnwrapExprSyntax
struct FunctionCallExprSyntax
struct GenericSpecializationExprSyntax
struct IfExprSyntax
struct InOutExprSyntax
An expression prefixed with
&
to pass an argument to aninout
parameter.struct InfixOperatorExprSyntax
An infix operator call like
1 + 2
.struct IntegerLiteralExprSyntax
struct IsExprSyntax
Checks if an expression is of a given type.
struct KeyPathExprSyntax
A key path.
struct MacroExpansionExprSyntax
The expansion of a freestanding macro in a position that expects an expression.
struct MemberAccessExprSyntax
An expression that access a member like a function or a property.
struct MissingExprSyntax
In case the source code is missing an expression, this node stands in place of the missing expression.
struct NilLiteralExprSyntax
struct OptionalChainingExprSyntax
struct PackElementExprSyntax
A pack element expression spelled with
each
.struct PackExpansionExprSyntax
A pack expansion expression spelled with
repeat
.struct PatternExprSyntax
struct PostfixIfConfigExprSyntax
struct PostfixOperatorExprSyntax
struct PrefixOperatorExprSyntax
A prefix operator applied to a value.
struct RegexLiteralExprSyntax
struct SequenceExprSyntax
A flat list of expressions before operator folding using the
SwiftOperators
library.struct SimpleStringLiteralExprSyntax
A simple string that can’t contain string interpolation and cannot have raw string delimiters.
struct StringLiteralExprSyntax
A string literal.
struct SubscriptCallExprSyntax
struct SuperExprSyntax
struct SwitchExprSyntax
A
switch
expression.struct TernaryExprSyntax
The ternary operator with operator precedences resolved.
struct TryExprSyntax
An expression prefixed with
try
.struct TupleExprSyntax
struct TypeExprSyntax
struct UnresolvedAsExprSyntax
The
as
keyword without any operands.struct UnresolvedIsExprSyntax
The
is
keyword without any operands.struct UnresolvedTernaryExprSyntax
The middle section of a ternary operator between
?
and:
.