SwiftNodeSyntax

io.joern.swiftsrc2cpg.parser.SwiftNodeSyntax

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case class AccessorBlockSyntax(json: Value) extends Syntax, Braced

No documentation available.

Documentation

No documentation available.

Children

  • leftBrace: {
  • accessors: (AccessorDeclListSyntax | CodeBlockItemListSyntax)
  • rightBrace: }

Contained in

  • PatternBindingSyntax.PatternBindingSyntax/accessorBlock
  • SubscriptDeclSyntax.SubscriptDeclSyntax/accessorBlock

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Braced
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class AccessorDeclListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

AccessorDeclSyntax *

Contained in

  • AccessorBlockSyntax.AccessorBlockSyntax/accessors

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show 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 Serializable
trait Product
trait Equals
trait DeclSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class AccessorEffectSpecifiersSyntax(json: Value) extends Syntax, EffectSpecifiers

No documentation available.

Documentation

No documentation available.

Children

  • asyncSpecifier: async?
  • throwsClause: ThrowsClauseSyntax?

Contained in

  • AccessorDeclSyntax.AccessorDeclSyntax/effectSpecifiers

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class AccessorParametersSyntax(json: Value) extends Syntax, Parenthesized

No documentation available.

Documentation

No documentation available.

Children

  • leftParen: (
  • name: <identifier>
  • rightParen: )

Contained in

  • AccessorDeclSyntax.AccessorDeclSyntax/parameters

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show 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 Serializable
trait Product
trait Equals
trait NamedDecl
trait DeclGroup
trait DeclSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ArrayElementListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

ArrayElementSyntax *

Contained in

  • ArrayExprSyntax.ArrayExprSyntax/elements

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ArrayElementSyntax(json: Value) extends Syntax, WithTrailingComma

An element inside an array literal.

Documentation

An element inside an array literal.

Children

  • expression: ExprSyntax
  • trailingComma: ,?

Contained in

  • ArrayElementListSyntax

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ArrayExprSyntax(json: Value) extends ExprSyntax

An array literal.

Documentation

An array literal.

Children

  • leftSquare: [
  • elements: ArrayElementListSyntax
  • rightSquare: ]

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ArrayTypeSyntax(json: Value) extends TypeSyntax

No documentation available.

Documentation

No documentation available.

Children

  • leftSquare: [
  • element: TypeSyntax
  • rightSquare: ]

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait TypeSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ArrowExprSyntax(json: Value) extends ExprSyntax

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 Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class AsExprSyntax(json: Value) extends ExprSyntax

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 represents is by an UnresolvedAsExprSyntax.

Children

  • expression: ExprSyntax
  • asKeyword: as
  • questionOrExclamationMark: (? | !)?
  • type: TypeSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class AssignmentExprSyntax(json: Value) extends ExprSyntax

No documentation available.

Documentation

No documentation available.

Children

  • equal: =

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show 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 Serializable
trait Product
trait Equals
trait NamedDecl
trait DeclSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class AttributeListSyntax(json: Value) extends SyntaxCollection

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 Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class AttributeSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class AttributedTypeSyntax(json: Value) extends TypeSyntax, WithAttributes

No documentation available.

Documentation

No documentation available.

Children

  • specifiers: TypeSpecifierListSyntax
  • attributes: AttributeListSyntax
  • baseType: TypeSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait TypeSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class AvailabilityArgumentListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

AvailabilityArgumentSyntax *

Contained in

  • AttributeSyntax.AttributeSyntax/arguments
  • AvailabilityConditionSyntax.AvailabilityConditionSyntax/availabilityArguments
  • SpecializeAvailabilityArgumentSyntax.SpecializeAvailabilityArgumentSyntax/availabilityArguments

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class AvailabilityArgumentSyntax(json: Value) extends Syntax, WithTrailingComma

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 Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class AvailabilityConditionSyntax(json: Value) extends Syntax

No documentation available.

Documentation

No documentation available.

Children

  • availabilityKeyword: (#available | #unavailable)
  • leftParen: (
  • availabilityArguments: AvailabilityArgumentListSyntax
  • rightParen: )

Contained in

  • ConditionElementSyntax.ConditionElementSyntax/condition

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class AvailabilityLabeledArgumentSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class AwaitExprSyntax(json: Value) extends ExprSyntax

No documentation available.

Documentation

No documentation available.

Children

  • awaitKeyword: await
  • expression: ExprSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class BackDeployedAttributeArgumentsSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class BinaryOperatorExprSyntax(json: Value) extends ExprSyntax

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 Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class BooleanLiteralExprSyntax(json: Value) extends ExprSyntax

No documentation available.

Documentation

No documentation available.

Children

  • literal: (true | false)

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class BorrowExprSyntax(json: Value) extends ExprSyntax

No documentation available.

Documentation

No documentation available.

Children

  • borrowKeyword: _borrow
  • expression: ExprSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
sealed trait Braced

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class BreakStmtSyntax(json: Value) extends StmtSyntax

No documentation available.

Documentation

No documentation available.

Children

  • breakKeyword: break
  • label: <identifier>?

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait StmtSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class CanImportExprSyntax(json: Value) extends ExprSyntax

No documentation available.

Documentation

No documentation available.

Children

  • canImportKeyword: canImport
  • leftParen: (
  • importPath: <identifier>
  • versionInfo: CanImportVersionInfoSyntax?
  • rightParen: )

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class CanImportVersionInfoSyntax(json: Value) extends ExprSyntax

No documentation available.

Documentation

No documentation available.

Children

  • comma: ,
  • label: (_version | _underlyingVersion)
  • colon: :
  • version: VersionTupleSyntax

Contained in

  • CanImportExprSyntax.CanImportExprSyntax/versionInfo

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class CatchClauseListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

CatchClauseSyntax *

Contained in

  • DoStmtSyntax.DoStmtSyntax/catchClauses

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class CatchClauseSyntax(json: Value) extends Syntax, WithCodeBlock

No documentation available.

Documentation

No documentation available.

Children

  • catchKeyword: catch
  • catchItems: CatchItemListSyntax
  • body: CodeBlockSyntax

Contained in

  • CatchClauseListSyntax

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class CatchItemListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

CatchItemSyntax *

Contained in

  • CatchClauseSyntax.CatchClauseSyntax/catchItems

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class CatchItemSyntax(json: Value) extends Syntax, WithTrailingComma

No documentation available.

Documentation

No documentation available.

Children

  • pattern: PatternSyntax?
  • whereClause: WhereClauseSyntax?
  • trailingComma: ,?

Contained in

  • CatchItemListSyntax

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show 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 Serializable
trait Product
trait Equals
trait NamedDecl
trait DeclGroup
trait DeclSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ClassRestrictionTypeSyntax(json: Value) extends TypeSyntax

No documentation available.

Documentation

No documentation available.

Children

  • classKeyword: class

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait TypeSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ClosureCaptureClauseSyntax(json: Value) extends Syntax

No documentation available.

Documentation

No documentation available.

Children

  • leftSquare: [
  • items: ClosureCaptureListSyntax
  • rightSquare: ]

Contained in

  • ClosureSignatureSyntax.ClosureSignatureSyntax/capture

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ClosureCaptureListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

ClosureCaptureSyntax *

Contained in

  • ClosureCaptureClauseSyntax.ClosureCaptureClauseSyntax/items

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ClosureCaptureSpecifierSyntax(json: Value) extends Syntax

No documentation available.

Documentation

No documentation available.

Children

  • specifier: (weak | unowned)
  • leftParen: (?
  • detail: (safe | unsafe)?
  • rightParen: )?

Contained in

  • ClosureCaptureSyntax.ClosureCaptureSyntax/specifier

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ClosureCaptureSyntax(json: Value) extends Syntax, WithTrailingComma

No documentation available.

Documentation

No documentation available.

Children

  • specifier: ClosureCaptureSpecifierSyntax?
  • name: <identifier>?
  • equal: =?
  • expression: ExprSyntax
  • trailingComma: ,?

Contained in

  • ClosureCaptureListSyntax

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ClosureExprSyntax(json: Value) extends ExprSyntax, Braced, WithStatements

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 Serializable
trait Product
trait Equals
trait Braced
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ClosureParameterClauseSyntax(json: Value) extends Syntax, Parenthesized

No documentation available.

Documentation

No documentation available.

Children

  • leftParen: (
  • parameters: ClosureParameterListSyntax
  • rightParen: )

Contained in

  • ClosureSignatureSyntax.ClosureSignatureSyntax/parameterClause

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ClosureParameterListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

ClosureParameterSyntax *

Contained in

  • ClosureParameterClauseSyntax.ClosureParameterClauseSyntax/parameters

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show 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 Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ClosureShorthandParameterListSyntax(json: Value) extends SyntaxCollection

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 Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ClosureShorthandParameterSyntax(json: Value) extends Syntax, WithTrailingComma

No documentation available.

Documentation

No documentation available.

Children

  • name: (<identifier> | _)
  • trailingComma: ,?

Contained in

  • ClosureShorthandParameterListSyntax

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ClosureSignatureSyntax(json: Value) extends Syntax, WithAttributes

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 Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class CodeBlockItemListSyntax(json: Value) extends SyntaxCollection

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 Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class CodeBlockItemSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class CodeBlockSyntax(json: Value) extends Syntax, Braced, WithStatements

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 Serializable
trait Product
trait Equals
trait Braced
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class CompositionTypeElementListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

CompositionTypeElementSyntax *

Contained in

  • CompositionTypeSyntax.CompositionTypeSyntax/elements

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class CompositionTypeElementSyntax(json: Value) extends Syntax

No documentation available.

Documentation

No documentation available.

Children

  • type: TypeSyntax
  • ampersand: TokenSyntax?

Contained in

  • CompositionTypeElementListSyntax

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class CompositionTypeSyntax(json: Value) extends TypeSyntax

No documentation available.

Documentation

No documentation available.

Children

  • elements: CompositionTypeElementListSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait TypeSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ConditionElementListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

ConditionElementSyntax *

Contained in

  • GuardStmtSyntax.GuardStmtSyntax/conditions
  • IfExprSyntax.IfExprSyntax/conditions
  • WhileStmtSyntax.WhileStmtSyntax/conditions

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ConditionElementSyntax(json: Value) extends Syntax, WithTrailingComma

No documentation available.

Documentation

No documentation available.

Children

  • condition: (ExprSyntax | AvailabilityConditionSyntax | MatchingPatternConditionSyntax | OptionalBindingConditionSyntax)
  • trailingComma: ,?

Contained in

  • ConditionElementListSyntax

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ConformanceRequirementSyntax(json: Value) extends Syntax

No documentation available.

Documentation

No documentation available.

Children

  • leftType: TypeSyntax
  • colon: :
  • rightType: TypeSyntax

Contained in

  • GenericRequirementSyntax.GenericRequirementSyntax/requirement

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ConsumeExprSyntax(json: Value) extends ExprSyntax

No documentation available.

Documentation

No documentation available.

Children

  • consumeKeyword: (_move | consume)
  • expression: ExprSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ContinueStmtSyntax(json: Value) extends StmtSyntax

No documentation available.

Documentation

No documentation available.

Children

  • continueKeyword: continue
  • label: <identifier>?

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait StmtSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ConventionAttributeArgumentsSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class CopyExprSyntax(json: Value) extends ExprSyntax

No documentation available.

Documentation

No documentation available.

Children

  • copyKeyword: copy
  • expression: ExprSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
sealed trait DeclGroup

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class DeclModifierDetailSyntax(json: Value) extends Syntax, Parenthesized

No documentation available.

Documentation

No documentation available.

Children

  • leftParen: (
  • detail: <identifier>
  • rightParen: )

Contained in

  • DeclModifierSyntax.DeclModifierSyntax/detail

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class DeclModifierListSyntax(json: Value) extends SyntaxCollection

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 Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class DeclModifierSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class DeclNameArgumentListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

DeclNameArgumentSyntax *

Contained in

  • DeclNameArgumentsSyntax.DeclNameArgumentsSyntax/arguments

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class DeclNameArgumentSyntax(json: Value) extends Syntax

No documentation available.

Documentation

No documentation available.

Children

  • name: TokenSyntax
  • colon: :

Contained in

  • DeclNameArgumentListSyntax

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class DeclNameArgumentsSyntax(json: Value) extends Syntax, Parenthesized

No documentation available.

Documentation

No documentation available.

Children

  • leftParen: (
  • arguments: DeclNameArgumentListSyntax
  • rightParen: )

Contained in

  • DeclReferenceExprSyntax.DeclReferenceExprSyntax/argumentNames

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class DeclReferenceExprSyntax(json: Value) extends ExprSyntax

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 Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class DeferStmtSyntax(json: Value) extends StmtSyntax, WithCodeBlock

No documentation available.

Documentation

No documentation available.

Children

  • deferKeyword: defer
  • body: CodeBlockSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait StmtSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show 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 Serializable
trait Product
trait Equals
trait DeclSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class DeinitializerEffectSpecifiersSyntax(json: Value) extends Syntax

No documentation available.

Documentation

No documentation available.

Children

  • asyncSpecifier: async?

Contained in

  • DeinitializerDeclSyntax.DeinitializerDeclSyntax/effectSpecifiers

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class DerivativeAttributeArgumentsSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class DesignatedTypeListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

DesignatedTypeSyntax *

Contained in

  • OperatorPrecedenceAndTypesSyntax.OperatorPrecedenceAndTypesSyntax/designatedTypes

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class DesignatedTypeSyntax(json: Value) extends Syntax

No documentation available.

Documentation

No documentation available.

Children

  • leadingComma: ,
  • name: TokenSyntax

Contained in

  • DesignatedTypeListSyntax

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class DictionaryElementListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

DictionaryElementSyntax *

Contained in

  • DictionaryExprSyntax.DictionaryExprSyntax/content

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class DictionaryElementSyntax(json: Value) extends Syntax, WithTrailingComma

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 Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class DictionaryExprSyntax(json: Value) extends ExprSyntax

A dictionary literal

Documentation

A dictionary literal

Children

  • leftSquare: [
  • content: (: | DictionaryElementListSyntax)
  • rightSquare: ]

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class DictionaryTypeSyntax(json: Value) extends TypeSyntax

No documentation available.

Documentation

No documentation available.

Children

  • leftSquare: [
  • key: TypeSyntax
  • colon: :
  • value: TypeSyntax
  • rightSquare: ]

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait TypeSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class DifferentiabilityArgumentListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

DifferentiabilityArgumentSyntax *

Contained in

  • DifferentiabilityArgumentsSyntax.DifferentiabilityArgumentsSyntax/arguments

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class DifferentiabilityArgumentSyntax(json: Value) extends Syntax, WithTrailingComma

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 Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class DifferentiabilityArgumentsSyntax(json: Value) extends Syntax

The differentiability arguments.

Documentation

The differentiability arguments.

Children

  • leftParen: (
  • arguments: DifferentiabilityArgumentListSyntax
  • rightParen: )

Contained in

  • DifferentiabilityWithRespectToArgumentSyntax.DifferentiabilityWithRespectToArgumentSyntax/arguments

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class DifferentiabilityWithRespectToArgumentSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class DifferentiableAttributeArgumentsSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class DiscardAssignmentExprSyntax(json: Value) extends ExprSyntax

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 Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class DiscardStmtSyntax(json: Value) extends StmtSyntax

No documentation available.

Documentation

No documentation available.

Children

  • discardKeyword: discard
  • expression: ExprSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait StmtSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class DoExprSyntax(json: Value) extends ExprSyntax, WithCodeBlock

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 Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class DoStmtSyntax(json: Value) extends StmtSyntax, WithCodeBlock

No documentation available.

Documentation

No documentation available.

Children

  • doKeyword: do
  • throwsClause: ThrowsClauseSyntax?
  • body: CodeBlockSyntax
  • catchClauses: CatchClauseListSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait StmtSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all

The arguments of the '@_documentation' attribute

Documentation

The arguments of the '@_documentation' attribute

Children

DocumentationAttributeArgumentSyntax *

Contained in

  • AttributeSyntax.AttributeSyntax/arguments

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show 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 Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class DynamicReplacementAttributeArgumentsSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all

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 a MissingDeclSyntax.

Children

  • attributes: AttributeListSyntax
  • modifiers: DeclModifierListSyntax
  • placeholder: <identifier>

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait DeclSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class EditorPlaceholderExprSyntax(json: Value) extends ExprSyntax

Documentation

  • Warning: This EditorPlaceholderExprSyntax node is not generated by the parser anymore. Placeholders are represented by a DeclReferenceExprSyntax.

Children

  • placeholder: <identifier>

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
sealed trait EffectSpecifiers

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class EffectsAttributeArgumentListSyntax(json: Value) extends SyntaxCollection

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 Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class EnumCaseDeclSyntax(json: Value) extends DeclSyntax, WithAttributes, WithModifiers

A case declaration of a Swift enum. It can have 1 or more EnumCaseElements inside, each declaring a different case of the enum.

Documentation

A case declaration of a Swift enum. It can have 1 or more EnumCaseElements inside, each declaring a different case of the enum.

Children

  • attributes: AttributeListSyntax
  • modifiers: DeclModifierListSyntax
  • caseKeyword: case
  • elements: EnumCaseElementListSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait DeclSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class EnumCaseElementListSyntax(json: Value) extends SyntaxCollection

A collection of 0 or more EnumCaseElementSyntaxs.

Documentation

A collection of 0 or more EnumCaseElementSyntaxs.

Children

EnumCaseElementSyntax *

Contained in

  • EnumCaseDeclSyntax.EnumCaseDeclSyntax/elements

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class EnumCaseElementSyntax(json: Value) extends Syntax, WithTrailingComma

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 Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class EnumCaseParameterClauseSyntax(json: Value) extends Syntax, Parenthesized

No documentation available.

Documentation

No documentation available.

Children

  • leftParen: (
  • parameters: EnumCaseParameterListSyntax
  • rightParen: )

Contained in

  • EnumCaseElementSyntax.EnumCaseElementSyntax/parameterClause

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class EnumCaseParameterListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

EnumCaseParameterSyntax *

Contained in

  • EnumCaseParameterClauseSyntax.EnumCaseParameterClauseSyntax/parameters

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show 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 Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show 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 Serializable
trait Product
trait Equals
trait NamedDecl
trait DeclGroup
trait DeclSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ExposeAttributeArgumentsSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ExprListSyntax(json: Value) extends SyntaxCollection

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 Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
sealed trait ExprSyntax extends SwiftNode

Attributes

Supertypes
trait SwiftNode
class Object
trait Matchable
class Any
Known subtypes
case class ExpressionPatternSyntax(json: Value) extends PatternSyntax

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 Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ExpressionSegmentSyntax(json: Value) extends Syntax, Parenthesized

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 Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ExpressionStmtSyntax(json: Value) extends StmtSyntax

No documentation available.

Documentation

No documentation available.

Children

  • expression: ExprSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait StmtSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show 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 Serializable
trait Product
trait Equals
trait DeclGroup
trait DeclSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class FallThroughStmtSyntax(json: Value) extends StmtSyntax

No documentation available.

Documentation

No documentation available.

Children

  • fallthroughKeyword: fallthrough

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait StmtSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class FloatLiteralExprSyntax(json: Value) extends ExprSyntax

No documentation available.

Documentation

No documentation available.

Children

  • literal: <floatLiteral>

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ForStmtSyntax(json: Value) extends StmtSyntax, WithCodeBlock

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 Serializable
trait Product
trait Equals
trait StmtSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ForceUnwrapExprSyntax(json: Value) extends ExprSyntax

No documentation available.

Documentation

No documentation available.

Children

  • expression: ExprSyntax
  • exclamationMark: !

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class FunctionCallExprSyntax(json: Value) extends ExprSyntax

No documentation available.

Documentation

No documentation available.

Children

  • calledExpression: ExprSyntax
  • leftParen: (?
  • arguments: LabeledExprListSyntax
  • rightParen: )?
  • trailingClosure: ClosureExprSyntax?
  • additionalTrailingClosures: MultipleTrailingClosureElementListSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show 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 Serializable
trait Product
trait Equals
trait NamedDecl
trait DeclSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class FunctionEffectSpecifiersSyntax(json: Value) extends Syntax, EffectSpecifiers

No documentation available.

Documentation

No documentation available.

Children

  • asyncSpecifier: (async | reasync)?
  • throwsClause: ThrowsClauseSyntax?

Contained in

  • FunctionSignatureSyntax.FunctionSignatureSyntax/effectSpecifiers

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class FunctionParameterClauseSyntax(json: Value) extends Syntax, Parenthesized

No documentation available.

Documentation

No documentation available.

Children

  • leftParen: (
  • parameters: FunctionParameterListSyntax
  • rightParen: )

Contained in

  • FunctionSignatureSyntax.FunctionSignatureSyntax/parameterClause
  • SubscriptDeclSyntax.SubscriptDeclSyntax/parameterClause

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class FunctionParameterListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

FunctionParameterSyntax *

Contained in

  • FunctionParameterClauseSyntax.FunctionParameterClauseSyntax/parameters

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show 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 Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class FunctionSignatureSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class FunctionTypeSyntax(json: Value) extends TypeSyntax, Parenthesized

No documentation available.

Documentation

No documentation available.

Children

  • leftParen: (
  • parameters: TupleTypeElementListSyntax
  • rightParen: )
  • effectSpecifiers: TypeEffectSpecifiersSyntax?
  • returnClause: ReturnClauseSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait TypeSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class GenericArgumentClauseSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class GenericArgumentListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

GenericArgumentSyntax *

Contained in

  • GenericArgumentClauseSyntax.GenericArgumentClauseSyntax/arguments

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class GenericArgumentSyntax(json: Value) extends Syntax, WithTrailingComma

No documentation available.

Documentation

No documentation available.

Children

  • argument: TypeSyntax
  • trailingComma: ,?

Contained in

  • GenericArgumentListSyntax

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class GenericParameterClauseSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class GenericParameterListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

GenericParameterSyntax *

Contained in

  • GenericParameterClauseSyntax.GenericParameterClauseSyntax/parameters

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show 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 Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class GenericRequirementListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

GenericRequirementSyntax *

Contained in

  • GenericWhereClauseSyntax.GenericWhereClauseSyntax/requirements

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class GenericRequirementSyntax(json: Value) extends Syntax, WithTrailingComma

No documentation available.

Documentation

No documentation available.

Children

  • requirement: (SameTypeRequirementSyntax | ConformanceRequirementSyntax | LayoutRequirementSyntax)
  • trailingComma: ,?

Contained in

  • GenericRequirementListSyntax

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class GenericSpecializationExprSyntax(json: Value) extends ExprSyntax

No documentation available.

Documentation

No documentation available.

Children

  • expression: ExprSyntax
  • genericArgumentClause: GenericArgumentClauseSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class GenericWhereClauseSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class GuardStmtSyntax(json: Value) extends StmtSyntax, WithCodeBlock

No documentation available.

Documentation

No documentation available.

Children

  • guardKeyword: guard
  • conditions: ConditionElementListSyntax
  • elseKeyword: else
  • body: CodeBlockSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait StmtSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class IdentifierPatternSyntax(json: Value) extends PatternSyntax

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 Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class IdentifierTypeSyntax(json: Value) extends TypeSyntax

No documentation available.

Documentation

No documentation available.

Children

  • name: (<identifier> | Self | Any | _)
  • genericArgumentClause: GenericArgumentClauseSyntax?

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait TypeSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class IfConfigClauseListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

IfConfigClauseSyntax *

Contained in

  • IfConfigDeclSyntax.IfConfigDeclSyntax/clauses

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class IfConfigClauseSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class IfConfigDeclSyntax(json: Value) extends DeclSyntax

No documentation available.

Documentation

No documentation available.

Children

  • clauses: IfConfigClauseListSyntax
  • poundEndif: #endif

Contained in

  • AttributeListSyntax
  • PostfixIfConfigExprSyntax.PostfixIfConfigExprSyntax/config
  • SwitchCaseListSyntax

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait DeclSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class IfExprSyntax(json: Value) extends ExprSyntax, WithCodeBlock

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 Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ImplementsAttributeArgumentsSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ImplicitlyUnwrappedOptionalTypeSyntax(json: Value) extends TypeSyntax

No documentation available.

Documentation

No documentation available.

Children

  • wrappedType: TypeSyntax
  • exclamationMark: !

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait TypeSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ImportDeclSyntax(json: Value) extends DeclSyntax, WithAttributes, WithModifiers

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 Serializable
trait Product
trait Equals
trait DeclSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ImportPathComponentListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

ImportPathComponentSyntax *

Contained in

  • ImportDeclSyntax.ImportDeclSyntax/path

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ImportPathComponentSyntax(json: Value) extends Syntax

No documentation available.

Documentation

No documentation available.

Children

  • name: (<identifier> | <binaryOperator> | <prefixOperator> | <postfixOperator>)
  • trailingPeriod: .?

Contained in

  • ImportPathComponentListSyntax

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class InOutExprSyntax(json: Value) extends ExprSyntax

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 Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class InfixOperatorExprSyntax(json: Value) extends ExprSyntax

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 a BinaryOperatorExprSyntax in a SequenceExprSyntax.

Children

  • leftOperand: ExprSyntax
  • operator: ExprSyntax
  • rightOperand: ExprSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class InheritanceClauseSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class InheritedTypeListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

InheritedTypeSyntax *

Contained in

  • InheritanceClauseSyntax.InheritanceClauseSyntax/inheritedTypes

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class InheritedTypeSyntax(json: Value) extends Syntax, WithTrailingComma

No documentation available.

Documentation

No documentation available.

Children

  • type: TypeSyntax
  • trailingComma: ,?

Contained in

  • InheritedTypeListSyntax

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class InitializerClauseSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all

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 Serializable
trait Product
trait Equals
trait DeclSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class IntegerLiteralExprSyntax(json: Value) extends ExprSyntax

No documentation available.

Documentation

No documentation available.

Children

  • literal: <integerLiteral>

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class IsExprSyntax(json: Value) extends ExprSyntax

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 represents is by an UnresolvedIsExpr.

Children

  • expression: ExprSyntax
  • isKeyword: is
  • type: TypeSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class IsTypePatternSyntax(json: Value) extends PatternSyntax

No documentation available.

Documentation

No documentation available.

Children

  • isKeyword: is
  • type: TypeSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class KeyPathComponentListSyntax(json: Value) extends SyntaxCollection

The components of a key path

Documentation

The components of a key path

Children

KeyPathComponentSyntax *

Contained in

  • KeyPathExprSyntax.KeyPathExprSyntax/components

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class KeyPathComponentSyntax(json: Value) extends Syntax

A single key path component

Documentation

A single key path component

Children

  • period: .?
  • component: (KeyPathPropertyComponentSyntax | KeyPathSubscriptComponentSyntax | KeyPathOptionalComponentSyntax)

Contained in

  • KeyPathComponentListSyntax

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class KeyPathExprSyntax(json: Value) extends ExprSyntax

A key path.

Documentation

A key path.

Examples

\a.b[2].a

Children

  • backslash: \
  • root: TypeSyntax?
  • components: KeyPathComponentListSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class KeyPathOptionalComponentSyntax(json: Value) extends Syntax

A key path component like ? or !.

Documentation

A key path component like ? or !.

Children

  • questionOrExclamationMark: (? | !)

Contained in

  • KeyPathComponentSyntax.KeyPathComponentSyntax/component

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class KeyPathPropertyComponentSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class KeyPathSubscriptComponentSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class LabeledExprListSyntax(json: Value) extends SyntaxCollection

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 Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class LabeledExprSyntax(json: Value) extends Syntax, WithTrailingComma

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 Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class LabeledSpecializeArgumentSyntax(json: Value) extends Syntax, WithTrailingComma

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 Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class LabeledStmtSyntax(json: Value) extends StmtSyntax

No documentation available.

Documentation

No documentation available.

Children

  • label: <identifier>
  • colon: :
  • statement: StmtSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait StmtSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class LayoutRequirementSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class LifetimeSpecifierArgumentListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

LifetimeSpecifierArgumentSyntax *

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class LifetimeSpecifierArgumentSyntax(json: Value) extends Syntax, WithTrailingComma

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 Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class LifetimeSpecifierArgumentsSyntax(json: Value) extends Syntax, Parenthesized

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 Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class LifetimeTypeSpecifierSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all

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 Serializable
trait Product
trait Equals
trait NamedDecl
trait DeclSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show 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 Serializable
trait Product
trait Equals
trait DeclSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show 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 Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class MatchingPatternConditionSyntax(json: Value) extends Syntax

No documentation available.

Documentation

No documentation available.

Children

  • caseKeyword: case
  • pattern: PatternSyntax
  • typeAnnotation: TypeAnnotationSyntax?
  • initializer: InitializerClauseSyntax

Contained in

  • ConditionElementSyntax.ConditionElementSyntax/condition

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class MemberAccessExprSyntax(json: Value) extends ExprSyntax

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 Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class MemberBlockItemListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

MemberBlockItemSyntax *

Contained in

  • IfConfigClauseSyntax.IfConfigClauseSyntax/elements
  • MemberBlockSyntax.MemberBlockSyntax/members

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class MemberBlockItemSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class MemberBlockSyntax(json: Value) extends Syntax, Braced

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
trait Serializable
trait Product
trait Equals
trait Braced
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class MemberTypeSyntax(json: Value) extends TypeSyntax

No documentation available.

Documentation

No documentation available.

Children

  • baseType: TypeSyntax
  • period: .
  • name: (<identifier> | self)
  • genericArgumentClause: GenericArgumentClauseSyntax?

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait TypeSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class MetatypeTypeSyntax(json: Value) extends TypeSyntax

No documentation available.

Documentation

No documentation available.

Children

  • baseType: TypeSyntax
  • period: .
  • metatypeSpecifier: (Type | Protocol)

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait TypeSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show 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 Serializable
trait Product
trait Equals
trait MissingNode
trait DeclSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class MissingExprSyntax(json: Value) extends ExprSyntax, MissingNode

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 Serializable
trait Product
trait Equals
trait MissingNode
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
sealed trait MissingNode

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class MissingPatternSyntax(json: Value) extends PatternSyntax, MissingNode

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 Serializable
trait Product
trait Equals
trait MissingNode
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class MissingStmtSyntax(json: Value) extends StmtSyntax, MissingNode

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 Serializable
trait Product
trait Equals
trait MissingNode
trait StmtSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class MissingSyntax(json: Value) extends Syntax, MissingNode

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 Serializable
trait Product
trait Equals
trait MissingNode
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class MissingTypeSyntax(json: Value) extends TypeSyntax, MissingNode

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 Serializable
trait Product
trait Equals
trait MissingNode
trait TypeSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show 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 Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class MultipleTrailingClosureElementSyntax(json: Value) extends Syntax

No documentation available.

Documentation

No documentation available.

Children

  • label: (<identifier> | _)
  • colon: :
  • closure: ClosureExprSyntax

Contained in

  • MultipleTrailingClosureElementListSyntax

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
sealed trait NamedDecl

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class NamedOpaqueReturnTypeSyntax(json: Value) extends TypeSyntax

No documentation available.

Documentation

No documentation available.

Children

  • genericParameterClause: GenericParameterClauseSyntax
  • type: TypeSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait TypeSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class NilLiteralExprSyntax(json: Value) extends ExprSyntax

No documentation available.

Documentation

No documentation available.

Children

  • nilKeyword: nil

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ObjCSelectorPieceListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

ObjCSelectorPieceSyntax *

Contained in

  • AttributeSyntax.AttributeSyntax/arguments

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ObjCSelectorPieceSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class OpaqueReturnTypeOfAttributeArgumentsSyntax(json: Value) extends Syntax

The arguments for the '@_opaqueReturnTypeOf()'.

Documentation

The arguments for the '@_opaqueReturnTypeOf()'.

Children

  • mangledName: StringLiteralExprSyntax
  • comma: ,
  • ordinal: <integerLiteral>

Contained in

  • AttributeSyntax.AttributeSyntax/arguments

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class OperatorDeclSyntax(json: Value) extends DeclSyntax, NamedDecl

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 Serializable
trait Product
trait Equals
trait NamedDecl
trait DeclSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class OperatorPrecedenceAndTypesSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class OptionalBindingConditionSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class OptionalChainingExprSyntax(json: Value) extends ExprSyntax

No documentation available.

Documentation

No documentation available.

Children

  • expression: ExprSyntax
  • questionMark: ?

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class OptionalTypeSyntax(json: Value) extends TypeSyntax

No documentation available.

Documentation

No documentation available.

Children

  • wrappedType: TypeSyntax
  • questionMark: ?

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait TypeSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class OriginallyDefinedInAttributeArgumentsSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class PackElementExprSyntax(json: Value) extends ExprSyntax

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 Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class PackElementTypeSyntax(json: Value) extends TypeSyntax

No documentation available.

Documentation

No documentation available.

Children

  • eachKeyword: each
  • pack: TypeSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait TypeSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class PackExpansionExprSyntax(json: Value) extends ExprSyntax

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 Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class PackExpansionTypeSyntax(json: Value) extends TypeSyntax

No documentation available.

Documentation

No documentation available.

Children

  • repeatKeyword: repeat
  • repetitionPattern: TypeSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait TypeSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class PatternBindingListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

PatternBindingSyntax *

Contained in

  • VariableDeclSyntax.VariableDeclSyntax/bindings

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class PatternBindingSyntax(json: Value) extends Syntax, WithTrailingComma

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 Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class PatternExprSyntax(json: Value) extends ExprSyntax

No documentation available.

Documentation

No documentation available.

Children

  • pattern: PatternSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
sealed trait PatternSyntax extends SwiftNode

Attributes

Supertypes
trait SwiftNode
class Object
trait Matchable
class Any
Known subtypes
case class PlatformVersionItemListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

PlatformVersionItemSyntax *

Contained in

  • BackDeployedAttributeArgumentsSyntax.BackDeployedAttributeArgumentsSyntax/platforms
  • OriginallyDefinedInAttributeArgumentsSyntax.OriginallyDefinedInAttributeArgumentsSyntax/platforms

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class PlatformVersionItemSyntax(json: Value) extends Syntax, WithTrailingComma

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 Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class PlatformVersionSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class PostfixIfConfigExprSyntax(json: Value) extends ExprSyntax

No documentation available.

Documentation

No documentation available.

Children

  • base: ExprSyntax?
  • config: IfConfigDeclSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class PostfixOperatorExprSyntax(json: Value) extends ExprSyntax

No documentation available.

Documentation

No documentation available.

Children

  • expression: ExprSyntax
  • operator: <postfixOperator>

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class PoundSourceLocationArgumentsSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class PoundSourceLocationSyntax(json: Value) extends DeclSyntax, Parenthesized

No documentation available.

Documentation

No documentation available.

Children

  • poundSourceLocation: #sourceLocation
  • leftParen: (
  • arguments: PoundSourceLocationArgumentsSyntax?
  • rightParen: )

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait DeclSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class PrecedenceGroupAssignmentSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class PrecedenceGroupAssociativitySyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class PrecedenceGroupAttributeListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

(PrecedenceGroupRelationSyntax | PrecedenceGroupAssignmentSyntax | PrecedenceGroupAssociativitySyntax) *

Contained in

  • PrecedenceGroupDeclSyntax.PrecedenceGroupDeclSyntax/groupAttributes

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show 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 Serializable
trait Product
trait Equals
trait NamedDecl
trait Braced
trait DeclSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class PrecedenceGroupNameListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

PrecedenceGroupNameSyntax *

Contained in

  • PrecedenceGroupRelationSyntax.PrecedenceGroupRelationSyntax/precedenceGroups

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class PrecedenceGroupNameSyntax(json: Value) extends Syntax, WithTrailingComma

No documentation available.

Documentation

No documentation available.

Children

  • name: <identifier>
  • trailingComma: ,?

Contained in

  • PrecedenceGroupNameListSyntax

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class PrecedenceGroupRelationSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class PrefixOperatorExprSyntax(json: Value) extends ExprSyntax

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 Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class PrimaryAssociatedTypeClauseSyntax(json: Value) extends Syntax

No documentation available.

Documentation

No documentation available.

Children

  • leftAngle: <
  • primaryAssociatedTypes: PrimaryAssociatedTypeListSyntax
  • rightAngle: >

Contained in

  • ProtocolDeclSyntax.ProtocolDeclSyntax/primaryAssociatedTypeClause

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class PrimaryAssociatedTypeListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

PrimaryAssociatedTypeSyntax *

Contained in

  • PrimaryAssociatedTypeClauseSyntax.PrimaryAssociatedTypeClauseSyntax/primaryAssociatedTypes

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class PrimaryAssociatedTypeSyntax(json: Value) extends Syntax, WithTrailingComma

No documentation available.

Documentation

No documentation available.

Children

  • name: <identifier>
  • trailingComma: ,?

Contained in

  • PrimaryAssociatedTypeListSyntax

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show 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 Serializable
trait Product
trait Equals
trait NamedDecl
trait DeclGroup
trait DeclSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class RegexLiteralExprSyntax(json: Value) extends ExprSyntax

No documentation available.

Documentation

No documentation available.

Children

  • openingPounds: <regexPoundDelimiter>?
  • openingSlash: /
  • regex: <regexLiteralPattern>
  • closingSlash: /
  • closingPounds: <regexPoundDelimiter>?

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class RepeatStmtSyntax(json: Value) extends StmtSyntax, WithCodeBlock

No documentation available.

Documentation

No documentation available.

Children

  • repeatKeyword: repeat
  • body: CodeBlockSyntax
  • whileKeyword: while
  • condition: ExprSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait StmtSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ReturnClauseSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ReturnStmtSyntax(json: Value) extends StmtSyntax

No documentation available.

Documentation

No documentation available.

Children

  • returnKeyword: return
  • expression: ExprSyntax?

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait StmtSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class SameTypeRequirementSyntax(json: Value) extends Syntax

No documentation available.

Documentation

No documentation available.

Children

  • leftType: TypeSyntax
  • equal: (<binaryOperator> | <prefixOperator> | <postfixOperator>)
  • rightType: TypeSyntax

Contained in

  • GenericRequirementSyntax.GenericRequirementSyntax/requirement

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class SequenceExprSyntax(json: Value) extends ExprSyntax

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 Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class SimpleStringLiteralExprSyntax(json: Value) extends ExprSyntax

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 Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class SimpleStringLiteralSegmentListSyntax(json: Value) extends SyntaxCollection

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 Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class SimpleTypeSpecifierSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class SomeOrAnyTypeSyntax(json: Value) extends TypeSyntax

No documentation available.

Documentation

No documentation available.

Children

  • someOrAnySpecifier: (some | any)
  • constraint: TypeSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait TypeSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class SourceFileSyntax(json: Value) extends Syntax, WithStatements

No documentation available.

Documentation

No documentation available.

Children

  • shebang: <shebang>?
  • statements: CodeBlockItemListSyntax
  • endOfFileToken: ``

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show 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 Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class SpecializeAvailabilityArgumentSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all

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 Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
sealed trait StmtSyntax extends SwiftNode

Attributes

Supertypes
trait SwiftNode
class Object
trait Matchable
class Any
Known subtypes
case class StringLiteralExprSyntax(json: Value) extends ExprSyntax

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 Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class StringLiteralSegmentListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

(StringSegmentSyntax | ExpressionSegmentSyntax) *

Contained in

  • StringLiteralExprSyntax.StringLiteralExprSyntax/segments

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class StringSegmentSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all

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 Serializable
trait Product
trait Equals
trait NamedDecl
trait DeclGroup
trait DeclSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class SubscriptCallExprSyntax(json: Value) extends ExprSyntax

No documentation available.

Documentation

No documentation available.

Children

  • calledExpression: ExprSyntax
  • leftSquare: [
  • arguments: LabeledExprListSyntax
  • rightSquare: ]
  • trailingClosure: ClosureExprSyntax?
  • additionalTrailingClosures: MultipleTrailingClosureElementListSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show 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 Serializable
trait Product
trait Equals
trait DeclSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class SuperExprSyntax(json: Value) extends ExprSyntax

No documentation available.

Documentation

No documentation available.

Children

  • superKeyword: super

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class SuppressedTypeSyntax(json: Value) extends TypeSyntax

No documentation available.

Documentation

No documentation available.

Children

  • withoutTilde: <prefixOperator>
  • type: TypeSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait TypeSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
sealed trait SwiftNode

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait DeclSyntax
trait ExprSyntax
class AsExprSyntax
class DoExprSyntax
class IfExprSyntax
class IsExprSyntax
trait StmtSyntax
class DoStmtSyntax
trait SwiftToken
class arrow
class atSign
class backslash
class backtick
class colon
class comma
class ellipsis
class endOfFile
class equal
class floatLiteral
class identifier
class keyword
class leftAngle
class leftBrace
class leftParen
class leftSquare
class period
class pound
class poundElse
class poundElseif
class poundEndif
class poundIf
class regexSlash
class rightAngle
class rightBrace
class rightParen
class rightSquare
class semicolon
class shebang
class singleQuote
class stringQuote
class unknown
class wildcard
trait Syntax
class TokenSyntax
trait TypeSyntax
Show all
sealed trait SwiftToken extends SwiftNode

Attributes

Supertypes
trait SwiftNode
class Object
trait Matchable
class Any
Known subtypes
case class SwitchCaseItemListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

SwitchCaseItemSyntax *

Contained in

  • SwitchCaseLabelSyntax.SwitchCaseLabelSyntax/caseItems

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class SwitchCaseItemSyntax(json: Value) extends Syntax, WithTrailingComma

No documentation available.

Documentation

No documentation available.

Children

  • pattern: PatternSyntax
  • whereClause: WhereClauseSyntax?
  • trailingComma: ,?

Contained in

  • SwitchCaseItemListSyntax

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class SwitchCaseLabelSyntax(json: Value) extends Syntax

No documentation available.

Documentation

No documentation available.

Children

  • caseKeyword: case
  • caseItems: SwitchCaseItemListSyntax
  • colon: :

Contained in

  • SwitchCaseSyntax.SwitchCaseSyntax/label

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class SwitchCaseListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

(SwitchCaseSyntax | IfConfigDeclSyntax) *

Contained in

  • IfConfigClauseSyntax.IfConfigClauseSyntax/elements
  • SwitchExprSyntax.SwitchExprSyntax/cases

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class SwitchCaseSyntax(json: Value) extends Syntax, WithStatements

No documentation available.

Documentation

No documentation available.

Children

  • attribute: AttributeSyntax?
  • label: (SwitchDefaultLabelSyntax | SwitchCaseLabelSyntax)
  • statements: CodeBlockItemListSyntax

Contained in

  • SwitchCaseListSyntax

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class SwitchDefaultLabelSyntax(json: Value) extends Syntax

No documentation available.

Documentation

No documentation available.

Children

  • defaultKeyword: default
  • colon: :

Contained in

  • SwitchCaseSyntax.SwitchCaseSyntax/label

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class SwitchExprSyntax(json: Value) extends ExprSyntax, Braced

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 Serializable
trait Product
trait Equals
trait Braced
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
sealed trait Syntax extends SwiftNode

Attributes

Supertypes
trait SwiftNode
class Object
trait Matchable
class Any
Known subtypes
class TokenSyntax
Show all
sealed trait SyntaxCollection extends SwiftNode

Attributes

Supertypes
trait SwiftNode
class Object
trait Matchable
class Any
Known subtypes
Show all
case class TernaryExprSyntax(json: Value) extends ExprSyntax

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 an UnresolvedTernaryExprSyntax.

Children

  • condition: ExprSyntax
  • questionMark: ?
  • thenExpression: ExprSyntax
  • colon: :
  • elseExpression: ExprSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ThenStmtSyntax(json: Value) extends StmtSyntax

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 Serializable
trait Product
trait Equals
trait StmtSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ThrowStmtSyntax(json: Value) extends StmtSyntax

No documentation available.

Documentation

No documentation available.

Children

  • throwKeyword: throw
  • expression: ExprSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait StmtSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ThrowsClauseSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class TokenSyntax(json: Value) extends Syntax

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class TryExprSyntax(json: Value) extends ExprSyntax

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 Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class TupleExprSyntax(json: Value) extends ExprSyntax, Parenthesized

No documentation available.

Documentation

No documentation available.

Children

  • leftParen: (
  • elements: LabeledExprListSyntax
  • rightParen: )

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class TuplePatternElementListSyntax(json: Value) extends SyntaxCollection

A list of TuplePatternElementSyntax.

Documentation

A list of TuplePatternElementSyntax.

Children

TuplePatternElementSyntax *

Contained in

  • TuplePatternSyntax.TuplePatternSyntax/elements

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class TuplePatternElementSyntax(json: Value) extends Syntax, WithTrailingComma

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 Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class TuplePatternSyntax(json: Value) extends PatternSyntax, Parenthesized

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 Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class TupleTypeElementListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

TupleTypeElementSyntax *

Contained in

  • FunctionTypeSyntax.FunctionTypeSyntax/parameters
  • TupleTypeSyntax.TupleTypeSyntax/elements

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class TupleTypeElementSyntax(json: Value) extends Syntax, WithTrailingComma

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 Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class TupleTypeSyntax(json: Value) extends TypeSyntax, Parenthesized

No documentation available.

Documentation

No documentation available.

Children

  • leftParen: (
  • elements: TupleTypeElementListSyntax
  • rightParen: )

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait TypeSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show 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 Serializable
trait Product
trait Equals
trait NamedDecl
trait DeclSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class TypeAnnotationSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class TypeEffectSpecifiersSyntax(json: Value) extends Syntax, EffectSpecifiers

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 Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class TypeExprSyntax(json: Value) extends ExprSyntax

No documentation available.

Documentation

No documentation available.

Children

  • type: TypeSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class TypeInitializerClauseSyntax(json: Value) extends Syntax

No documentation available.

Documentation

No documentation available.

Children

  • equal: =
  • value: TypeSyntax

Contained in

  • AssociatedTypeDeclSyntax.AssociatedTypeDeclSyntax/initializer
  • TypeAliasDeclSyntax.TypeAliasDeclSyntax/initializer

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class TypeSpecifierListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

(SimpleTypeSpecifierSyntax | LifetimeTypeSpecifierSyntax) *

Contained in

  • AttributedTypeSyntax.AttributedTypeSyntax/specifiers

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class UnavailableFromAsyncAttributeArgumentsSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class UnderscorePrivateAttributeArgumentsSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class UnexpectedNodesSyntax(json: Value) extends SyntaxCollection

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 Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class UnresolvedAsExprSyntax(json: Value) extends ExprSyntax

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 an UnresolvedAsExprSyntax. After operator folding using the SwiftOperators library, this gets translated to an AsExprSyntax.

Children

  • asKeyword: as
  • questionOrExclamationMark: (? | !)?

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class UnresolvedIsExprSyntax(json: Value) extends ExprSyntax

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 an UnresolvedIsExprSyntax. After operator folding using the SwiftOperators library, this gets translated to an IsExprSyntax.

Children

  • isKeyword: is

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class UnresolvedTernaryExprSyntax(json: Value) extends ExprSyntax

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 the SwiftOperators library, this gets translated to an TernaryExprSyntax.

Children

  • questionMark: ?
  • thenExpression: ExprSyntax
  • colon: :

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ExprSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ValueBindingPatternSyntax(json: Value) extends PatternSyntax

No documentation available.

Documentation

No documentation available.

Children

  • bindingSpecifier: (let | var | inout | _mutating | _borrowing | _consuming)
  • pattern: PatternSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class VariableDeclSyntax(json: Value) extends DeclSyntax, WithAttributes, WithModifiers

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 Serializable
trait Product
trait Equals
trait DeclSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class VersionComponentListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

VersionComponentSyntax *

Contained in

  • VersionTupleSyntax.VersionTupleSyntax/components

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class VersionComponentSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class VersionTupleSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class WhereClauseSyntax(json: Value) extends Syntax

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
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class WhileStmtSyntax(json: Value) extends StmtSyntax, WithCodeBlock

No documentation available.

Documentation

No documentation available.

Children

  • whileKeyword: while
  • conditions: ConditionElementListSyntax
  • body: CodeBlockSyntax

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait StmtSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class WildcardPatternSyntax(json: Value) extends PatternSyntax

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 Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
sealed trait WithCodeBlock

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
sealed trait WithGenericParameters

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
sealed trait WithOptionalCodeBlock

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
sealed trait WithStatements

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class YieldStmtSyntax(json: Value) extends StmtSyntax

No documentation available.

Documentation

No documentation available.

Children

  • yieldKeyword: yield
  • yieldedExpressions: (YieldedExpressionsClauseSyntax | ExprSyntax)

Nowhere contained in

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait StmtSyntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class YieldedExpressionListSyntax(json: Value) extends SyntaxCollection

No documentation available.

Documentation

No documentation available.

Children

YieldedExpressionSyntax *

Contained in

  • YieldedExpressionsClauseSyntax.YieldedExpressionsClauseSyntax/elements

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class YieldedExpressionSyntax(json: Value) extends Syntax

No documentation available.

Documentation

No documentation available.

Children

  • expression: ExprSyntax
  • comma: ,?

Contained in

  • YieldedExpressionListSyntax

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class YieldedExpressionsClauseSyntax(json: Value) extends Syntax

No documentation available.

Documentation

No documentation available.

Children

  • leftParen: (
  • elements: YieldedExpressionListSyntax
  • rightParen: )

Contained in

  • YieldStmtSyntax.YieldStmtSyntax/yieldedExpressions

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Syntax
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class arrow(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class atSign(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class backslash(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class backtick(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class binaryOperator(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class colon(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class comma(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class dollarIdentifier(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class ellipsis(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class endOfFile(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class equal(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class exclamationMark(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class floatLiteral(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class identifier(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class infixQuestionMark(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class integerLiteral(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class keyword(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class leftAngle(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class leftBrace(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class leftParen(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class leftSquare(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class multilineStringQuote(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class period(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class postfixOperator(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class postfixQuestionMark(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class pound(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class poundAvailable(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class poundElse(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class poundElseif(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class poundEndif(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class poundIf(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class poundSourceLocation(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class poundUnavailable(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class prefixAmpersand(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class prefixOperator(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class rawStringPoundDelimiter(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class regexLiteralPattern(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class regexPoundDelimiter(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class regexSlash(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class rightAngle(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class rightBrace(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class rightParen(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class rightSquare(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class semicolon(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class shebang(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class singleQuote(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class stringQuote(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class stringSegment(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class unknown(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all
case class wildcard(json: Value) extends SwiftToken

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SwiftToken
trait SwiftNode
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def createSwiftNode(json: Value): SwiftNode