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

org.jetbrains.dokka.analysis.DokkaNativeKlibLibraryDependencyResolver.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: 1.8.20
Show newest version
package org.jetbrains.dokka.analysis

import org.jetbrains.kotlin.library.uniqueName
import org.jetbrains.kotlin.library.unresolvedDependencies

/** TODO: replace by [NativeKlibLibraryInfo] after fix of KT-40734 */
internal class DokkaNativeKlibLibraryDependencyResolver {
    private val cachedDependencies = mutableMapOf()

    fun registerLibrary(libraryInfo: DokkaNativeKlibLibraryInfo) {
        cachedDependencies[libraryInfo.kotlinLibrary.uniqueName] = libraryInfo
    }

    fun resolveDependencies(libraryInfo: DokkaNativeKlibLibraryInfo): List {
        return libraryInfo.kotlinLibrary.unresolvedDependencies.mapNotNull { cachedDependencies[it.path] }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy