Library Moduleswift-syntax 510.0.3SwiftSyntax

    SwiftSyntax

    A library for working with Swift code.

    SwiftSyntax.md
    import SwiftSyntax

    Module information

    Declarations
    11489
    Symbols
    48707

    Coverage

    23.9 percent of the declarations in SwiftSyntax are fully documented49.3 percent of the declarations in SwiftSyntax are indirectly documented26.8 percent of the declarations in SwiftSyntax are completely undocumented

    Declarations

    0 percent of the declarations in SwiftSyntax are global functions or variables0.2 percent of the declarations in SwiftSyntax are operators28.3 percent of the declarations in SwiftSyntax are initializers, type members, or enum cases59.0 percent of the declarations in SwiftSyntax are instance members0 percent of the declarations in SwiftSyntax are instance subscripts0.3 percent of the declarations in SwiftSyntax are protocols2.8 percent of the declarations in SwiftSyntax are protocol requirements2.6 percent of the declarations in SwiftSyntax are default implementations5.6 percent of the declarations in SwiftSyntax are structures0 percent of the declarations in SwiftSyntax are classes1.1 percent of the declarations in SwiftSyntax are typealiases

    Interfaces

    58.6 percent of the declarations in SwiftSyntax are unrestricted3.2 percent of the declarations in SwiftSyntax are underscored38.3 percent of the declarations in SwiftSyntax are SPI (unknown)
    Module stats and coverage details

    Overview

    SwiftSyntax is a source accurate tree representation of Swift source code. It allows Swift tools to parse, inspect, generate, and transform Swift source code.

    Articles

    Tutorials

    Contributing

    These articles are intended for developers wishing to contribute to SwiftSyntax

    Syntax

    • 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.

    • protocol SyntaxCollection

    Trivia

    Tokens

    Syntax Visitors

    Declarations

    Expressions

    Patterns

    Statements

    Types

    Collections

    Attributes

    Miscellaneous Syntax

    Traits

    Syntax Position

    Internals

    Uncategorized

    Protocols

    Show implementation details (6)

    Hide implementation details

    • protocol _LeafDeclSyntaxNodeProtocol

      Protocol that syntax nodes conform to if they don’t have any semantic subtypes. These are syntax nodes that are not considered base nodes for other syntax types.

    • protocol _LeafExprSyntaxNodeProtocol

      Protocol that syntax nodes conform to if they don’t have any semantic subtypes. These are syntax nodes that are not considered base nodes for other syntax types.

    • protocol _LeafPatternSyntaxNodeProtocol

      Protocol that syntax nodes conform to if they don’t have any semantic subtypes. These are syntax nodes that are not considered base nodes for other syntax types.

    • protocol _LeafStmtSyntaxNodeProtocol

      Protocol that syntax nodes conform to if they don’t have any semantic subtypes. These are syntax nodes that are not considered base nodes for other syntax types.

    • protocol _LeafSyntaxNodeProtocol

      Protocol that syntax nodes conform to if they don’t have any semantic subtypes. These are syntax nodes that are not considered base nodes for other syntax types.

    • protocol _LeafTypeSyntaxNodeProtocol

      Protocol that syntax nodes conform to if they don’t have any semantic subtypes. These are syntax nodes that are not considered base nodes for other syntax types.

    Show system interfaces (7)

    Hide system interfaces

    Types

    Show system interfaces (291)

    Hide system interfaces

    Typealiases

    Show obsolete interfaces (68)

    Hide obsolete interfaces

    Show system interfaces (1)

    Hide system interfaces

    Globals

    Show system interfaces (1)

    Hide system interfaces

    Other modules