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 --- .../main/kotlin/org/jetbrains/dokka/javadoc/pages/JavadocPageNodes.kt | 2 +- .../dokka/javadoc/renderer/JavadocContentToTemplateMapTranslator.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/javadoc/src/main/kotlin/org') diff --git a/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/pages/JavadocPageNodes.kt b/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/pages/JavadocPageNodes.kt index 7433b46e..aee38596 100644 --- a/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/pages/JavadocPageNodes.kt +++ b/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/pages/JavadocPageNodes.kt @@ -163,7 +163,7 @@ data class JavadocFunctionNode( ) : AnchorableJavadocNode(name, dri), WithJavadocExtra, WithBrief { val isInherited: Boolean get() { - val extra = extra[InheritedFunction] + val extra = extra[InheritedMember] return extra?.inheritedFrom?.keys?.firstOrNull { it.analysisPlatform == Platform.jvm }?.let { jvm -> extra.isInherited(jvm) } ?: false diff --git a/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/renderer/JavadocContentToTemplateMapTranslator.kt b/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/renderer/JavadocContentToTemplateMapTranslator.kt index 15bb625a..a6eda405 100644 --- a/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/renderer/JavadocContentToTemplateMapTranslator.kt +++ b/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/renderer/JavadocContentToTemplateMapTranslator.kt @@ -9,7 +9,7 @@ import org.jetbrains.dokka.links.DRI import org.jetbrains.dokka.links.parent import org.jetbrains.dokka.links.sureClassNames import org.jetbrains.dokka.model.ImplementedInterfaces -import org.jetbrains.dokka.model.InheritedFunction +import org.jetbrains.dokka.model.InheritedMember import org.jetbrains.dokka.pages.* import org.jetbrains.dokka.plugability.DokkaContext import org.jetbrains.dokka.utilities.formatToEndWithHtml @@ -224,7 +224,7 @@ internal class JavadocContentToTemplateMapTranslator( } private fun templateMapForInheritedMethod(node: JavadocFunctionNode): TemplateMap { - val inheritedFrom = node.extra[InheritedFunction]?.inheritedFrom + val inheritedFrom = node.extra[InheritedMember]?.inheritedFrom return mapOf( "inheritedFrom" to inheritedFrom?.entries?.firstOrNull { it.key.analysisPlatform == Platform.jvm }?.value?.displayable() // TODO: REMOVE HARDCODED JVM DEPENDENCY .orEmpty(), -- cgit