NodeRole
public enum NodeRole : CaseIterable
extension NodeRole: Codable
NodeRole converts the indexStoreDB‘s type SymbolRole into codeable enum roles to annotate the dependency graphs nodes
-
Undocumented
Declaration
Swift
case declaration -
Undocumented
Declaration
Swift
case definition -
Undocumented
Declaration
Swift
case reference -
Undocumented
Declaration
Swift
case read -
Undocumented
Declaration
Swift
case write -
Undocumented
Declaration
Swift
case call -
Undocumented
Declaration
Swift
case dynamic -
Undocumented
Declaration
Swift
case addressOf -
Undocumented
Declaration
Swift
case implicit -
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 ofNodeRolesDeclaration
Swift
public static func getNodeRoles(symbolRole: SymbolRole) -> [NodeRole]Parameters
symbolRoleThe indexStoreDB SymbolRole that should be converte
Return Value
An array of NodeRoles 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(nodeRole: NodeRole) -> 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
NodeRole Enumeration Reference