Hi! Is it somehow possible to "attach" kdoc comments to generated FIR elements? Given that you can't really browse the sources of generated code, I would like to at least generate some doc comments to further describe what it does.
I only found this piece of code:
https://github.com/JetBrains/kotlin/blob/master/compiler/fir/fir-serialization/src[…]etbrains/kotlin/fir/serialization/FirKLibSerializerExtension.kt
This makes me think its not an actual feature, but I could maybe trick kotlin into allowing it if I implement my own tree structure that only returns a doc comment? If it works - I'm already doing worse stuff in my plugin... 😆
Liam
09/09/2023, 10:23 AM
The comments only really need to show up if someone uses the module that uses the plugin as a dependency, so it would be fine if they are just in the library.
d
dmitriy.novozhilov
09/09/2023, 10:36 AM
Hey
There is no such functionality, please create a request at kotl.in/issue
dmitriy.novozhilov
09/09/2023, 10:37 AM
I must warn you that it most likely won't be processed in 2.0 release timeline
l
Liam
09/09/2023, 10:39 AM
Okay thanks, I'll create an issue later. It's just a nice to have of course, so nothing too important