EdgeRole

public enum EdgeRole : CaseIterable
extension EdgeRole: Codable

EdgeRole converts the indexStoreDB‘s type SymbolRole into codeable enum roles to annotate the dependency graphs edges

Relation roles, from indexstore

  • Undocumented

    Declaration

    Swift

    case childOf
  • Undocumented

    Declaration

    Swift

    case baseOf
  • Undocumented

    Declaration

    Swift

    case overrideOf
  • Undocumented

    Declaration

    Swift

    case receivedBy
  • Undocumented

    Declaration

    Swift

    case calledBy
  • Undocumented

    Declaration

    Swift

    case extendedBy
  • Undocumented

    Declaration

    Swift

    case accessorOf
  • Undocumented

    Declaration

    Swift

    case containedBy
  • Undocumented

    Declaration

    Swift

    case ibTypeOf
  • Undocumented

    Declaration

    Swift

    case specializationOf
  • Undocumented

    Declaration

    Swift

    case canonical
  • all

    Undocumented

    Declaration

    Swift

    case all
  • Undocumented

    Declaration

    Swift

    case unknow

EdgeRole: Codable

  • Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws

EdgeRole

  • Convert a indexStoreDB SymbolRole into an array of EdgeRoles

    Declaration

    Swift

    public static func getEdgeRoles(symbolRole: SymbolRole) -> [EdgeRole]

    Parameters

    symbolRole

    The indexStoreDB SymbolRole that should be converte

    Return Value

    An array of EdgeRoles that represent the SymbolRole

  • Convert an EdgeRole into a Symbol Role

    Note

    Not sure if this is how it should work –> Could calculate all possible permutations of roles and generate list of SymbolRoles out of it.

    Declaration

    Swift

    public static func getSymbolRole(edgeRole: EdgeRole) -> SymbolRole?

    Parameters

    edgeRole

    The EdgeRole that should be converted

    Return Value

    An optional of type SymbolRole. Is nil if the EdgeRole is unkown, else returns a simple SymbolRole