We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 223d11d commit 806e8efCopy full SHA for 806e8ef
Sources/SourceKit/SourceKitServer.swift
@@ -604,14 +604,6 @@ extension IndexSymbolKind {
604
extension SymbolOccurrence {
605
/// Get the name of the symbol that is a parent of this symbol, if one exists
606
func getContainerName() -> String? {
607
- var foundChildRelation: SymbolRelation?
608
- self.forEachRelation { relation in
609
- if relation.roles.contains(.childOf) {
610
- foundChildRelation = relation
611
- return false
612
- }
613
- return true
614
615
- return foundChildRelation?.symbol.name
+ return relations.first(where: { $0.roles.contains(.childOf) })?.symbol.name
616
}
617
0 commit comments