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
-
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 -
Undocumented
Declaration
Swift
case all -
Undocumented
Declaration
Swift
case unknow
-
Declaration
Swift
public init(from decoder: Decoder) throws -
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Convert a
indexStoreDBSymbolRoleinto an array ofEdgeRolesDeclaration
Swift
public static func getEdgeRoles(symbolRole: SymbolRole) -> [EdgeRole]Parameters
symbolRoleThe 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
edgeRoleThe EdgeRole that should be converted
Return Value
An optional of type
SymbolRole. Is nil if the EdgeRole is unkown, else returns a simple SymbolRole
EdgeRole Enumeration Reference