<How can I access the body of methods during Kotli...
# stackoverflow
u
How can I access the body of methods during Kotlin annotation processing? Summary I'm wondering if there's a way I can apply annotations to functions and access the body of those functions during annotation processing. If it's not possible to directly get the method body through inspection of Element objects within the annotation processor, are there any other alternatives to accessing the source code of the function that these annotations are applied to? Details As part of a project I'm working on, I'm trying to use kapt to inspect Kotlin functions annotated...