https://kotlinlang.org logo
#ksp
Title
# ksp
r

rcd27

07/21/2022, 10:14 AM
Greetings. Thinking about triggering some events on function calls. For example
@TriggerLoggingOnCall fun foo()
. As soon as
KSP
does not modify the source code, I can't call just
logThat()
in the function body. The question is: can close my task with
KSP
?
e

ephemient

07/21/2022, 10:26 AM
no, you need a compiler plugin or java agent to inject code into existing functions
✔️ 1
3 Views