aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/pages/PageNodes.kt
diff options
context:
space:
mode:
authorSzymon Świstun <sswistun@virtuslab.com>2020-02-05 12:07:21 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-02-12 13:33:10 +0100
commit8c534f14296a92fedc3410fb48de51836cb92859 (patch)
tree51750f4ea2cd57627e729090f11956c9319e4367 /core/src/main/kotlin/pages/PageNodes.kt
parentaf9697cbd2eb1a26c8a07d191ca6360d416a1666 (diff)
downloaddokka-8c534f14296a92fedc3410fb48de51836cb92859.tar.gz
dokka-8c534f14296a92fedc3410fb48de51836cb92859.tar.bz2
dokka-8c534f14296a92fedc3410fb48de51836cb92859.zip
merger for functions
Diffstat (limited to 'core/src/main/kotlin/pages/PageNodes.kt')
-rw-r--r--core/src/main/kotlin/pages/PageNodes.kt10
1 files changed, 7 insertions, 3 deletions
diff --git a/core/src/main/kotlin/pages/PageNodes.kt b/core/src/main/kotlin/pages/PageNodes.kt
index 6b67a734..244d951e 100644
--- a/core/src/main/kotlin/pages/PageNodes.kt
+++ b/core/src/main/kotlin/pages/PageNodes.kt
@@ -24,6 +24,7 @@ interface ContentPage: PageNode {
fun modified(
name: String = this.name,
content: ContentNode = this.content,
+ dri: Set<DRI> = this.dri,
embeddedResources: List<String> = this.embeddedResources,
children: List<PageNode> = this.children
): ContentPage
@@ -63,7 +64,6 @@ abstract class RootPageNode: PageNode {
class ModulePageNode(
override val name: String,
override val content: ContentNode,
-
override val documentable: Documentable?,
override val children: List<PageNode>,
override val embeddedResources: List<String> = listOf()
@@ -71,11 +71,12 @@ class ModulePageNode(
override val dri: Set<DRI> = setOf(DRI.topLevel)
override fun modified(name: String, children: List<PageNode>): ModulePageNode =
- modified(name = name, content = this.content, children = children)
+ modified(name = name, content = this.content, dri = dri, children = children)
override fun modified(
name: String,
content: ContentNode,
+ dri: Set<DRI>,
embeddedResources: List<String>,
children: List<PageNode>
): ModulePageNode =
@@ -98,6 +99,7 @@ class PackagePageNode(
override fun modified(
name: String,
content: ContentNode,
+ dri: Set<DRI>,
embeddedResources: List<String>,
children: List<PageNode>
): PackagePageNode =
@@ -119,6 +121,7 @@ class ClasslikePageNode(
override fun modified(
name: String,
content: ContentNode,
+ dri: Set<DRI>,
embeddedResources: List<String>,
children: List<PageNode>
): ClasslikePageNode =
@@ -135,11 +138,12 @@ class MemberPageNode(
override val embeddedResources: List<String> = listOf()
) : ContentPage {
override fun modified(name: String, children: List<PageNode>): MemberPageNode =
- modified(name = name, content = this.content, children = children)
+ modified(name = name, content = this.content, children = children) as MemberPageNode
override fun modified(
name: String,
content: ContentNode,
+ dri: Set<DRI>,
embeddedResources: List<String>,
children: List<PageNode>
): MemberPageNode =