diff options
author | Błażej Kardyś <bkardys@virtuslab.com> | 2020-03-24 23:10:27 +0100 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-03-30 16:42:49 +0200 |
commit | ca2d5042c608951cd2f12ccc324543b59b7cc154 (patch) | |
tree | 48ac7c3e97fac8b33d391d9a19c2675035386d57 /core | |
parent | aad9a75c6ace63e883c8f737a9c4bd0933688adf (diff) | |
download | dokka-ca2d5042c608951cd2f12ccc324543b59b7cc154.tar.gz dokka-ca2d5042c608951cd2f12ccc324543b59b7cc154.tar.bz2 dokka-ca2d5042c608951cd2f12ccc324543b59b7cc154.zip |
Restricting pages generation for inherited functions
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/kotlin/model/documentableProperties.kt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/core/src/main/kotlin/model/documentableProperties.kt b/core/src/main/kotlin/model/documentableProperties.kt index 67e5e88d..f630ba3b 100644 --- a/core/src/main/kotlin/model/documentableProperties.kt +++ b/core/src/main/kotlin/model/documentableProperties.kt @@ -4,11 +4,10 @@ import org.jetbrains.dokka.model.properties.ExtraProperty import org.jetbrains.dokka.model.properties.MergeStrategy data class InheritedFunction(val isInherited: Boolean): ExtraProperty<DFunction> { - object InheritedFunctionKey: ExtraProperty.Key<DFunction, Boolean> { - override fun mergeStrategyFor(left: Boolean, right: Boolean) = MergeStrategy.Fail { + companion object : ExtraProperty.Key<DFunction, InheritedFunction> { + override fun mergeStrategyFor(left: InheritedFunction, right: InheritedFunction) = MergeStrategy.Fail { throw IllegalArgumentException("Function inheritance should be consistent!") } } - override val key: ExtraProperty.Key<DFunction, Boolean> = - InheritedFunctionKey + override val key: ExtraProperty.Key<DFunction, *> = InheritedFunction }
\ No newline at end of file |