aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/pages/PageBuilder.kt
diff options
context:
space:
mode:
authorSzymon Świstun <sswistun@virtuslab.com>2020-02-04 11:42:57 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-02-04 14:39:05 +0100
commit6f241300f799001e266b0301c56c1a8daad5ba24 (patch)
tree63c11ada222156d4ea5c427d4c077a68180a0ef1 /core/src/main/kotlin/pages/PageBuilder.kt
parent0508be47cbbc5a160217aa35233398044d8cdaf8 (diff)
downloaddokka-6f241300f799001e266b0301c56c1a8daad5ba24.tar.gz
dokka-6f241300f799001e266b0301c56c1a8daad5ba24.tar.bz2
dokka-6f241300f799001e266b0301c56c1a8daad5ba24.zip
dri sets
Diffstat (limited to 'core/src/main/kotlin/pages/PageBuilder.kt')
-rw-r--r--core/src/main/kotlin/pages/PageBuilder.kt6
1 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 b32e4f4f..ce32645d 100644
--- a/core/src/main/kotlin/pages/PageBuilder.kt
+++ b/core/src/main/kotlin/pages/PageBuilder.kt
@@ -12,12 +12,12 @@ class DefaultPageBuilder(
ModulePageNode(m.name.ifEmpty { "root" }, contentForModule(m), m, m.packages.map { pageForPackage(it) })
override fun pageForPackage(p: Package) =
- PackagePageNode(p.name, contentForPackage(p), p.dri, p,
+ PackagePageNode(p.name, contentForPackage(p), setOf(p.dri), p,
p.classes.map { pageForClass(it) } +
p.functions.map { pageForMember(it) })
override fun pageForClass(c: Class): ClassPageNode =
- ClassPageNode(c.name, contentForClass(c), c.dri, c,
+ ClassPageNode(c.name, contentForClass(c), setOf(c.dri), c,
c.constructors.map { pageForMember(it) } +
c.classes.map { pageForClass(it) } +
c.functions.map { pageForMember(it) })
@@ -25,7 +25,7 @@ class DefaultPageBuilder(
override fun pageForMember(m: CallableNode): MemberPageNode =
when (m) {
is Function ->
- MemberPageNode(m.name, contentForFunction(m), m.dri, m)
+ MemberPageNode(m.name, contentForFunction(m), setOf(m.dri), m)
else -> throw IllegalStateException("$m should not be present here")
}