aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-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
}