All Downloads are FREE. Search and download functionalities are using the official Maven repository.

model.ancestryNode.kt Maven / Gradle / Ivy

Go to download

Dokka is an API documentation engine for Kotlin and Java, performing the same function as Javadoc for Java

There is a newer version: 2.0.0
Show newest version
package org.jetbrains.dokka.model

data class AncestryNode(
    val typeConstructor: TypeConstructor,
    val superclass: AncestryNode?,
    val interfaces: List,
) {
    fun allImplementedInterfaces(): List {
        fun traverseInterfaces(ancestry: AncestryNode): List =
            ancestry.interfaces.flatMap { listOf(it.typeConstructor) + traverseInterfaces(it) } +
                    (ancestry.superclass?.let(::traverseInterfaces) ?: emptyList())
        return traverseInterfaces(this).distinct()
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy