aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/translators/descriptors
diff options
context:
space:
mode:
authorvmishenev <vad-mishenev@yandex.ru>2021-07-28 14:51:01 +0300
committervmishenev <vad-mishenev@yandex.ru>2021-07-30 01:33:35 +0300
commitbcebddee24d13b991c2afa2443689dc651539bb0 (patch)
tree3d96698d82c6f1446a43d1dabb12579e993bb56d /plugins/base/src/main/kotlin/translators/descriptors
parent85cec2dd7ae435d84bad0721c6fd79e9c644c275 (diff)
downloaddokka-bcebddee24d13b991c2afa2443689dc651539bb0.tar.gz
dokka-bcebddee24d13b991c2afa2443689dc651539bb0.tar.bz2
dokka-bcebddee24d13b991c2afa2443689dc651539bb0.zip
Add boolean, nullable types of annotation parameter value
Diffstat (limited to 'plugins/base/src/main/kotlin/translators/descriptors')
-rw-r--r--plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt b/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt
index 1870b8da..3ff8ffc3 100644
--- a/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt
+++ b/plugins/base/src/main/kotlin/translators/descriptors/DefaultDescriptorToDocumentableTranslator.kt
@@ -75,6 +75,8 @@ import org.jetbrains.kotlin.resolve.constants.IntValue as ConstantsIntValue
import org.jetbrains.kotlin.resolve.constants.LongValue as ConstantsLongValue
import org.jetbrains.kotlin.resolve.constants.UIntValue as ConstantsUIntValue
import org.jetbrains.kotlin.resolve.constants.ULongValue as ConstantsULongValue
+import org.jetbrains.kotlin.resolve.constants.BooleanValue as ConstantsBooleanValue
+import org.jetbrains.kotlin.resolve.constants.NullValue as ConstantsNullValue
class DefaultDescriptorToDocumentableTranslator(
context: DokkaContext
@@ -975,6 +977,8 @@ private class DokkaDescriptorVisitor(
is ConstantsULongValue -> LongValue(value)
is ConstantsIntValue -> IntValue(value)
is ConstantsLongValue -> LongValue(value)
+ is ConstantsBooleanValue -> BooleanValue(value)
+ is ConstantsNullValue -> NullValue
else -> StringValue(unquotedValue(toString()))
}