aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAndrzej Ratajczak <andrzej.ratajczak98@gmail.com>2020-09-08 11:32:47 +0200
committerAndrzej Ratajczak <32793002+BarkingBad@users.noreply.github.com>2020-09-08 12:52:59 +0200
commit34971f2a2f6e243627c095f9ce0bae29afb74299 (patch)
tree5263ee510583856d9f8cf5966290e0aa8a56ac8c /plugins
parentd014a0e2a973e902032edbeaf239165d0eaf278d (diff)
downloaddokka-34971f2a2f6e243627c095f9ce0bae29afb74299.tar.gz
dokka-34971f2a2f6e243627c095f9ce0bae29afb74299.tar.bz2
dokka-34971f2a2f6e243627c095f9ce0bae29afb74299.zip
Remove redundant extension function
Diffstat (limited to 'plugins')
-rw-r--r--plugins/base/src/test/kotlin/expectActuals/ExpectActualsTest.kt5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/base/src/test/kotlin/expectActuals/ExpectActualsTest.kt b/plugins/base/src/test/kotlin/expectActuals/ExpectActualsTest.kt
index ab472ae0..c1d2c5a9 100644
--- a/plugins/base/src/test/kotlin/expectActuals/ExpectActualsTest.kt
+++ b/plugins/base/src/test/kotlin/expectActuals/ExpectActualsTest.kt
@@ -1,5 +1,6 @@
package expectActuals
+import org.jetbrains.dokka.model.withDescendants
import org.jetbrains.dokka.pages.ClasslikePageNode
import org.jetbrains.dokka.pages.PageNode
import org.jetbrains.dokka.testApi.testRunner.AbstractCoreTest
@@ -9,8 +10,6 @@ import org.junit.jupiter.api.Assertions.assertTrue
class ExpectActualsTest : AbstractCoreTest() {
- fun PageNode.childrenRec(): List<PageNode> = listOf(this) + children.flatMap { it.childrenRec() }
-
@Test
fun `three same named expect actual classes`() {
@@ -143,7 +142,7 @@ class ExpectActualsTest : AbstractCoreTest() {
configuration
) {
pagesTransformationStage = {
- val allChildren = it.childrenRec().filterIsInstance<ClasslikePageNode>()
+ val allChildren = it.withDescendants().filterIsInstance<ClasslikePageNode>().toList()
val commonJ = allChildren.filter { it.name == "A(jvm, js)" }
val commonN1 = allChildren.filter { it.name == "A(mingwX64, linuxX64)" }
val commonN2 = allChildren.filter { it.name == "A(iosX64, iosArm64)" }