Node
public protocol Node : Decodable, Encodable, Sendable
A protocol describing the API of an AST node.
-
The site from which
selfwas parsed.Declaration
Swift
var site: SourceRange { get } -
validateForm(in:Default implementationreportingDiagnosticsTo: ) Reports any well-formedness violations of
selfintolog.Default Implementation
Reports any well-formedness violations of
selfintolog.Declaration
Swift
func validateForm(in ast: AST, reportingDiagnosticsTo log: inout DiagnosticSet) -
IDExtension methodThe identity of a node with this type.
Declaration
Swift
public typealias ID = NodeID<Self> -
kindExtension methodA unique identifier denoting the type of this node.
Declaration
Swift
static var kind: NodeKind { get }
View on GitHub