aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin
diff options
context:
space:
mode:
authorAndrzej Ratajczak <andrzej.ratajczak98@gmail.com>2020-06-10 12:00:44 +0200
committerPaweł Marks <pmarks@virtuslab.com>2020-06-12 14:15:24 +0200
commitcacc5ec47759c9ea2b8edeec6b39d8d16e6c8860 (patch)
treebe7bf825c22d08b75a87de8eb3ba65a34cc8a8c4 /plugins/base/src/main/kotlin
parentea03d377badb165869728ce6ecc9ad3c0fdbe70b (diff)
downloaddokka-cacc5ec47759c9ea2b8edeec6b39d8d16e6c8860.tar.gz
dokka-cacc5ec47759c9ea2b8edeec6b39d8d16e6c8860.tar.bz2
dokka-cacc5ec47759c9ea2b8edeec6b39d8d16e6c8860.zip
Fix module and package descriptor for java only sources
Diffstat (limited to 'plugins/base/src/main/kotlin')
-rw-r--r--plugins/base/src/main/kotlin/transformers/documentables/ModuleAndPackageDocumentationTransformer.kt3
1 files changed, 1 insertions, 2 deletions
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,