Eugen Martynov
11/20/2024, 2:36 PMephemient
11/20/2024, 7:47 PMephemient
11/20/2024, 7:58 PM@Composable foo()
@Composable bar() { foo() }
the frontend sees that @Composdable foo(): Unit
can call @Composable bar(): Unit
then the codegen produces something equivalent to
fun foo(composer: Composer, changed: Int) { bar(composer, ...) }
due to the Compose compiler plugin modifying how @Composable
functions workEugen Martynov
11/21/2024, 3:01 PMephemient
11/21/2024, 3:55 PMEugen Martynov
11/21/2024, 4:34 PMephemient
11/21/2024, 9:14 PM@Composable fun bar()
based on the Kotlin metadata which does exist, not based off of the presence or absence of bar:(Landroidx/compose/runtime/Composer;I)V
in the bytecodeephemient
11/21/2024, 9:15 PMEugen Martynov
11/22/2024, 1:50 PM