AnyScopeID
public struct AnyScopeID : ScopeID
The type-erased ID of a node outlining a lexical scope.
-
The underlying type-erased ID.
Declaration
Swift
let base: AnyNodeID -
Creates a type-erased ID from the ID of a node outlining a lexical scope.
Declaration
Swift
public init<T>(_ other: T) where T : ScopeID -
Creates an instance referring to the same node as
x, failing ifxdoes not identify a lexical scope.Declaration
Swift
public init?<Other>(_ x: Other) where Other : NodeIDProtocol -
Declaration
Swift
public var rawValue: NodeRawIdentity { get } -
Declaration
Swift
public var kind: NodeKind { get }
View on GitHub