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

Interface

mattt edited this page Apr 26, 2021 · 12 revisions

Interface

public final class Interface 

Initializers

init(imports:symbols:)

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

Properties

imports

public let imports: [Import]

symbols

public let symbols: [Symbol]

symbolsGroupedByIdentifier

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

symbolsGroupedByQualifiedName

public let symbolsGroupedByQualifiedName: [String: [Symbol]]

topLevelSymbols

public let topLevelSymbols: [Symbol]

functionsByOperator

public var functionsByOperator: [Symbol: Set<Symbol>]

baseClasses

public var baseClasses: [Symbol] 

classHierarchies

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

relationships

public let relationships: [Relationship]

relationshipsBySubject

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

relationshipsByObject

public 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] 

defaultImplementations(of:)

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

symbols(named:resolvingTypealiases:)

public func symbols(named name: String, resolvingTypealiases: Bool) -> [Symbol] 
Clone this wiki locally