Hello! Where can I read about k2 compiler from com...
# k2-adopters
p
Hello! Where can I read about k2 compiler from compiler plugin development point of view?
d
There are docs in kotlin repository, you can start from them (it's little outdated in particular minor details, but main concepts are fine) For examples of code you can K2 implementations for official JetBrains plugins, most of them are ported to K2 already If you want to try write your own plugin to play with API I can recommend this repo as a template with project setup (just update kotlin versions to something more recent, like
1.8.20-dev-57
) And also join #compiler channel
thank you color 1
p
Thanks @dmitriy.novozhilov! As I understand only fir part changed? IR part stays the same (org.jetbrains.kotlin.backend.common.extensions.IrGenerationExtension) ?
d
That's right