hi, I want to use ksp to generate new code, but I ...
# ksp
r
hi, I want to use ksp to generate new code, but I dont want to generate a new file, just add the code into the generated class file, I google it, but the result says I should use asm to do this, Is this correct?
h
KSP can’t change your code, a Kotlin compiler plugin can, but the compiler plugin api is not stable.
a
What you seem to be looking for is weaving indeed. KSP can only generate a new file not change existing ones