From 950d583861ee3d6499e66284a8c2bee8197ec3ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matou=C5=A1=20Ku=C4=8Dera?= Date: Sat, 11 May 2024 19:16:11 +0200 Subject: [PATCH] fix(generator-accessor-plugin): wrong source type --- .../generator/accessor/context/impl/KotlinGenerationContext.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/accessor/src/main/kotlin/me/kcra/takenaka/generator/accessor/context/impl/KotlinGenerationContext.kt b/generator/accessor/src/main/kotlin/me/kcra/takenaka/generator/accessor/context/impl/KotlinGenerationContext.kt index 5cdabc8d759..8a3ca6100b7 100644 --- a/generator/accessor/src/main/kotlin/me/kcra/takenaka/generator/accessor/context/impl/KotlinGenerationContext.kt +++ b/generator/accessor/src/main/kotlin/me/kcra/takenaka/generator/accessor/context/impl/KotlinGenerationContext.kt @@ -391,7 +391,7 @@ open class KotlinGenerationContext( PropertySpec.builder(namingStrategy.member(GeneratedMemberType.LOOKUP), types.KT_MAPPING_LOOKUP) .addKdoc("Mapping lookup index.") .initializer { - beginControlFlow("%M", types.KT_MAPPING_LOOKUP) + beginControlFlow("%M", types.KT_MAPPING_LOOKUP_DSL) names.forEach { name -> addStatement("put(%T)", name.toKClassName())