SwiftSyntax
import SwiftSyntax
import SwiftSyntax
func cNodeLayoutHash() -> Int
Computes a hash value that describes the layout of all C nodes which are passed as opaque values between SwiftSyntaxParser
and SwiftSyntax
. This should match the value returned by the cNodeLayoutHash
function in the SwiftSyntaxParser
module.
func + (Trivia, Trivia) -> Trivia
Concatenates two collections of Trivia
into one collection.
enum RawTokenKind
Plain token kind value, without an associated String
value.
enum RawTriviaPiece
enum SourcePresence
An indicator of whether a Syntax node was found or written in the source.
enum SyntaxClassification
enum SyntaxEnum
Enum to exhaustively switch over all different syntax nodes.
enum SyntaxFactory
enum SyntaxTreeViewMode
Specifies how missing and garbage nodes should be handled when traversing a syntax tree.
enum SyntaxVerifierError
enum SyntaxVisitorContinueKind
The enum describes how the SyntaxVistor should continue after visiting the current node.
enum TokenKind
Enumerates the kinds of tokens in the Swift language.
enum TriviaPiece
A contiguous stretch of a single kind of trivia. The constituent part of a Trivia
collection.
struct AbsolutePosition
An absolute position in a source file as text - the absolute utf8Offset from the start of the file.
struct AccessLevelModifierSyntax
struct AccessPathComponentSyntax
struct AccessPathSyntax
AccessPathSyntax
represents a collection of one or more AccessPathComponentSyntax
nodes. AccessPathSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct AccessorBlockSyntax
struct AccessorDeclSyntax
struct AccessorListSyntax
AccessorListSyntax
represents a collection of one or more AccessorDeclSyntax
nodes. AccessorListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct AccessorParameterSyntax
struct ActorDeclSyntax
struct ArrayElementListSyntax
ArrayElementListSyntax
represents a collection of one or more ArrayElementSyntax
nodes. ArrayElementListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct ArrayElementSyntax
struct ArrayExprSyntax
struct ArrayTypeSyntax
struct ArrowExprSyntax
struct AsExprSyntax
struct AsTypePatternSyntax
struct AssignmentExprSyntax
struct AssociatedtypeDeclSyntax
struct AttributeListSyntax
AttributeListSyntax
represents a collection of one or more Syntax
nodes. AttributeListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct AttributeSyntax
An @
attribute.
struct AttributedTypeSyntax
struct AvailabilityArgumentSyntax
A single argument to an @available
argument like *
, iOS 10.1
, or message: "This has been deprecated"
.
struct AvailabilityConditionSyntax
struct AvailabilityEntrySyntax
The availability argument for the _specialize attribute
struct AvailabilityLabeledArgumentSyntax
A argument to an @available
attribute that consists of a label and a value, e.g. message: "This has been deprecated"
.
struct AvailabilitySpecListSyntax
AvailabilitySpecListSyntax
represents a collection of one or more AvailabilityArgumentSyntax
nodes. AvailabilitySpecListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct AvailabilityVersionRestrictionSyntax
An argument to @available
that restricts the availability on a certain platform to a version, e.g. iOS 10
or swift 3.4
.
struct AwaitExprSyntax
struct BackDeployAttributeSpecListSyntax
A collection of arguments for the @_backDeploy
attribute
struct BackDeployVersionArgumentSyntax
A single platform/version pair in a @_backDeploy
attribute, e.g. iOS 10.1
.
struct BackDeployVersionListSyntax
BackDeployVersionListSyntax
represents a collection of one or more BackDeployVersionArgumentSyntax
nodes. BackDeployVersionListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct BinaryOperatorExprSyntax
struct BooleanLiteralExprSyntax
struct BreakStmtSyntax
struct ByteSourceRange
struct CaseItemListSyntax
CaseItemListSyntax
represents a collection of one or more CaseItemSyntax
nodes. CaseItemListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct CaseItemSyntax
struct CatchClauseListSyntax
CatchClauseListSyntax
represents a collection of one or more CatchClauseSyntax
nodes. CatchClauseListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct CatchClauseSyntax
struct CatchItemListSyntax
CatchItemListSyntax
represents a collection of one or more CatchItemSyntax
nodes. CatchItemListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct CatchItemSyntax
struct ClassDeclSyntax
struct ClassRestrictionTypeSyntax
struct ClosureCaptureItemListSyntax
ClosureCaptureItemListSyntax
represents a collection of one or more ClosureCaptureItemSyntax
nodes. ClosureCaptureItemListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct ClosureCaptureItemSyntax
struct ClosureCaptureSignatureSyntax
struct ClosureExprSyntax
struct ClosureParamListSyntax
ClosureParamListSyntax
represents a collection of one or more ClosureParamSyntax
nodes. ClosureParamListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct ClosureParamSyntax
struct ClosureSignatureSyntax
struct CodeBlockItemListSyntax
CodeBlockItemListSyntax
represents a collection of one or more CodeBlockItemSyntax
nodes. CodeBlockItemListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct CodeBlockItemSyntax
A CodeBlockItem is any Syntax node that appears on its own line inside a CodeBlock.
struct CodeBlockSyntax
struct CompositionTypeElementListSyntax
CompositionTypeElementListSyntax
represents a collection of one or more CompositionTypeElementSyntax
nodes. CompositionTypeElementListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct CompositionTypeElementSyntax
struct CompositionTypeSyntax
struct ConcurrentEdits
Edits that are applied simultaneously. That is, the offsets of all edits refer to the original string and are not shifted by previous edits. For example applying
struct ConditionElementListSyntax
ConditionElementListSyntax
represents a collection of one or more ConditionElementSyntax
nodes. ConditionElementListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct ConditionElementSyntax
struct ConformanceRequirementSyntax
struct ConstrainedSugarTypeSyntax
struct ContinueStmtSyntax
struct CustomAttributeSyntax
A custom @
attribute.
struct DeclModifierDetailSyntax
struct DeclModifierSyntax
struct DeclNameArgumentListSyntax
DeclNameArgumentListSyntax
represents a collection of one or more DeclNameArgumentSyntax
nodes. DeclNameArgumentListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct DeclNameArgumentSyntax
struct DeclNameArgumentsSyntax
struct DeclNameSyntax
struct DeclSyntax
struct DeclarationStmtSyntax
struct DeferStmtSyntax
struct DeinitializerDeclSyntax
struct DerivativeRegistrationAttributeArgumentsSyntax
The arguments for the ‘@derivative(of:)’ and ‘@transpose(of:)’ attributes: the ‘of:’ label, the original declaration name, and an optional differentiability parameter list.
struct DictionaryElementListSyntax
DictionaryElementListSyntax
represents a collection of one or more DictionaryElementSyntax
nodes. DictionaryElementListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct DictionaryElementSyntax
struct DictionaryExprSyntax
struct DictionaryTypeSyntax
struct DifferentiabilityParamListSyntax
DifferentiabilityParamListSyntax
represents a collection of one or more DifferentiabilityParamSyntax
nodes. DifferentiabilityParamListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct DifferentiabilityParamSyntax
A differentiability parameter: either the “self” identifier, a function parameter name, or a function parameter index.
struct DifferentiabilityParamsClauseSyntax
A clause containing differentiability parameters.
struct DifferentiabilityParamsSyntax
The differentiability parameters.
struct DifferentiableAttributeArgumentsSyntax
The arguments for the @differentiable
attribute: an optional differentiability kind, an optional differentiability parameter clause, and an optional ‘where’ clause.
struct DiscardAssignmentExprSyntax
struct DoStmtSyntax
struct EditorPlaceholderExprSyntax
struct ElseBlockSyntax
struct ElseIfContinuationSyntax
struct EnumCaseDeclSyntax
A case
declaration of a Swift enum
. It can have 1 or more EnumCaseElement
s inside, each declaring a different case of the enum.
struct EnumCaseElementListSyntax
A collection of 0 or more EnumCaseElement
s.
struct EnumCaseElementSyntax
An element of an enum case, containing the name of the case and, optionally, either associated values or an assignment to a raw value.
struct EnumCasePatternSyntax
struct EnumDeclSyntax
A Swift enum
declaration.
struct ExprListSyntax
A list of expressions connected by operators. This list is contained by a SequenceExprSyntax
.
struct ExprSyntax
struct ExpressionPatternSyntax
struct ExpressionSegmentSyntax
struct ExpressionStmtSyntax
struct ExtensionDeclSyntax
struct FallthroughStmtSyntax
struct FloatLiteralExprSyntax
struct ForInStmtSyntax
struct ForcedValueExprSyntax
struct FunctionCallExprSyntax
struct FunctionDeclNameSyntax
A function declaration name (e.g. foo(_:_:)
).
struct FunctionDeclSyntax
struct FunctionParameterListSyntax
FunctionParameterListSyntax
represents a collection of one or more FunctionParameterSyntax
nodes. FunctionParameterListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct FunctionParameterSyntax
struct FunctionSignatureSyntax
struct FunctionTypeSyntax
struct GarbageNodesSyntax
A collection of syntax nodes that occurred in the source code but could not be used to form a valid syntax tree.
struct GenericArgumentClauseSyntax
struct GenericArgumentListSyntax
GenericArgumentListSyntax
represents a collection of one or more GenericArgumentSyntax
nodes. GenericArgumentListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct GenericArgumentSyntax
struct GenericParameterClauseSyntax
struct GenericParameterListSyntax
GenericParameterListSyntax
represents a collection of one or more GenericParameterSyntax
nodes. GenericParameterListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct GenericParameterSyntax
struct GenericRequirementListSyntax
GenericRequirementListSyntax
represents a collection of one or more GenericRequirementSyntax
nodes. GenericRequirementListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct GenericRequirementSyntax
struct GenericWhereClauseSyntax
struct GuardStmtSyntax
struct IdentifierExprSyntax
struct IdentifierListSyntax
IdentifierListSyntax
represents a collection of one or more TokenSyntax
nodes. IdentifierListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct IdentifierPatternSyntax
struct IfConfigClauseListSyntax
IfConfigClauseListSyntax
represents a collection of one or more IfConfigClauseSyntax
nodes. IfConfigClauseListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct IfConfigClauseSyntax
struct IfConfigDeclSyntax
struct IfStmtSyntax
struct ImplementsAttributeArgumentsSyntax
The arguments for the @_implements
attribute of the form Type, methodName(arg1Label:arg2Label:)
struct ImplicitlyUnwrappedOptionalTypeSyntax
struct ImportDeclSyntax
struct InOutExprSyntax
struct IncrementalParseLookup
Provides a mechanism for the parser to skip regions of an incrementally updated source that was already parsed during a previous parse invocation.
struct InfixOperatorExprSyntax
struct InheritedTypeListSyntax
InheritedTypeListSyntax
represents a collection of one or more InheritedTypeSyntax
nodes. InheritedTypeListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct InheritedTypeSyntax
struct InitializerClauseSyntax
struct InitializerDeclSyntax
struct IntegerLiteralExprSyntax
struct IsExprSyntax
struct IsTypePatternSyntax
struct KeyPathBaseExprSyntax
struct KeyPathExprSyntax
struct LabeledSpecializeEntrySyntax
A labeled argument for the @_specialize
attribute like exported: true
struct LabeledStmtSyntax
struct LayoutRequirementSyntax
struct MatchingPatternConditionSyntax
struct MemberAccessExprSyntax
struct MemberDeclBlockSyntax
struct MemberDeclListItemSyntax
A member declaration of a type consisting of a declaration and an optional semicolon;
struct MemberDeclListSyntax
MemberDeclListSyntax
represents a collection of one or more MemberDeclListItemSyntax
nodes. MemberDeclListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct MemberTypeIdentifierSyntax
struct MetatypeTypeSyntax
struct MissingDeclSyntax
struct MissingExprSyntax
struct MissingPatternSyntax
struct MissingStmtSyntax
struct MissingSyntax
struct MissingTypeSyntax
struct ModifierListSyntax
ModifierListSyntax
represents a collection of one or more DeclModifierSyntax
nodes. ModifierListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct MoveExprSyntax
struct MultipleTrailingClosureElementListSyntax
MultipleTrailingClosureElementListSyntax
represents a collection of one or more MultipleTrailingClosureElementSyntax
nodes. MultipleTrailingClosureElementListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct MultipleTrailingClosureElementSyntax
struct NamedAttributeStringArgumentSyntax
The argument for the @_dynamic_replacement
or @_private
attribute of the form for: "function()"
or sourceFile: "Src.swift"
struct NilLiteralExprSyntax
struct NonEmptyTokenListSyntax
NonEmptyTokenListSyntax
represents a collection of one or more TokenSyntax
nodes. NonEmptyTokenListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct ObjCSelectorPieceSyntax
A piece of an Objective-C selector. Either consisting of just an identifier for a nullary selector, an identifier and a colon for a labeled argument or just a colon for an unlabeled argument
struct ObjCSelectorSyntax
ObjCSelectorSyntax
represents a collection of one or more ObjCSelectorPieceSyntax
nodes. ObjCSelectorSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct ObjcKeyPathExprSyntax
struct ObjcNamePieceSyntax
struct ObjcNameSyntax
ObjcNameSyntax
represents a collection of one or more ObjcNamePieceSyntax
nodes. ObjcNameSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct ObjcSelectorExprSyntax
struct ObjectLiteralExprSyntax
struct OperatorDeclSyntax
A Swift operator
declaration.
struct OperatorPrecedenceAndTypesSyntax
A clause to specify precedence group in infix operator declarations, and designated types in any operator declaration.
struct OptionalBindingConditionSyntax
struct OptionalChainingExprSyntax
struct OptionalPatternSyntax
struct OptionalTypeSyntax
struct ParameterClauseSyntax
struct PatternBindingListSyntax
PatternBindingListSyntax
represents a collection of one or more PatternBindingSyntax
nodes. PatternBindingListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct PatternBindingSyntax
struct PatternSyntax
struct PostfixIfConfigExprSyntax
struct PostfixUnaryExprSyntax
struct PoundAssertStmtSyntax
struct PoundColumnExprSyntax
struct PoundDsohandleExprSyntax
struct PoundErrorDeclSyntax
struct PoundFileExprSyntax
struct PoundFileIDExprSyntax
struct PoundFilePathExprSyntax
struct PoundFunctionExprSyntax
struct PoundLineExprSyntax
struct PoundSourceLocationArgsSyntax
struct PoundSourceLocationSyntax
struct PoundWarningDeclSyntax
struct PrecedenceGroupAssignmentSyntax
Specifies the precedence of an operator when used in an operation that includes optional chaining.
struct PrecedenceGroupAssociativitySyntax
Specifies how a sequence of operators with the same precedence level are grouped together in the absence of grouping parentheses.
struct PrecedenceGroupAttributeListSyntax
PrecedenceGroupAttributeListSyntax
represents a collection of one or more Syntax
nodes. PrecedenceGroupAttributeListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct PrecedenceGroupDeclSyntax
A Swift precedencegroup
declaration.
struct PrecedenceGroupNameElementSyntax
struct PrecedenceGroupNameListSyntax
PrecedenceGroupNameListSyntax
represents a collection of one or more PrecedenceGroupNameElementSyntax
nodes. PrecedenceGroupNameListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct PrecedenceGroupRelationSyntax
Specify the new precedence group’s relation to existing precedence groups.
struct PrefixOperatorExprSyntax
struct PrimaryAssociatedTypeClauseSyntax
struct PrimaryAssociatedTypeListSyntax
PrimaryAssociatedTypeListSyntax
represents a collection of one or more PrimaryAssociatedTypeSyntax
nodes. PrimaryAssociatedTypeListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct PrimaryAssociatedTypeSyntax
struct ProtocolDeclSyntax
struct QualifiedDeclNameSyntax
An optionally qualified function declaration name (e.g. +(_:_:)
, A.B.C.foo(_:_:)
).
struct RawAccessLevelModifierSyntax
struct RawAccessPathComponentSyntax
struct RawAccessPathSyntax
struct RawAccessorBlockSyntax
struct RawAccessorDeclSyntax
struct RawAccessorListSyntax
struct RawAccessorParameterSyntax
struct RawActorDeclSyntax
struct RawArrayElementListSyntax
struct RawArrayElementSyntax
struct RawArrayExprSyntax
struct RawArrayTypeSyntax
struct RawArrowExprSyntax
struct RawAsExprSyntax
struct RawAsTypePatternSyntax
struct RawAssignmentExprSyntax
struct RawAssociatedtypeDeclSyntax
struct RawAttributeListSyntax
struct RawAttributeSyntax
struct RawAttributedTypeSyntax
struct RawAvailabilityArgumentSyntax
struct RawAvailabilityConditionSyntax
struct RawAvailabilityEntrySyntax
struct RawAvailabilityLabeledArgumentSyntax
struct RawAvailabilitySpecListSyntax
struct RawAvailabilityVersionRestrictionSyntax
struct RawAwaitExprSyntax
struct RawBackDeployAttributeSpecListSyntax
struct RawBackDeployVersionArgumentSyntax
struct RawBackDeployVersionListSyntax
struct RawBinaryOperatorExprSyntax
struct RawBooleanLiteralExprSyntax
struct RawBreakStmtSyntax
struct RawCaseItemListSyntax
struct RawCaseItemSyntax
struct RawCatchClauseListSyntax
struct RawCatchClauseSyntax
struct RawCatchItemListSyntax
struct RawCatchItemSyntax
struct RawClassDeclSyntax
struct RawClassRestrictionTypeSyntax
struct RawClosureCaptureItemListSyntax
struct RawClosureCaptureItemSyntax
struct RawClosureCaptureSignatureSyntax
struct RawClosureExprSyntax
struct RawClosureParamListSyntax
struct RawClosureParamSyntax
struct RawClosureSignatureSyntax
struct RawCodeBlockItemListSyntax
struct RawCodeBlockItemSyntax
struct RawCodeBlockSyntax
struct RawCompositionTypeElementListSyntax
struct RawCompositionTypeElementSyntax
struct RawCompositionTypeSyntax
struct RawConditionElementListSyntax
struct RawConditionElementSyntax
struct RawConformanceRequirementSyntax
struct RawConstrainedSugarTypeSyntax
struct RawContinueStmtSyntax
struct RawCustomAttributeSyntax
struct RawDeclModifierDetailSyntax
struct RawDeclModifierSyntax
struct RawDeclNameArgumentListSyntax
struct RawDeclNameArgumentSyntax
struct RawDeclNameArgumentsSyntax
struct RawDeclNameSyntax
struct RawDeclSyntax
struct RawDeclarationStmtSyntax
struct RawDeferStmtSyntax
struct RawDeinitializerDeclSyntax
struct RawDerivativeRegistrationAttributeArgumentsSyntax
struct RawDictionaryElementListSyntax
struct RawDictionaryElementSyntax
struct RawDictionaryExprSyntax
struct RawDictionaryTypeSyntax
struct RawDifferentiabilityParamListSyntax
struct RawDifferentiabilityParamSyntax
struct RawDifferentiabilityParamsClauseSyntax
struct RawDifferentiabilityParamsSyntax
struct RawDifferentiableAttributeArgumentsSyntax
struct RawDiscardAssignmentExprSyntax
struct RawDoStmtSyntax
struct RawEditorPlaceholderExprSyntax
struct RawElseBlockSyntax
struct RawElseIfContinuationSyntax
struct RawEnumCaseDeclSyntax
struct RawEnumCaseElementListSyntax
struct RawEnumCaseElementSyntax
struct RawEnumCasePatternSyntax
struct RawEnumDeclSyntax
struct RawExprListSyntax
struct RawExprSyntax
struct RawExpressionPatternSyntax
struct RawExpressionSegmentSyntax
struct RawExpressionStmtSyntax
struct RawExtensionDeclSyntax
struct RawFallthroughStmtSyntax
struct RawFloatLiteralExprSyntax
struct RawForInStmtSyntax
struct RawForcedValueExprSyntax
struct RawFunctionCallExprSyntax
struct RawFunctionDeclNameSyntax
struct RawFunctionDeclSyntax
struct RawFunctionParameterListSyntax
struct RawFunctionParameterSyntax
struct RawFunctionSignatureSyntax
struct RawFunctionTypeSyntax
struct RawGarbageNodesSyntax
struct RawGenericArgumentClauseSyntax
struct RawGenericArgumentListSyntax
struct RawGenericArgumentSyntax
struct RawGenericParameterClauseSyntax
struct RawGenericParameterListSyntax
struct RawGenericParameterSyntax
struct RawGenericRequirementListSyntax
struct RawGenericRequirementSyntax
struct RawGenericWhereClauseSyntax
struct RawGuardStmtSyntax
struct RawIdentifierExprSyntax
struct RawIdentifierListSyntax
struct RawIdentifierPatternSyntax
struct RawIfConfigClauseListSyntax
struct RawIfConfigClauseSyntax
struct RawIfConfigDeclSyntax
struct RawIfStmtSyntax
struct RawImplementsAttributeArgumentsSyntax
struct RawImplicitlyUnwrappedOptionalTypeSyntax
struct RawImportDeclSyntax
struct RawInOutExprSyntax
struct RawInfixOperatorExprSyntax
struct RawInheritedTypeListSyntax
struct RawInheritedTypeSyntax
struct RawInitializerClauseSyntax
struct RawInitializerDeclSyntax
struct RawIntegerLiteralExprSyntax
struct RawIsExprSyntax
struct RawIsTypePatternSyntax
struct RawKeyPathBaseExprSyntax
struct RawKeyPathExprSyntax
struct RawLabeledSpecializeEntrySyntax
struct RawLabeledStmtSyntax
struct RawLayoutRequirementSyntax
struct RawMatchingPatternConditionSyntax
struct RawMemberAccessExprSyntax
struct RawMemberDeclBlockSyntax
struct RawMemberDeclListItemSyntax
struct RawMemberDeclListSyntax
struct RawMemberTypeIdentifierSyntax
struct RawMetatypeTypeSyntax
struct RawMissingDeclSyntax
struct RawMissingExprSyntax
struct RawMissingPatternSyntax
struct RawMissingStmtSyntax
struct RawMissingSyntax
struct RawMissingTypeSyntax
struct RawModifierListSyntax
struct RawMoveExprSyntax
struct RawMultipleTrailingClosureElementListSyntax
struct RawMultipleTrailingClosureElementSyntax
struct RawNamedAttributeStringArgumentSyntax
struct RawNilLiteralExprSyntax
struct RawNonEmptyTokenListSyntax
struct RawObjCSelectorPieceSyntax
struct RawObjCSelectorSyntax
struct RawObjcKeyPathExprSyntax
struct RawObjcNamePieceSyntax
struct RawObjcNameSyntax
struct RawObjcSelectorExprSyntax
struct RawObjectLiteralExprSyntax
struct RawOperatorDeclSyntax
struct RawOperatorPrecedenceAndTypesSyntax
struct RawOptionalBindingConditionSyntax
struct RawOptionalChainingExprSyntax
struct RawOptionalPatternSyntax
struct RawOptionalTypeSyntax
struct RawParameterClauseSyntax
struct RawPatternBindingListSyntax
struct RawPatternBindingSyntax
struct RawPatternSyntax
struct RawPostfixIfConfigExprSyntax
struct RawPostfixUnaryExprSyntax
struct RawPoundAssertStmtSyntax
struct RawPoundColumnExprSyntax
struct RawPoundDsohandleExprSyntax
struct RawPoundErrorDeclSyntax
struct RawPoundFileExprSyntax
struct RawPoundFileIDExprSyntax
struct RawPoundFilePathExprSyntax
struct RawPoundFunctionExprSyntax
struct RawPoundLineExprSyntax
struct RawPoundSourceLocationArgsSyntax
struct RawPoundSourceLocationSyntax
struct RawPoundWarningDeclSyntax
struct RawPrecedenceGroupAssignmentSyntax
struct RawPrecedenceGroupAssociativitySyntax
struct RawPrecedenceGroupAttributeListSyntax
struct RawPrecedenceGroupDeclSyntax
struct RawPrecedenceGroupNameElementSyntax
struct RawPrecedenceGroupNameListSyntax
struct RawPrecedenceGroupRelationSyntax
struct RawPrefixOperatorExprSyntax
struct RawPrimaryAssociatedTypeClauseSyntax
struct RawPrimaryAssociatedTypeListSyntax
struct RawPrimaryAssociatedTypeSyntax
struct RawProtocolDeclSyntax
struct RawQualifiedDeclNameSyntax
struct RawRegexLiteralExprSyntax
struct RawRepeatWhileStmtSyntax
struct RawReturnClauseSyntax
struct RawReturnStmtSyntax
struct RawSameTypeRequirementSyntax
struct RawSequenceExprSyntax
struct RawSimpleTypeIdentifierSyntax
struct RawSourceFileSyntax
struct RawSpecializeAttributeSpecListSyntax
struct RawSpecializeExprSyntax
struct RawStmtSyntax
struct RawStringLiteralExprSyntax
struct RawStringLiteralSegmentsSyntax
struct RawStringSegmentSyntax
struct RawStructDeclSyntax
struct RawSubscriptDeclSyntax
struct RawSubscriptExprSyntax
struct RawSuperRefExprSyntax
struct RawSwitchCaseLabelSyntax
struct RawSwitchCaseListSyntax
struct RawSwitchCaseSyntax
struct RawSwitchDefaultLabelSyntax
struct RawSwitchStmtSyntax
struct RawSymbolicReferenceExprSyntax
struct RawSyntax
struct RawTargetFunctionEntrySyntax
struct RawTernaryExprSyntax
struct RawThrowStmtSyntax
struct RawTokenListSyntax
struct RawTokenSyntax
struct RawTryExprSyntax
struct RawTupleExprElementListSyntax
struct RawTupleExprElementSyntax
struct RawTupleExprSyntax
struct RawTuplePatternElementListSyntax
struct RawTuplePatternElementSyntax
struct RawTuplePatternSyntax
struct RawTupleTypeElementListSyntax
struct RawTupleTypeElementSyntax
struct RawTupleTypeSyntax
struct RawTypeAnnotationSyntax
struct RawTypeExprSyntax
struct RawTypeInheritanceClauseSyntax
struct RawTypeInitializerClauseSyntax
struct RawTypeSyntax
struct RawTypealiasDeclSyntax
struct RawUnavailabilityConditionSyntax
struct RawUnknownDeclSyntax
struct RawUnknownExprSyntax
struct RawUnknownPatternSyntax
struct RawUnknownStmtSyntax
struct RawUnknownTypeSyntax
struct RawUnresolvedPatternExprSyntax
struct RawValueBindingPatternSyntax
struct RawVariableDeclSyntax
struct RawVersionTupleSyntax
struct RawWhereClauseSyntax
struct RawWhileStmtSyntax
struct RawWildcardPatternSyntax
struct RawYieldListSyntax
struct RawYieldStmtSyntax
struct RegexLiteralExprSyntax
struct RepeatWhileStmtSyntax
struct ReturnClauseSyntax
struct ReturnStmtSyntax
struct ReversedTokenSequence
Reverse sequence of tokens that are part of the provided Syntax node.
struct SameTypeRequirementSyntax
struct SequenceExprSyntax
struct SimpleTypeIdentifierSyntax
struct SourceEdit
struct SourceFileSyntax
struct SourceLength
The length a syntax node spans in the source code. From any AbsolutePosition you reach a node’s end location by adding its UTF-8 length.
struct SourceLocation
Represents a source location in a Swift file.
struct SourceRange
Represents a start and end location in a Swift file.
struct SpecializeAttributeSpecListSyntax
A collection of arguments for the @_specialize
attribute
struct SpecializeExprSyntax
struct StmtSyntax
struct StringLiteralExprSyntax
struct StringLiteralSegmentsSyntax
StringLiteralSegmentsSyntax
represents a collection of one or more Syntax
nodes. StringLiteralSegmentsSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct StringSegmentSyntax
struct StructDeclSyntax
struct SubscriptDeclSyntax
struct SubscriptExprSyntax
struct SuperRefExprSyntax
struct SwitchCaseLabelSyntax
struct SwitchCaseListSyntax
SwitchCaseListSyntax
represents a collection of one or more Syntax
nodes. SwitchCaseListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct SwitchCaseSyntax
struct SwitchDefaultLabelSyntax
struct SwitchStmtSyntax
struct SymbolicReferenceExprSyntax
struct Syntax
A Syntax node represents a tree of nodes with tokens at the leaves. Each node has accessors for its known children, and allows efficient iteration over the children through its children
property.
struct SyntaxChildren
Collection that contains the present child Syntax
nodes of the given node.
struct SyntaxChildrenIndex
An index in a syntax children collection.
struct SyntaxChildrenIndexData
The data for an index in a syntax children collection that is not the end index. See SyntaxChildrenIndex
for the representation of the end index.
struct SyntaxClassifications
Provides a sequence of SyntaxClassifiedRange
s for a syntax node.
struct SyntaxClassifiedRange
Represents a source range that is associated with a syntax classification.
struct SyntaxIdentifier
Provides a stable and unique identity for Syntax
nodes.
struct SyntaxNode
Represents a node from the syntax tree.
struct SyntaxText
struct TargetFunctionEntrySyntax
A labeled argument for the @_specialize
attribute with a function decl value like target: myFunc(_:)
struct TernaryExprSyntax
struct ThrowStmtSyntax
struct TokenListSyntax
TokenListSyntax
represents a collection of one or more TokenSyntax
nodes. TokenListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct TokenSequence
Sequence of tokens that are part of the provided Syntax node.
struct TokenSyntax
A Syntax node representing a single token.
struct Trivia
A collection of leading or trailing trivia. This is the main data structure for thinking about trivia.
struct TryExprSyntax
struct TupleExprElementListSyntax
TupleExprElementListSyntax
represents a collection of one or more TupleExprElementSyntax
nodes. TupleExprElementListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct TupleExprElementSyntax
struct TupleExprSyntax
struct TuplePatternElementListSyntax
TuplePatternElementListSyntax
represents a collection of one or more TuplePatternElementSyntax
nodes. TuplePatternElementListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct TuplePatternElementSyntax
struct TuplePatternSyntax
struct TupleTypeElementListSyntax
TupleTypeElementListSyntax
represents a collection of one or more TupleTypeElementSyntax
nodes. TupleTypeElementListSyntax behaves as a regular Swift collection, and has accessors that return new versions of the collection with different children.
struct TupleTypeElementSyntax
struct TupleTypeSyntax
struct TypeAnnotationSyntax
struct TypeExprSyntax
struct TypeInheritanceClauseSyntax
struct TypeInitializerClauseSyntax
struct TypeSyntax
struct TypealiasDeclSyntax
struct UnavailabilityConditionSyntax
struct UnknownDeclSyntax
struct UnknownExprSyntax
struct UnknownPatternSyntax
struct UnknownStmtSyntax
struct UnknownSyntax
A wrapper around a raw Syntax layout.
struct UnknownTypeSyntax
struct UnresolvedPatternExprSyntax
struct ValueBindingPatternSyntax
struct VariableDeclSyntax
struct VersionTupleSyntax
A version number of the form major.minor.patch in which the minor and patch part may be omitted.
struct WhereClauseSyntax
struct WhileStmtSyntax
struct WildcardPatternSyntax
struct YieldListSyntax
struct YieldStmtSyntax
class BumpPtrAllocator
class IncrementalParseReusedNodeCollector
An implementation of IncrementalParseReusedNodeDelegate
that just collects the range and re-used node into an array.
class IncrementalParseTransition
Keeps track of a previously parsed syntax tree and the source edits that occurred since it was created.
class SourceLocationConverter
Converts AbsolutePosition
s of syntax nodes to SourceLocation
s, and vice-versa. The AbsolutePosition
s must be originating from nodes that are part of the same tree that was used to initialize this class.
class SyntaxAnyVisitor
A SyntaxVisitor
that can visit the nodes as generic Syntax
values.
class SyntaxArena
class SyntaxRewriter
class SyntaxVerifier
Verifier to check that there are no unknown syntax nodes in the tree.
class SyntaxVisitor
protocol BracedSyntax
protocol DeclGroupSyntax
protocol DeclSyntaxProtocol
Protocol to which all DeclSyntax
nodes conform. Extension point to add common methods to all DeclSyntax
nodes. DO NOT CONFORM TO THIS PROTOCOL YOURSELF!
protocol ExprSyntaxProtocol
Protocol to which all ExprSyntax
nodes conform. Extension point to add common methods to all ExprSyntax
nodes. DO NOT CONFORM TO THIS PROTOCOL YOURSELF!
protocol IdentifiedDeclSyntax
protocol IncrementalParseReusedNodeDelegate
Accepts the re-used Syntax
nodes that IncrementalParseTransition
determined they should be re-used for a parse invocation.
protocol ParenthesizedSyntax
protocol PatternSyntaxProtocol
Protocol to which all PatternSyntax
nodes conform. Extension point to add common methods to all PatternSyntax
nodes. DO NOT CONFORM TO THIS PROTOCOL YOURSELF!
protocol RawDeclSyntaxNodeProtocol
protocol RawExprSyntaxNodeProtocol
protocol RawPatternSyntaxNodeProtocol
protocol RawStmtSyntaxNodeProtocol
protocol RawSyntaxNodeProtocol
protocol RawTypeSyntaxNodeProtocol
protocol StmtSyntaxProtocol
Protocol to which all StmtSyntax
nodes conform. Extension point to add common methods to all StmtSyntax
nodes. DO NOT CONFORM TO THIS PROTOCOL YOURSELF!
protocol SyntaxCollection
protocol SyntaxHashable
Protocol that provides a common Hashable implementation for all syntax nodes
protocol SyntaxProtocol
Provide common functionality for specialized syntax nodes. Extend this protocol to provide common functionality for all syntax nodes. DO NOT CONFORM TO THIS PROTOCOL YOURSELF!
protocol TypeSyntaxProtocol
Protocol to which all TypeSyntax
nodes conform. Extension point to add common methods to all TypeSyntax
nodes. DO NOT CONFORM TO THIS PROTOCOL YOURSELF!
protocol WithCodeBlockSyntax
protocol WithStatementsSyntax
protocol WithTrailingCommaSyntax