aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/pages
diff options
context:
space:
mode:
authorSzymon Świstun <sswistun@virtuslab.com>2020-02-11 15:57:29 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-02-12 13:13:18 +0100
commitaf9697cbd2eb1a26c8a07d191ca6360d416a1666 (patch)
treedcb910792ba09457e7c52b64115d7215a2fa7d9b /core/src/main/kotlin/pages
parent50e711d24b517bc93c37d89f258c9dafaa038ad1 (diff)
downloaddokka-af9697cbd2eb1a26c8a07d191ca6360d416a1666.tar.gz
dokka-af9697cbd2eb1a26c8a07d191ca6360d416a1666.tar.bz2
dokka-af9697cbd2eb1a26c8a07d191ca6360d416a1666.zip
kotlin-as-java fixed
Diffstat (limited to 'core/src/main/kotlin/pages')
-rw-r--r--core/src/main/kotlin/pages/PageBuilder.kt4
-rw-r--r--core/src/main/kotlin/pages/PageContentBuilder.kt2
2 files changed, 3 insertions, 3 deletions
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<Style> = emptySet(),
private val extras: Set<Extra> = emptySet()
) : PageContentBuilder {
- private val contents = mutableListOf<ContentNode>()
+ protected val contents = mutableListOf<ContentNode>()
protected fun createText(text: String, kind: Kind = ContentKind.Symbol) =
ContentText(text, DCI(dri, kind), platformData, styles, extras)