diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2020-03-04 17:04:50 +0100 |
---|---|---|
committer | Kamil Doległo <kamilok1965@users.noreply.github.com> | 2020-03-04 18:00:19 +0100 |
commit | fc875fe5f8bc52ac75053db097b3349465705732 (patch) | |
tree | a2e3291170b88336c906210c5570081a217326b4 /plugins/base/src/main/kotlin/translators/descriptors | |
parent | ea0945efe8c7b5dd9aabc4f049afaac612b70422 (diff) | |
download | dokka-fc875fe5f8bc52ac75053db097b3349465705732.tar.gz dokka-fc875fe5f8bc52ac75053db097b3349465705732.tar.bz2 dokka-fc875fe5f8bc52ac75053db097b3349465705732.zip |
Refactor Modifiers
Diffstat (limited to 'plugins/base/src/main/kotlin/translators/descriptors')
-rw-r--r-- | plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt b/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt index f30ffa00..29441ac1 100644 --- a/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt +++ b/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt @@ -434,11 +434,11 @@ private class DokkaDescriptorVisitor( // TODO: close this class and make it priv } fun MemberDescriptor.modifier() = when (modality) { - Modality.FINAL -> WithAbstraction.Modifier.Final - Modality.SEALED -> WithAbstraction.Modifier.Sealed - Modality.OPEN -> WithAbstraction.Modifier.Open - Modality.ABSTRACT -> WithAbstraction.Modifier.Abstract - else -> WithAbstraction.Modifier.Empty + Modality.FINAL -> KotlinModifier.Final + Modality.SEALED -> KotlinModifier.Sealed + Modality.OPEN -> KotlinModifier.Open + Modality.ABSTRACT -> KotlinModifier.Abstract + else -> KotlinModifier.Empty } private fun MemberDescriptor.createSources(): PlatformDependent<DocumentableSource> = if (isExpect()) { |