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
hfhbd
04/01/2025, 3:20 PM
KSP can’t change your code, a Kotlin compiler plugin can, but the compiler plugin api is not stable.
a
atlantis210
04/02/2025, 7:03 AM
What you seem to be looking for is weaving indeed. KSP can only generate a new file not change existing ones