diff --git a/projects/koin-ksp-compiler/src/jvmMain/kotlin/org/koin/compiler/generator/DefinitionWriter.kt b/projects/koin-ksp-compiler/src/jvmMain/kotlin/org/koin/compiler/generator/DefinitionWriter.kt index ff1d64b..b905177 100644 --- a/projects/koin-ksp-compiler/src/jvmMain/kotlin/org/koin/compiler/generator/DefinitionWriter.kt +++ b/projects/koin-ksp-compiler/src/jvmMain/kotlin/org/koin/compiler/generator/DefinitionWriter.kt @@ -95,7 +95,7 @@ class DefinitionWriter( } private fun List.generateParamFunction(): String { - return if (any { it is KoinMetaData.DefinitionParameter.ParameterInject }) "params -> " else "" + return if (any { it is KoinMetaData.DefinitionParameter.ParameterInject }) "params -> " else "_ -> " } private fun String?.generateQualifier(): String = when { diff --git a/projects/koin-ksp-compiler/src/jvmMain/kotlin/org/koin/compiler/scanner/ext/KspExt.kt b/projects/koin-ksp-compiler/src/jvmMain/kotlin/org/koin/compiler/scanner/ext/KspExt.kt index 061a3e5..5e14060 100644 --- a/projects/koin-ksp-compiler/src/jvmMain/kotlin/org/koin/compiler/scanner/ext/KspExt.kt +++ b/projects/koin-ksp-compiler/src/jvmMain/kotlin/org/koin/compiler/scanner/ext/KspExt.kt @@ -138,7 +138,7 @@ internal fun List.getValueArgument(): String? { fun KSClassDeclaration.getPackageName() : String = packageName.asString() -val forbiddenKeywords = listOf("in","interface","it") +val forbiddenKeywords = listOf("in","interface") fun String.filterForbiddenKeywords() : String{ return split(".").joinToString(".") { if (it in forbiddenKeywords) "`$it`" else it