aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/model/defaultValues.kt
blob: ab6cd376729bd05a9e08446ad867f0adac22c03e (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<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
    }

    override val key: ExtraProperty.Key<DParameter, *>
        get() = Companion
}