From cacc5ec47759c9ea2b8edeec6b39d8d16e6c8860 Mon Sep 17 00:00:00 2001 From: Andrzej Ratajczak Date: Wed, 10 Jun 2020 12:00:44 +0200 Subject: Fix module and package descriptor for java only sources --- .../documentables/ModuleAndPackageDocumentationTransformer.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/base/src/main') diff --git a/plugins/base/src/main/kotlin/transformers/documentables/ModuleAndPackageDocumentationTransformer.kt b/plugins/base/src/main/kotlin/transformers/documentables/ModuleAndPackageDocumentationTransformer.kt index 1164fb77..04b2636c 100644 --- a/plugins/base/src/main/kotlin/transformers/documentables/ModuleAndPackageDocumentationTransformer.kt +++ b/plugins/base/src/main/kotlin/transformers/documentables/ModuleAndPackageDocumentationTransformer.kt @@ -73,8 +73,7 @@ internal class ModuleAndPackageDocumentationTransformer(val context: DokkaContex val doc = modulesAndPackagesDocumentation[Pair(module.name, pd)] val facade = context.platforms[pd]?.facade ?: return@mapNotNull null.also { context.logger.warn("Could not find platform data for ${pd.moduleName}/${pd.sourceSetName}") } - val descriptor = facade.resolveSession.getPackageFragment(FqName(it.name)) - ?: return@mapNotNull null.also { _ -> context.logger.warn("Could not find descriptor for ${it.name}") } + val descriptor = facade.moduleDescriptor.getPackage(FqName(it.name.let { if(it == "[JS root]") "" else it })) doc?.get("Package")?.get(it.name)?.run { pd to MarkdownParser( facade, -- cgit