aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin
diff options
context:
space:
mode:
authorAndrzej Ratajczak <andrzej.ratajczak98@gmail.com>2020-09-18 15:53:37 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-09-28 16:54:22 +0200
commit2274d9261a59570cc3a1a26c3f7ddc167678fe8b (patch)
treebde5200a8d97b77d07db18a153b107c4b39bad1e /core/src/main/kotlin
parent4b4bd919f0ae94190d475c99c3d5fa0140822b84 (diff)
downloaddokka-2274d9261a59570cc3a1a26c3f7ddc167678fe8b.tar.gz
dokka-2274d9261a59570cc3a1a26c3f7ddc167678fe8b.tar.bz2
dokka-2274d9261a59570cc3a1a26c3f7ddc167678fe8b.zip
Add default values for primitive proprties. Add presenting in signature default values
Diffstat (limited to 'core/src/main/kotlin')
-rw-r--r--core/src/main/kotlin/model/defaultValues.kt10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/src/main/kotlin/model/defaultValues.kt b/core/src/main/kotlin/model/defaultValues.kt
index ab6cd376..d60c90cd 100644
--- a/core/src/main/kotlin/model/defaultValues.kt
+++ b/core/src/main/kotlin/model/defaultValues.kt
@@ -3,11 +3,11 @@ package org.jetbrains.dokka.model
import org.jetbrains.dokka.model.properties.ExtraProperty
import org.jetbrains.dokka.model.properties.MergeStrategy
-class DefaultValue(val value: String): ExtraProperty<DParameter> {
- companion object : ExtraProperty.Key<DParameter, DefaultValue> {
- override fun mergeStrategyFor(left: DefaultValue, right: DefaultValue): MergeStrategy<DParameter> = MergeStrategy.Remove // TODO pass a logger somehow and log this
+class DefaultValue(val value: String): ExtraProperty<Documentable> {
+ companion object : ExtraProperty.Key<Documentable, DefaultValue> {
+ override fun mergeStrategyFor(left: DefaultValue, right: DefaultValue): MergeStrategy<Documentable> = MergeStrategy.Remove // TODO pass a logger somehow and log this
}
- override val key: ExtraProperty.Key<DParameter, *>
+ override val key: ExtraProperty.Key<Documentable, *>
get() = Companion
-} \ No newline at end of file
+}