First of all, a few little disclaimers:
I will try my best to react in a timely manner on your questions, but, unfortunately, I cannot guarantee that discussions won’t hang from time to time on my side (especially, initially, when I have to dive into the context).
Also, just to be clear, I’m operating here completely out of my curiosity about your work and wish to help. All my advices and suggestions shouldn’t be treated as an official support from Kotlin Team, nor as an encouragement to write compiler plugins. Compiler API is still unstable, no guarantees are made about it, we are not responsible for any issues and poor UX with it, blah-blah-blah, you get it 🙂 Here, I’m just a guy who happens to know a bit how Kotlin Compiler works