Skip to content

Commit beb3a14

Browse files
committed
Add link to SymbolKit issue
1 parent e03f383 commit beb3a14

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Sources/SwiftDocC/Infrastructure/DocumentationContext.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,8 +1098,10 @@ public class DocumentationContext: DocumentationContextDataProviderDelegate {
10981098

10991099
let moduleInterfaceLanguages: Set<SourceLanguage>
11001100
if FeatureFlags.current.isExperimentalObjectiveCSupportEnabled {
1101-
// Infer the module's interface languages from the interface
1102-
// languages of the first symbol in the symbol graph.
1101+
// FIXME: Update with new SymbolKit API once available.
1102+
// This is a very inefficient way to gather the source languages
1103+
// represented in a symbol graph. Adding a dedicated SymbolKit API is tracked
1104+
// with SR-15551 and rdar://85982095.
11031105
moduleInterfaceLanguages = Set(
11041106
unifiedSymbolGraph.symbols.flatMap(\.value.sourceLanguages)
11051107
)

Sources/SwiftDocC/Infrastructure/Symbol Graph/SymbolReference.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ private extension Array where Element == String {
151151

152152
extension UnifiedSymbolGraph.Symbol {
153153
var sourceLanguages: Set<SourceLanguage> {
154-
// FIXME: create a SymbolKit API to get all the languages of the symbol
154+
// FIXME: Replace with new SymbolKit API once available.
155+
// Adding a dedicated SymbolKit API for this purpose is tracked
156+
// with SR-15551 and rdar://85982095.
155157
return Set(
156158
pathComponents.keys.compactMap { selector in
157159
return SourceLanguage(knownLanguageIdentifier: selector.interfaceLanguage)

0 commit comments

Comments
 (0)