diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2018-03-07 22:42:55 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2018-03-07 22:42:55 +0300 |
commit | 8db3b40a0e82ff0847d078cf496dfd6edc1464a5 (patch) | |
tree | 902a413c24fd39abfbac60c1104bec9a5b1d1606 /core/src/main | |
parent | 3278122d5fd72efc03bd8339865c7d3c19582e8d (diff) | |
download | dokka-8db3b40a0e82ff0847d078cf496dfd6edc1464a5.tar.gz dokka-8db3b40a0e82ff0847d078cf496dfd6edc1464a5.tar.bz2 dokka-8db3b40a0e82ff0847d078cf496dfd6edc1464a5.zip |
Bind language service back
Diffstat (limited to 'core/src/main')
-rw-r--r-- | core/src/main/kotlin/Formats/FormatDescriptor.kt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/main/kotlin/Formats/FormatDescriptor.kt b/core/src/main/kotlin/Formats/FormatDescriptor.kt index a1120c00..b497fb0f 100644 --- a/core/src/main/kotlin/Formats/FormatDescriptor.kt +++ b/core/src/main/kotlin/Formats/FormatDescriptor.kt @@ -26,6 +26,7 @@ abstract class FileGeneratorBasedFormatDescriptor : FormatDescriptor { bind<Generator>() toType NodeLocationAwareGenerator::class bind<NodeLocationAwareGenerator>() toType generatorServiceClass + bind<LanguageService>() toType languageServiceClass lazyBind<OutlineFormatService>() toOptional (outlineServiceClass) lazyBind<FormatService>() toOptional formatServiceClass @@ -36,4 +37,6 @@ abstract class FileGeneratorBasedFormatDescriptor : FormatDescriptor { abstract val outlineServiceClass: KClass<out OutlineFormatService>? abstract val generatorServiceClass: KClass<out FileGenerator> abstract val packageListServiceClass: KClass<out PackageListService>? + + open val languageServiceClass: KClass<out LanguageService> = KotlinLanguageService::class }
\ No newline at end of file |