From af9697cbd2eb1a26c8a07d191ca6360d416a1666 Mon Sep 17 00:00:00 2001 From: Szymon Świstun Date: Tue, 11 Feb 2020 15:57:29 +0100 Subject: kotlin-as-java fixed --- core/src/main/kotlin/pages/PageBuilder.kt | 4 ++-- core/src/main/kotlin/pages/PageContentBuilder.kt | 2 +- .../psi/DefaultPsiToDocumentationTranslator.kt | 24 +++++++++++++--------- 3 files changed, 17 insertions(+), 13 deletions(-) (limited to 'core/src/main') diff --git a/core/src/main/kotlin/pages/PageBuilder.kt b/core/src/main/kotlin/pages/PageBuilder.kt index df0c12c2..e3105918 100644 --- a/core/src/main/kotlin/pages/PageBuilder.kt +++ b/core/src/main/kotlin/pages/PageBuilder.kt @@ -62,7 +62,7 @@ open class DefaultPageBuilder( } } - fun contentForClasslike(c: Classlike): ContentGroup = when (c) { + open fun contentForClasslike(c: Classlike): ContentGroup = when (c) { is Class -> contentForClass(c) is Enum -> contentForEnum(c) else -> throw IllegalStateException("$c should not be present here") @@ -91,7 +91,7 @@ open class DefaultPageBuilder( text(it.briefDocTagString) } - block("Functions", 2, ContentKind.Functions, c.functions, c.platformData) { + this.block("Functions", 2, ContentKind.Functions, c.functions, c.platformData) { link(it.name, it.dri) signature(it) text(it.briefDocTagString) diff --git a/core/src/main/kotlin/pages/PageContentBuilder.kt b/core/src/main/kotlin/pages/PageContentBuilder.kt index bc01b03e..ed0a0fea 100644 --- a/core/src/main/kotlin/pages/PageContentBuilder.kt +++ b/core/src/main/kotlin/pages/PageContentBuilder.kt @@ -17,7 +17,7 @@ open class DefaultPageContentBuilder( private val styles: Set