Is there any way to see compose generated code in ...
# compose
r
Is there any way to see compose generated code in IDE?
👀 2
g
Compose doesn't generate code, it changes compiler output which is bytecode You can find the generated .class file in build dir of the project or in resulting app
r
Ahh okay, so all addition of
composer
and
recompose
etc.. happens at run-time by
compose run-time
Was wondering if i can see a visualisation tree or the intermediate files in different use-cases. Thanks.
g
It's not happening on runtime, it's happening during compilation Compose uses compiler plugin for Kotlin compiler
👍 1
j
cc @amanda.hinchman-dominguez who has great Kotlin compiler knowledge🙂 In case you have a more drawn-out explanation of annotation processing vs compiler plugins (I'd love to learn more 😄)
2
r
That would be great!
g
annotation processing is much more limited, it only able to generate new source code based on existing sources, not modify existing declarations like compiler plugins
👍 2