aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/Utilities
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2017-02-24 10:51:22 +0100
committerDmitry Jemerov <yole@jetbrains.com>2017-02-24 10:51:22 +0100
commitedb0d90fbc44f611d806a06a12f1d8280e274b8e (patch)
tree774f67e64d09eb28203ab9d490c741ed221d51b6 /core/src/main/kotlin/Utilities
parent5da33851dfd3c7c88f939db2b02e979b0e977f87 (diff)
downloaddokka-edb0d90fbc44f611d806a06a12f1d8280e274b8e.tar.gz
dokka-edb0d90fbc44f611d806a06a12f1d8280e274b8e.tar.bz2
dokka-edb0d90fbc44f611d806a06a12f1d8280e274b8e.zip
Process all declarations with the same primary platform in a single pass; allow to provide default platforms based on declaration descriptor
Diffstat (limited to 'core/src/main/kotlin/Utilities')
-rw-r--r--core/src/main/kotlin/Utilities/DokkaModules.kt5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/src/main/kotlin/Utilities/DokkaModules.kt b/core/src/main/kotlin/Utilities/DokkaModules.kt
index 1f382f8c..5982d7dd 100644
--- a/core/src/main/kotlin/Utilities/DokkaModules.kt
+++ b/core/src/main/kotlin/Utilities/DokkaModules.kt
@@ -11,12 +11,11 @@ import org.jetbrains.dokka.Samples.SampleProcessingService
import org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment
import java.io.File
-const val defaultPlatformsName = "defaultPlatforms"
const val impliedPlatformsName = "impliedPlatforms"
class DokkaAnalysisModule(val environment: AnalysisEnvironment,
val options: DocumentationOptions,
- val defaultPlatforms: List<String>,
+ val defaultPlatformsProvider: DefaultPlatformsProvider,
val nodeReferenceGraph: NodeReferenceGraph,
val logger: DokkaLogger) : Module {
override fun configure(binder: Binder) {
@@ -36,7 +35,7 @@ class DokkaAnalysisModule(val environment: AnalysisEnvironment,
binder.bind<DocumentationOptions>().toInstance(options)
binder.bind<DokkaLogger>().toInstance(logger)
- binder.bind(StringListType).annotatedWith(Names.named(defaultPlatformsName)).toInstance(defaultPlatforms)
+ binder.bind<DefaultPlatformsProvider>().toInstance(defaultPlatformsProvider)
binder.bind<NodeReferenceGraph>().toInstance(nodeReferenceGraph)
}