diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-12-02 05:18:41 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-12-02 05:18:41 +0300 |
commit | 5e9dd421cd323c138486cf8b38b6ce7158bcca8a (patch) | |
tree | 89c5898834f5213e1778905f22587205cf4163a4 /core | |
parent | c7523225200a3e24d24fb3b0492d5c377246fc69 (diff) | |
download | dokka-5e9dd421cd323c138486cf8b38b6ce7158bcca8a.tar.gz dokka-5e9dd421cd323c138486cf8b38b6ce7158bcca8a.tar.bz2 dokka-5e9dd421cd323c138486cf8b38b6ce7158bcca8a.zip |
Bind NodeLocationAwareGenerator to Generator
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/kotlin/Formats/FormatDescriptor.kt | 9 |
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 } |