NodeID
public struct NodeID<Subject> : ConcreteNodeID where Subject : Node
extension NodeID: DeclID where Subject: Decl
extension NodeID: ExprID where Subject: Expr
extension NodeID: PatternID where Subject: Pattern
extension NodeID: ScopeID where Subject: LexicalScope
extension NodeID: StmtID where Subject: Stmt
The ID of a node in an AST.
-
Declaration
Swift
public let rawValue: NodeRawIdentity -
The dynamic type of node being referred to.
Declaration
Swift
public var kind: NodeKind { get } -
Creates an instance with the same raw value as
xfailing iffx.kind != Subject.kind.Declaration
Swift
public init?<Other>(_ x: Other) where Other : NodeIDProtocol -
Creates an instance having the given raw value.
The result can only be used correctly in an AST where the identified node has type
Subject.Declaration
Swift
init(rawValue: NodeRawIdentity) -
Undocumented
Declaration
Swift
public static func == <Other>(l: `Self`, r: Other) -> Bool where Other : NodeIDProtocol -
Undocumented
Declaration
Swift
public static func == <Other>(l: Other, r: `Self`) -> Bool where Other : NodeIDProtocol -
Undocumented
Declaration
Swift
public static func != <Other>(l: `Self`, r: Other) -> Bool where Other : NodeIDProtocol -
Undocumented
Declaration
Swift
public static func != <Other>(l: Other, r: `Self`) -> Bool where Other : NodeIDProtocol
View on GitHub