Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
66 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
kotlin-analysis/src/main/kotlin/org/jetbrains/dokka/analysis/resolve/CommonKlibModuleInfo.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package org.jetbrains.dokka.analysis.resolve | ||
|
||
import org.jetbrains.kotlin.analyzer.ModuleInfo | ||
import org.jetbrains.kotlin.analyzer.common.CommonPlatformAnalyzerServices | ||
import org.jetbrains.kotlin.library.KotlinLibrary | ||
import org.jetbrains.kotlin.name.Name | ||
import org.jetbrains.kotlin.platform.CommonPlatforms | ||
import org.jetbrains.kotlin.platform.TargetPlatform | ||
import org.jetbrains.kotlin.resolve.PlatformDependentAnalyzerServices | ||
|
||
internal class CommonKlibModuleInfo( | ||
override val name: Name, | ||
val kotlinLibrary: KotlinLibrary, | ||
private val dependOnModules: List<ModuleInfo> | ||
) : ModuleInfo { | ||
override fun dependencies(): List<ModuleInfo> = dependOnModules | ||
|
||
override fun dependencyOnBuiltIns(): ModuleInfo.DependencyOnBuiltIns = ModuleInfo.DependencyOnBuiltIns.LAST | ||
|
||
override val platform: TargetPlatform | ||
get() = CommonPlatforms.defaultCommonPlatform | ||
|
||
override val analyzerServices: PlatformDependentAnalyzerServices | ||
get() = CommonPlatformAnalyzerServices | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters