Using TreeTranslator to rename functions not working for Kotlin
Using TreeTranslator to rename functions not working for Kotlin I am trying to rename a method in a Java interface and a function in a Kotlin interface during building according to AST (Abstract Syntax Tree) rewriting. For this question we ignore the implications that renaming a method/function brings for invocations. To find the method/function to rename I am using a custom annotation and annotation processor. I have it working for the Java interface by following these instructions. I created a new project with three modules. The app module, annotation module and annotation processor module. The app module is an Android App and contains two separate Java and Kotlin interface files with one annotated method/function each. RenameJava.java package nl.peperzaken.renametest; import nl.peperzaken.renameannotation.Rename; public interface RenameJava { @Rename void methodToRename(); } RenameKotlin.kt package nl.peperzaken.renametest import nl.peperzaken.renameannotation.Rename interfa...