aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-12-02 05:18:41 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-12-02 05:18:41 +0300
commit5e9dd421cd323c138486cf8b38b6ce7158bcca8a (patch)
tree89c5898834f5213e1778905f22587205cf4163a4
parentc7523225200a3e24d24fb3b0492d5c377246fc69 (diff)
downloaddokka-5e9dd421cd323c138486cf8b38b6ce7158bcca8a.tar.gz
dokka-5e9dd421cd323c138486cf8b38b6ce7158bcca8a.tar.bz2
dokka-5e9dd421cd323c138486cf8b38b6ce7158bcca8a.zip
Bind NodeLocationAwareGenerator to Generator
-rw-r--r--core/src/main/kotlin/Formats/FormatDescriptor.kt9
1 files changed, 4 insertions, 5 deletions
diff --git a/core/src/main/kotlin/Formats/FormatDescriptor.kt b/core/src/main/kotlin/Formats/FormatDescriptor.kt
index d3861b82..aa00df97 100644
--- a/core/src/main/kotlin/Formats/FormatDescriptor.kt
+++ b/core/src/main/kotlin/Formats/FormatDescriptor.kt
@@ -2,8 +2,6 @@ package org.jetbrains.dokka.Formats
import com.google.inject.Binder
import org.jetbrains.dokka.*
-import org.jetbrains.dokka.Model.DescriptorSignatureProvider
-import org.jetbrains.dokka.Samples.SampleProcessingService
import org.jetbrains.dokka.Utilities.bind
import org.jetbrains.dokka.Utilities.toOptional
import org.jetbrains.dokka.Utilities.toType
@@ -18,16 +16,17 @@ interface FormatDescriptorOutputComponent {
fun configureOutput(binder: Binder)
}
-interface FormatDescriptor: FormatDescriptorAnalysisComponent, FormatDescriptorOutputComponent
+interface FormatDescriptor : FormatDescriptorAnalysisComponent, FormatDescriptorOutputComponent
abstract class FileGeneratorBasedFormatDescriptor : FormatDescriptor {
override fun configureOutput(binder: Binder): Unit = with(binder) {
+ bind<Generator>() toType NodeLocationAwareGenerator::class
+
bind<OutlineFormatService>() toOptional (outlineServiceClass)
bind<FormatService>() toOptional formatServiceClass
- bind<FileGenerator>() toType generatorServiceClass
- //bind<Generator>() toType generatorServiceClass
+ bind<NodeLocationAwareGenerator>() toType generatorServiceClass
bind<PackageListService>() toOptional packageListServiceClass
}