Hi, is it possible for a compiler plugin to modify...
# compiler
e
Hi, is it possible for a compiler plugin to modify the generated sources? We want to automatically add
@Deprecated
annotations to declarations annotated with our custom annotation, but currently only our annotation appears in the sources, and the
@Deprecated
one does not. Am I supposed to use something else instead of a compiler plugin for this?
c
Are you looking for the compiled code to have the annotation, or are you trying to modify your own source code? Compiler plugins only change how it's converted from source to binary; they don't affect the source code in most cases. But you probably know that already, so I'm probably missing something. Where are you getting the generated code from? Is it a Gradle plugin, FIR or IR plugin, or another method? I think I can help either way, but I need a bit of clarification for what exactly you're trying to do.