Chachako
11/24/2021, 12:22 PMuseFir
in Gradle before it can be used?dmitriy.novozhilov
11/24/2021, 12:31 PMChachako
11/24/2021, 12:35 PMdmitriy.novozhilov
11/24/2021, 12:40 PMdmitriy.novozhilov
11/24/2021, 12:40 PMChachako
11/24/2021, 12:42 PMChachako
11/24/2021, 12:43 PMdmitriy.novozhilov
11/24/2021, 12:50 PMI tried to write IR plugin myself, but it is separated from IDEAIf you want to access generated declarations right from the module which they are declared then you still need to implement it in frontend and backend. But in FIR API we improved this mechanism, so you will really generate declarations on frontend and then just fill their bodies in backend (IR). In current frontend you need to generate synthetic descriptors on frontend, generate independent declarations in IR and then update all references to those declarations in whole codebase, which is really annoying Also FIR plugin API is meant to be IDE friendly in work in IDE out of box without any additional work (you just enable compiler plugin in gradle, and IDE provide correct highlighting, completion and all other stuff on the fly. This part of FIR IDE plugin is under development right now and it's already shows very impressive results
Will it be public and allow people to develop Kotlin’s extensions based on it in the future?Yes, of course. We plan to release preview version of FIR API alongside with FIR itself. We hope it will be released with Kotlin 1.7.0
Chachako
11/24/2021, 12:55 PMIn current frontend you need to generate synthetic descriptors on frontend, generate independent declarations in IR and then update all references to those declarations in whole codebase, which is really annoyingTotally agree!
Chachako
11/24/2021, 12:58 PM