aboutsummaryrefslogtreecommitdiff
path: root/kotlin-analysis/src/main/kotlin
diff options
context:
space:
mode:
Diffstat (limited to 'kotlin-analysis/src/main/kotlin')
-rw-r--r--kotlin-analysis/src/main/kotlin/org/jetbrains/dokka/analysis/KotlinAnalysis.kt15
1 files changed, 7 insertions, 8 deletions
diff --git a/kotlin-analysis/src/main/kotlin/org/jetbrains/dokka/analysis/KotlinAnalysis.kt b/kotlin-analysis/src/main/kotlin/org/jetbrains/dokka/analysis/KotlinAnalysis.kt
index e723768c..b37c6688 100644
--- a/kotlin-analysis/src/main/kotlin/org/jetbrains/dokka/analysis/KotlinAnalysis.kt
+++ b/kotlin-analysis/src/main/kotlin/org/jetbrains/dokka/analysis/KotlinAnalysis.kt
@@ -8,14 +8,13 @@ import org.jetbrains.dokka.model.SourceSetDependent
import org.jetbrains.dokka.plugability.DokkaContext
fun KotlinAnalysis(context: DokkaContext): KotlinAnalysis {
- val environments = context.configuration.sourceSets
- .associate { sourceSet ->
- sourceSet to createEnvironmentAndFacade(
- logger = context.logger,
- configuration = context.configuration,
- sourceSet = sourceSet
- )
- }
+ val environments = context.configuration.sourceSets.associateWith { sourceSet ->
+ createEnvironmentAndFacade(
+ logger = context.logger,
+ configuration = context.configuration,
+ sourceSet = sourceSet
+ )
+ }
return KotlinAnalysisImpl(environments)
}