org.jetbrains.dokka.analysis.resolve.DokkaKlibLibraryDependencyResolver.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dokka-analysis Show documentation
Show all versions of dokka-analysis Show documentation
Dokka is an API documentation engine for Kotlin and Java, performing the same function as Javadoc for Java
package org.jetbrains.dokka.analysis.resolve
import org.jetbrains.kotlin.library.uniqueName
import org.jetbrains.kotlin.library.unresolvedDependencies
/** TODO: replace by [NativeKlibLibraryInfo] after fix of KT-40734 */
internal class DokkaKlibLibraryDependencyResolver {
private val cachedDependencies = mutableMapOf* libraryName */String, DokkaKlibLibraryInfo>()
fun registerLibrary(libraryInfo: DokkaKlibLibraryInfo) {
cachedDependencies[libraryInfo.kotlinLibrary.uniqueName] = libraryInfo
}
fun resolveDependencies(libraryInfo: DokkaKlibLibraryInfo): List {
return libraryInfo.kotlinLibrary.unresolvedDependencies.mapNotNull { cachedDependencies[it.path] }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy