aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.run/dolovov_ -unresolved-types.run.xml24
-rw-r--r--kotlin-analysis/src/main/kotlin/org/jetbrains/dokka/analysis/KotlinAnalysis.kt15
2 files changed, 31 insertions, 8 deletions
diff --git a/.run/dolovov_ -unresolved-types.run.xml b/.run/dolovov_ -unresolved-types.run.xml
new file mode 100644
index 00000000..3f5d341c
--- /dev/null
+++ b/.run/dolovov_ -unresolved-types.run.xml
@@ -0,0 +1,24 @@
+<component name="ProjectRunConfigurationManager">
+ <configuration default="false" name="Dolovov: -unresolved-types" type="GradleRunConfiguration" factoryName="Gradle" folderName="sample-projects">
+ <ExternalSystemSettings>
+ <option name="executionName" />
+ <option name="externalProjectPath" value="$PROJECT_DIR$/integration-tests/gradle/projects/it-multiplatform-0" />
+ <option name="externalSystemIdString" value="GRADLE" />
+ <option name="scriptParameters" value="" />
+ <option name="taskDescriptions">
+ <list />
+ </option>
+ <option name="taskNames">
+ <list>
+ <option value="clean" />
+ <option value="dokkaHtml" />
+ </list>
+ </option>
+ <option name="vmOptions" value="" />
+ </ExternalSystemSettings>
+ <GradleScriptDebugEnabled>true</GradleScriptDebugEnabled>
+ <method v="2">
+ <option name="Gradle.BeforeRunTask" enabled="false" tasks="publishToMavenLocal" externalProjectPath="$PROJECT_DIR$" vmOptions="" scriptParameters="" />
+ </method>
+ </configuration>
+</component> \ No newline at end of file
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)
}