Hey folks! I've looked at the channel list and cou...
# compiler
m
Hey folks! I've looked at the channel list and couldn't find a compiler plugin specific one so if this isn't the right channel then forgive me and point me to the right one please :) I'm starting learning about compiler plugins. I've read a bunch of posts and now I'd like to do something in practice. I have a couple of questions: 1. If I want to make my plugin work with all Kotlin targets then which APIs should I avoid? For example can I use Psi for inspection? 2. Is it possible to configure the plugin so that it's executed after or before some specific Kotlin compiler transform? For example I'd like to run my plugin before or after Kotlin compiler processes data classes. Is this possible? 3. Does Kotlin Ir contain info about line numbers? I was able to get that info using Psi and DocumentManager but I'm not sure if this is the best way to do it and if it'll work only on JVM or on all targets.