aboutsummaryrefslogtreecommitdiff
path: root/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-08-13 10:32:52 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-08-17 11:52:28 +0200
commit5a7e14eaaa4278343ff628c692d475be9732c94e (patch)
treec24a5c821429dff9c781d1e950883da56ef66a03 /plugins/javadoc/src/main/kotlin/org/jetbrains/dokka
parentf6ac2b0f0a0183171aa2f6806ec67d8d21692a36 (diff)
downloaddokka-5a7e14eaaa4278343ff628c692d475be9732c94e.tar.gz
dokka-5a7e14eaaa4278343ff628c692d475be9732c94e.tar.bz2
dokka-5a7e14eaaa4278343ff628c692d475be9732c94e.zip
Implement SourceSetMergingPageTransformer
Diffstat (limited to 'plugins/javadoc/src/main/kotlin/org/jetbrains/dokka')
-rw-r--r--plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/pages/JavadocContentNodes.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/pages/JavadocContentNodes.kt b/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/pages/JavadocContentNodes.kt
index 2c9ee013..5816ad3c 100644
--- a/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/pages/JavadocContentNodes.kt
+++ b/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/pages/JavadocContentNodes.kt
@@ -17,6 +17,10 @@ abstract class JavadocContentNode(
override val style: Set<Style> = emptySet()
override val extra: PropertyContainer<ContentNode> = PropertyContainer.empty()
override fun withNewExtras(newExtras: PropertyContainer<ContentNode>): ContentNode = this
+
+ // TODO: Support needed?
+ override fun withSourceSets(sourceSets: Set<ContentSourceSet>): JavadocContentNode = this
+
}
interface JavadocList {
@@ -41,6 +45,9 @@ class EmptyNode(
override fun withNewExtras(newExtras: PropertyContainer<ContentNode>): ContentNode =
EmptyNode(dci.dri.first(), dci.kind, sourceSets, newExtras)
+ override fun withSourceSets(sourceSets: Set<ContentSourceSet>): ContentNode =
+ EmptyNode(dci.dri.first(), dci.kind, sourceSets, extra)
+
override fun hasAnyContent(): Boolean = false
}