aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorPaweł Marks <pmarks@virtuslab.com>2020-02-27 18:10:57 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-03-04 14:28:14 +0100
commitded94108b225686bc77ec1626798ded06a6db0c1 (patch)
tree6be36e8e4c65928e8726a53ca3410dd7f90deb90 /plugins
parent10874a53b0db00c45d4ab44dfd226672dcf75115 (diff)
downloaddokka-ded94108b225686bc77ec1626798ded06a6db0c1.tar.gz
dokka-ded94108b225686bc77ec1626798ded06a6db0c1.tar.bz2
dokka-ded94108b225686bc77ec1626798ded06a6db0c1.zip
Small cleanup in the model
- modifier made not nullable - redundant companions moved out from children lists
Diffstat (limited to 'plugins')
-rw-r--r--plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt b/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt
index 4b4cf8db..6b25639f 100644
--- a/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt
+++ b/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt
@@ -245,7 +245,7 @@ object DefaultPsiToDocumentableTranslator : PsiToDocumentableTranslator {
private fun PsiModifierListOwner.getModifier() = when {
hasModifier(JvmModifier.ABSTRACT) -> WithAbstraction.Modifier.Abstract
hasModifier(JvmModifier.FINAL) -> WithAbstraction.Modifier.Final
- else -> null
+ else -> WithAbstraction.Modifier.Empty
}
private fun PsiTypeParameterListOwner.mapTypeParameters(dri: DRI): List<TypeParameter> {