From 7db15c357a417ccd9ff8ad1f90f5aff84eec132f Mon Sep 17 00:00:00 2001 From: Błażej Kardyś Date: Tue, 6 Oct 2020 04:54:31 +0200 Subject: Adding function division switch --- core/src/main/kotlin/model/documentableProperties.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'core/src/main/kotlin/model/documentableProperties.kt') diff --git a/core/src/main/kotlin/model/documentableProperties.kt b/core/src/main/kotlin/model/documentableProperties.kt index 991f5311..209a6296 100644 --- a/core/src/main/kotlin/model/documentableProperties.kt +++ b/core/src/main/kotlin/model/documentableProperties.kt @@ -5,16 +5,16 @@ import org.jetbrains.dokka.links.DRI import org.jetbrains.dokka.model.properties.ExtraProperty import org.jetbrains.dokka.model.properties.MergeStrategy -data class InheritedFunction(val inheritedFrom: SourceSetDependent) : ExtraProperty { - companion object : ExtraProperty.Key { - override fun mergeStrategyFor(left: InheritedFunction, right: InheritedFunction) = MergeStrategy.Replace( - InheritedFunction(left.inheritedFrom + right.inheritedFrom) +data class InheritedMember(val inheritedFrom: SourceSetDependent) : ExtraProperty { + companion object : ExtraProperty.Key { + override fun mergeStrategyFor(left: InheritedMember, right: InheritedMember) = MergeStrategy.Replace( + InheritedMember(left.inheritedFrom + right.inheritedFrom) ) } fun isInherited(sourceSetDependent: DokkaSourceSet): Boolean = inheritedFrom[sourceSetDependent] != null - override val key: ExtraProperty.Key = InheritedFunction + override val key: ExtraProperty.Key = InheritedMember } data class ImplementedInterfaces(val interfaces: SourceSetDependent>) : ExtraProperty { -- cgit