DemangledEntity
public struct DemangledEntity : Hashable, Sendable
extension DemangledEntity: CustomStringConvertible
The payload of a DemangledSymbol.entity.
-
The qualification of the symbol, if any.
Declaration
Swift
public let qualification: DemangledQualification? -
The kind of the symbol, if known.
Declaration
Swift
public let kind: NodeKind? -
The name of the symbol.
Declaration
Swift
public let name: Name -
The arguments of the symbol’s generic parameters if it is a function or subscript.
Declaration
Swift
public let genericArgumentLabels: [String?] -
The type of the symbol, if known.
Declaration
Swift
public let type: DemangledType? -
trueifselfidentifies a scope.Declaration
Swift
public let isScope: Bool -
Creates an instance with the given properties.
Declaration
Swift
public init( qualification: DemangledQualification?, kind: NodeKind, name: Name, genericArgumentLabels: [String?] = [], type: DemangledType? = nil ) -
Creates an instance identifying an anonymous scope.
Declaration
Swift
public init(anonymousScope id: Int, qualifiedBy q: DemangledQualification) -
Creates an instance representing a core type declaration.
Declaration
Swift
public init(coreType: String) -
The
Hylomodule.Declaration
Swift
static var hylo: DemangledEntity { get } -
Declaration
Swift
public var description: String { get } -
A textual representation of
selfassuming it is a function declaration.Declaration
Swift
private var functionDescription: String { get } -
A textual representation of
selfassuming it is an initializer declaration.Declaration
Swift
private var initializerDescription: String { get } -
A textual representation of
selfassuming it is a subscript bundle declaration.Declaration
Swift
private var subscriptBundleDescription: String { get } -
Returns the textual description of a qualification.
Declaration
Swift
private static func describe(qualification: DemangledQualification?) -> String
View on GitHub