micronaut-projects / micronaut-sourcegen

Compilation time source code generators
Apache License 2.0
7 stars 4 forks source link

KSP implementation missing DefineAndAssign #153

Open graemerocher opened 1 month ago

graemerocher commented 1 month ago

Some of the recent additions have missing handling for Kotlin Poet.

Expected Behavior

Should have feature parity with Java implementation

Actual Behaviour

Unrecognized statement: DefineAndAssign[variable=Local[name=builder, type=JavaClass[type=class java.lang.StringBuilder, nullable=false]], expression=NewInstance[type=JavaClass[type=class java.lang.StringBuilder, nullable=false], values=[Constant[type=JavaClass[type=class java.lang.String, nullable=false], value=Person[]]]]
        at io.micronaut.sourcegen.KotlinPoetSourceGenerator$Companion.renderStatement(KotlinPoetSourceGenerator.kt:619)

Steps To Reproduce

No response

Environment Information

No response

Example Application

No response

Version

1.3.x