blob: 38a064510e033eef12f54dec28436097535b4601 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package org.jetbrains.dokka.model
import org.jetbrains.dokka.model.properties.ExtraProperty
import org.jetbrains.dokka.model.properties.MergeStrategy
data class InheritedFunction(val isInherited: Boolean): ExtraProperty<Function> {
object InheritedFunctionKey: ExtraProperty.Key<Function, Boolean> {
override fun mergeStrategyFor(left: Boolean, right: Boolean) = MergeStrategy.Fail {
throw IllegalArgumentException("Function inheritance should be consistent!")
}
}
override val key: ExtraProperty.Key<Function, Boolean> =
InheritedFunctionKey
}
|