Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Interface

mattt edited this page Jul 31, 2020 · 12 revisions

Interface

public final class Interface

Initializers

init(imports:​symbols:​)

public required init(imports:[Import], symbols:[Symbol])

Properties

imports

let imports:[Import]

symbols

let symbols:[Symbol]

symbolsGroupedByIdentifier

let symbolsGroupedByIdentifier:[Symbol.ID:[Symbol]]

symbolsGroupedByQualifiedName

let symbolsGroupedByQualifiedName:[String:[Symbol]]

topLevelSymbols

let topLevelSymbols:[Symbol]

baseClasses

var baseClasses:[Symbol]

classHierarchies

var classHierarchies:[Symbol:​ Set<Symbol>]

relationships

let relationships:[Relationship]

relationshipsBySubject

let relationshipsBySubject:[Symbol.ID:[Relationship]]

relationshipsByObject

let relationshipsByObject:[Symbol.ID:[Relationship]]

Methods

members(of:​)

public func members(of symbol:​ Symbol) -> [Symbol]

requirements(of:​)

public func requirements(of symbol:​ Symbol) -> [Symbol]

optionalRequirements(of:​)

public func optionalRequirements(of symbol:​ Symbol) -> [Symbol]

typesInherited(by:​)

public func typesInherited(by symbol:​ Symbol) -> [Symbol]

typesInheriting(from:​)

public func typesInheriting(from symbol:​ Symbol) -> [Symbol]

typesConformed(by:​)

public func typesConformed(by symbol:​ Symbol) -> [Symbol]

typesConforming(to:​)

public func typesConforming(to symbol:​ Symbol) -> [Symbol]

conditionalCounterparts(of:​)

public func conditionalCounterparts(of symbol:​ Symbol) -> [Symbol]
Clone this wiki locally