@@ -1240,7 +1240,7 @@ public struct RenderNodeTranslator: SemanticVisitor {
1240
1240
1241
1241
node. metadata. extendedModuleVariants = VariantCollection < String ? > ( from: symbol. extendedModuleVariants)
1242
1242
1243
- let defaultAvailability = defaultAvailability ( for : context . inputs , moduleName: moduleName. symbolName, currentPlatforms: context. configuration. externalMetadata. currentPlatforms) ?
1243
+ let defaultAvailability = defaultAvailability ( moduleName: moduleName. symbolName, currentPlatforms: context. configuration. externalMetadata. currentPlatforms) ?
1244
1244
. filter { $0. unconditionallyUnavailable != true }
1245
1245
. sorted ( by: AvailabilityRenderOrder . compare)
1246
1246
@@ -1805,16 +1805,16 @@ public struct RenderNodeTranslator: SemanticVisitor {
1805
1805
}
1806
1806
1807
1807
/// The default availability for modules in a given bundle and module.
1808
- mutating func defaultAvailability( for bundle : DocumentationBundle , moduleName: String , currentPlatforms: [ String : PlatformVersion ] ? ) -> [ AvailabilityRenderItem ] ? {
1809
- let identifier = BundleModuleIdentifier ( bundle: bundle , moduleName: moduleName)
1808
+ private mutating func defaultAvailability( moduleName: String , currentPlatforms: [ String : PlatformVersion ] ? ) -> [ AvailabilityRenderItem ] ? {
1809
+ let identifier = BundleModuleIdentifier ( bundle: context . inputs , moduleName: moduleName)
1810
1810
1811
1811
// Cached availability
1812
1812
if let availability = bundleAvailability [ identifier] {
1813
1813
return availability
1814
1814
}
1815
1815
1816
1816
// Find default module availability if existing
1817
- guard let bundleDefaultAvailability = bundle . info. defaultAvailability,
1817
+ guard let bundleDefaultAvailability = context . inputs . info. defaultAvailability,
1818
1818
let moduleAvailability = bundleDefaultAvailability. modules [ moduleName] else {
1819
1819
return nil
1820
1820
}
0 commit comments