diff options
Diffstat (limited to 'kotlin-analysis/src')
-rw-r--r-- | kotlin-analysis/src/main/kotlin/org/jetbrains/dokka/analysis/KotlinAnalysis.kt | 15 |
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) } |