Is there a way for the compiler and IDE (for autoc...
# compiler
a
Is there a way for the compiler and IDE (for autocompletion) to know about a method that will be generated and available on runtime? Example: I have an annotation that will generate a method and another that will create a companion object in case the class doesn't have one. Is possible for that classes that are annotated with those annotations, to have autocompletion and know on compile time about those methods? Or is necessary to create an IDE plugin? Right know is not possible to create an extension on the companion object without creating it explicitly.
😮 1
t
Yes, FIR plugins can be used for this. However, this works only for JVM in 2024.1, multiplatform is target of 2024.2 I think. Description of FIR: https://github.com/JetBrains/kotlin/blob/master/docs/fir FIR plugin prototype: https://github.com/JetBrains/kotlin/blob/master/plugins/fir-plugin-prototype