This repository was archived by the owner on Jun 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 97
Symbol
mattt edited this page Apr 2, 2020
·
19 revisions
public final class SymbolCodable, Comparable, Contextual, Equatable, Hashable
public typealias ID = Identifierpublic init(file url: URL, relativeTo directory: URL) throwspublic convenience init(from decoder: Decoder) throwslet path: Stringlet symbols: [Symbol]let imports: [Import]let api: APIlet context: [Contextual]let declaration: Stringlet documentation: Documentation?let sourceLocation: SourceLocation?var `extension`: Extension? = context.compactMap { $0 as? Extension }.firstvar conditions: [CompilationCondition] = context.compactMap { $0 as? CompilationCondition }var name: Stringvar id: ID = {
Identifier(pathComponents: context.compactMap {
($0 as? Symbol)?.name ?? ($0 as? Extension)?.extendedType
}, name: name)
}()var isPublic: Boolvar isDocumented: Boolpublic static func ==(lhs: Symbol, rhs: Symbol) -> Boolpublic static func <(lhs: Symbol, rhs: Symbol) -> Boolpublic func hash(into hasher: inout Hasher)public func encode(to encoder: Encoder) throwsGenerated at 2021-05-05T17:50:46+0000 using swift-doc 1.0.0-beta.6.