Library Moduleswift-syntax 601.0.1SwiftSyntax

SwiftSyntax

A library for working with Swift code.

SwiftSyntax.md
import SwiftSyntax

Module information

Declarations
11688
Symbols
51141

Coverage

24.7 percent of the declarations in SwiftSyntax are fully documented48.9 percent of the declarations in SwiftSyntax are indirectly documented26.4 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 operators30.1 percent of the declarations in SwiftSyntax are initializers, type members, or enum cases61.8 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 protocols0.4 percent of the declarations in SwiftSyntax are protocol requirements0.2 percent of the declarations in SwiftSyntax are default implementations5.8 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

61.5 percent of the declarations in SwiftSyntax are unrestricted3.6 percent of the declarations in SwiftSyntax are underscored35.0 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

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