aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2020-03-10 14:18:11 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-03-11 10:26:11 +0100
commit35851c4f00bde0b66ce1d9ae8ca02bab761df819 (patch)
treea10cfc7a71907a957e97dc498344ab324f70cc54 /plugins/base/src/main/kotlin
parent35f56d1a1f38b6bc357e171dfa188962038a4a46 (diff)
downloaddokka-35851c4f00bde0b66ce1d9ae8ca02bab761df819.tar.gz
dokka-35851c4f00bde0b66ce1d9ae8ca02bab761df819.tar.bz2
dokka-35851c4f00bde0b66ce1d9ae8ca02bab761df819.zip
Remove nested packages from packages
Diffstat (limited to 'plugins/base/src/main/kotlin')
-rw-r--r--plugins/base/src/main/kotlin/transformers/documentables/DefaultDocumentableMerger.kt1
-rw-r--r--plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt1
-rw-r--r--plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt3
-rw-r--r--plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt1
4 files changed, 1 insertions, 5 deletions
diff --git a/plugins/base/src/main/kotlin/transformers/documentables/DefaultDocumentableMerger.kt b/plugins/base/src/main/kotlin/transformers/documentables/DefaultDocumentableMerger.kt
index 8ae2065b..654238a8 100644
--- a/plugins/base/src/main/kotlin/transformers/documentables/DefaultDocumentableMerger.kt
+++ b/plugins/base/src/main/kotlin/transformers/documentables/DefaultDocumentableMerger.kt
@@ -97,7 +97,6 @@ fun Package.mergeWith(other: Package): Package = copy(
functions = mergeExpectActual(functions + other.functions, Function::mergeWith) { copy(platformData = it) },
properties = mergeExpectActual(properties + other.properties, Property::mergeWith) { copy(platformData = it) },
classlikes = mergeExpectActual(classlikes + other.classlikes, Classlike::mergeWith, Classlike::setPlatformData),
- packages = merge(packages + other.packages, Package::mergeWith),
documentation = documentation.mergeWith(other.documentation),
platformData = (platformData + other.platformData).distinct()
).mergeExtras(this, other)
diff --git a/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt b/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt
index 72ce296d..a1fda688 100644
--- a/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt
+++ b/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt
@@ -78,7 +78,6 @@ private class DokkaDescriptorVisitor( // TODO: close this class and make it priv
functions = scope.functions(driWithPlatform),
properties = scope.properties(driWithPlatform),
classlikes = scope.classlikes(driWithPlatform),
- packages = scope.packages(driWithPlatform),
documentation = descriptor.resolveDescriptorData(platformData),
platformData = listOf(platformData)
)
diff --git a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
index d92bec19..c82af936 100644
--- a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
+++ b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
@@ -24,8 +24,7 @@ open class DefaultPageCreator(
open fun pageForPackage(p: Package): PackagePageNode = PackagePageNode(
p.name, contentForPackage(p), setOf(p.dri), p,
p.classlikes.map(::pageForClasslike) +
- p.functions.map(::pageForFunction) +
- p.packages.map(::pageForPackage)
+ p.functions.map(::pageForFunction)
)
open fun pageForClasslike(c: Classlike): ClasslikePageNode {
diff --git a/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt b/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt
index 28391741..b07d248d 100644
--- a/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt
+++ b/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt
@@ -47,7 +47,6 @@ object DefaultPsiToDocumentableTranslator : PsiToDocumentableTranslator {
psiFiles.flatMap { psFile ->
psFile.classes.map { docParser.parseClasslike(it, dri) }
},
- emptyList(),
PlatformDependent.empty(),
listOf(platformData)
)