Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
mattt edited this page Apr 26, 2021 · 19 revisions

Symbol

public final class Symbol 

Inheritance

Codable, Comparable, CustomDebugStringConvertible, Equatable, Hashable

Nested Type Aliases

ID

public typealias ID = Identifier

Initializers

init(from:)

public convenience init(from decoder: Decoder) throws 

Properties

id

public let id: ID

api

public let api: API

context

public let context: [Contextual]

declaration

public let declaration: [Token]

documentation

public let documentation: Documentation?

sourceRange

public let sourceRange: SourceRange?

sourceLocation

@available(swift, deprecated: 0.0.1, message: "Use sourceRange instead")
    public var sourceLocation: SourceLocation? 

`extension`

public private(set) lazy var `extension`: Extension? = context.compactMap { $0 as? Extension }.first

conditions

public private(set) lazy var conditions: [CompilationCondition] 

name

public var name: String 

kind

public var kind: String 

isPublic

public var isPublic: Bool 

isPrivate

public var isPrivate: Bool 

isInternal

public var isInternal: Bool 

isDocumented

public var isDocumented: Bool 

debugDescription

public var debugDescription: String 

Methods

hash(into:)

public func hash(into hasher: inout Hasher) 

encode(to:)

public func encode(to encoder: Encoder) throws 

Operators

==

public static func == (lhs: Symbol, rhs: Symbol) -> Bool 

<

public static func < (lhs: Symbol, rhs: Symbol) -> Bool