File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Sources/SwiftDocC/Infrastructure/Symbol Graph
Tests/SwiftDocCTests/Infrastructure/SymbolGraph Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -297,7 +297,6 @@ struct SymbolGraphLoader {
297
297
/// If the bundle defines default availability for the symbols in the given symbol graph
298
298
/// this method adds them to each of the symbols in the graph.
299
299
private func addDefaultAvailability( to symbolGraph: inout SymbolGraph , moduleName: String ) {
300
- let selector = UnifiedSymbolGraph . Selector ( forSymbolGraph: symbolGraph)
301
300
// Check if there are defined default availabilities for the current module
302
301
if let defaultAvailabilities = bundle. info. defaultAvailability? . modules [ moduleName] ,
303
302
let platformName = symbolGraph. module. platform. name. map ( PlatformName . init) {
Original file line number Diff line number Diff line change @@ -1738,7 +1738,7 @@ class SymbolGraphLoaderTests: XCTestCase {
1738
1738
}
1739
1739
"""
1740
1740
)
1741
- var infoPlist = """
1741
+ let infoPlist = """
1742
1742
<plist version= " 1.0 " >
1743
1743
<dict>
1744
1744
<key>CDAppleDefaultAvailability</key>
@@ -1769,7 +1769,7 @@ class SymbolGraphLoaderTests: XCTestCase {
1769
1769
let infoPlistURL = targetURL. appendingPathComponent ( " Info.plist " )
1770
1770
try infoPlist. write ( to: infoPlistURL, atomically: true , encoding: . utf8)
1771
1771
// Load the bundle & reference resolve symbol graph docs
1772
- var ( _, _, context) = try loadBundle ( from: targetURL)
1772
+ let ( _, _, context) = try loadBundle ( from: targetURL)
1773
1773
guard let availability = ( context. documentationCache [ " c:@F@Bar " ] ? . semantic as? Symbol ) ? . availability? . availability else {
1774
1774
XCTFail ( " Did not find availability for symbol 'c:@F@Bar' " )
1775
1775
return
You can’t perform that action at this time.
0 commit comments