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 23, 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

let id: ID

api

let api: API

context

let context: [Contextual]

declaration

let declaration: [Token]

documentation

let documentation: Documentation?

sourceRange

let sourceRange: SourceRange?

sourceLocation

var sourceLocation: SourceLocation?

`extension`

var `extension`: Extension? = context.compactMap { $0 as? Extension }.first

conditions

var conditions: [CompilationCondition]

name

var name: String

kind

var kind: String

isPublic

var isPublic: Bool

isPrivate

var isPrivate: Bool

isInternal

var isInternal: Bool

isDocumented

var isDocumented: Bool

debugDescription

var debugDescription: String

Methods

==(lhs:rhs:)

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

<(lhs:rhs:)

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

hash(into:)

public func hash(into hasher: inout Hasher)

encode(to:)

public func encode(to encoder: Encoder) throws