diff options
-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 |