Join Slack
Powered by
Is there a correct FIR extension point to use to a...
# compiler
r
rnett
07/18/2025, 3:35 AM
Is there a correct FIR extension point to use to add some annotations to some (non-generated) declarations? In particular,
@OptIn
and annotations with
@RequiresOptIn
. I'm currently doing it in
FirStatusTransformerExtension
and it has worked fine so far
d
dmitriy.novozhilov
07/18/2025, 7:48 AM
There is no such API. The fact its working in status extension is the coincidence and I wouldn't rely on that.
r
rnett
07/18/2025, 5:35 PM
👍 created
https://youtrack.jetbrains.com/issue/KT-79414/Add-FIR-extension-to-add-annotations-to-declarations
for adding a proper extension point
Open in Slack
Previous
Next