diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-08-13 10:32:52 +0200 |
---|---|---|
committer | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-08-17 11:52:28 +0200 |
commit | 5a7e14eaaa4278343ff628c692d475be9732c94e (patch) | |
tree | c24a5c821429dff9c781d1e950883da56ef66a03 /plugins/javadoc/src/main/kotlin/org/jetbrains | |
parent | f6ac2b0f0a0183171aa2f6806ec67d8d21692a36 (diff) | |
download | dokka-5a7e14eaaa4278343ff628c692d475be9732c94e.tar.gz dokka-5a7e14eaaa4278343ff628c692d475be9732c94e.tar.bz2 dokka-5a7e14eaaa4278343ff628c692d475be9732c94e.zip |
Implement SourceSetMergingPageTransformer
Diffstat (limited to 'plugins/javadoc/src/main/kotlin/org/jetbrains')
-rw-r--r-- | plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/pages/JavadocContentNodes.kt | 7 |
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 } |