Enumerationswift-syntax 600.0.1SwiftSyntax
SyntaxNodeStructure
Describes the statically allowed structure of a syntax tree node.
enum SyntaxNodeStructure
Describes the statically allowed structure of a syntax tree node.
enum SyntaxNodeStructure
import SwiftSyntax
A library for working with Swift code.
case layout([AnyKeyPath & Sendable])
The node contains a fixed number of children which can be accessed by these key paths.
case collection(SyntaxProtocol.Type)
The node is a SyntaxCollection
of the given type.
case choices([SyntaxChoice])
The node can contain a single node with one of the listed types.
protocol Sendable
var isChoices: Bool { get }
Convenience property that’s true
if self
is the choices
case.
var isCollection: Bool { get }
Convenience property that’s true
if self
is the collection
case.
var isLayout: Bool { get }
Convenience property that’s true
if self
is the layout
case.
enum SyntaxChoice