Join Slack
Powered by
Hey! Is there a MetaExtension that would allow me...
# arrow-meta
a
Ahmed Mourad
04/02/2020, 7:15 AM
Hey! Is there a MetaExtension that would allow me to apply transformations to compiler generated methods?
r
raulraja
04/02/2020, 8:46 AM
If I’m not mistaken those methods would be already present in the IR backend phase where you can transform any part of the program including methods
https://meta.arrow-kt.io/docs/apidocs/compiler-plugin/arrow.meta.dsl.codegen.ir/-ir-syntax/
raulraja
04/02/2020, 8:48 AM
https://github.com/arrow-kt/arrow-meta/blob/sv-test-proofs/compiler-plugin/src/main/kotlin/arrow/meta/plugins/proofs/ProofsPlugin.kt#L34-L39
raulraja
04/02/2020, 8:48 AM
Example of call site and here are some of the impl it calls:
raulraja
04/02/2020, 8:49 AM
https://github.com/arrow-kt/arrow-meta/blob/sv-test-proofs/compiler-plugin/src/main/kotlin/arrow/meta/plugins/proofs/phases/ir/ProofsIrCodegen.kt
a
Ahmed Mourad
04/02/2020, 2:28 PM
But this's does not work for the JVM yet, does it?
r
raulraja
04/02/2020, 2:42 PM
it’s not 100 bug free but it works if you enable IR
raulraja
04/02/2020, 2:42 PM
it should be more stable after 1.4
a
Ahmed Mourad
04/02/2020, 2:57 PM
Interesting, but would that require me to ask the users to enable IR as well?
2
Views
Open in Slack
Previous
Next