aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/model/defaultValues.kt
blob: d60c90cd589efb0a800ba3647c4438ad90292cd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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<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<Documentable, *>
        get() = Companion
}