aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main
diff options
context:
space:
mode:
authorSzymon Świstun <sswistun@virtuslab.com>2020-02-28 17:54:26 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-03-06 09:46:38 +0100
commit2abdfd45a8c3d39745b38629153d83871b8ceae6 (patch)
treef41cc61707edcf2541f4788160594a8ce1ab78fe /plugins/base/src/main
parente34f813a6c3130b574bacb0a31e727ceb39d0e39 (diff)
downloaddokka-2abdfd45a8c3d39745b38629153d83871b8ceae6.tar.gz
dokka-2abdfd45a8c3d39745b38629153d83871b8ceae6.tar.bz2
dokka-2abdfd45a8c3d39745b38629153d83871b8ceae6.zip
fixed enum entries generation
Diffstat (limited to 'plugins/base/src/main')
-rw-r--r--plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt b/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt
index 29441ac1..72ce296d 100644
--- a/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt
+++ b/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt
@@ -87,7 +87,6 @@ private class DokkaDescriptorVisitor( // TODO: close this class and make it priv
override fun visitClassDescriptor(descriptor: ClassDescriptor, parent: DRIWithPlatformInfo): Classlike =
when (descriptor.kind) {
ClassKind.ENUM_CLASS -> enumDescriptor(descriptor, parent)
- ClassKind.ENUM_ENTRY -> enumDescriptor(descriptor, parent)
ClassKind.OBJECT -> objectDescriptor(descriptor, parent)
ClassKind.INTERFACE -> interfaceDescriptor(descriptor, parent)
else -> classDescriptor(descriptor, parent)
@@ -378,6 +377,7 @@ private class DokkaDescriptorVisitor( // TODO: close this class and make it priv
private fun MemberScope.enumEntries(parent: DRIWithPlatformInfo): List<EnumEntry> =
this.getContributedDescriptors(DescriptorKindFilter.CLASSIFIERS) { true }
.filterIsInstance<ClassDescriptor>()
+ .filter { it.kind == ClassKind.ENUM_ENTRY }
.map { enumEntryDescriptor(it, parent) }