| // |
| // Source |
| // ------------------------------------------ |
| |
| import androidx.compose.runtime.Composable |
| |
| class A { |
| val x = @Composable {} |
| } |
| |
| // |
| // Transformed IR |
| // ------------------------------------------ |
| |
| @StabilityInferred(parameters = 1) |
| class A { |
| val x: Function2<Composer, Int, Unit> = ComposableSingletons%TestKt.lambda-1 |
| static val %stable: Int = 0 |
| } |
| internal object ComposableSingletons%TestKt { |
| val lambda-1: Function2<Composer, Int, Unit> = composableLambdaInstance(<>, false) { %composer: Composer?, %changed: Int -> |
| sourceInformation(%composer, "C:Test.kt") |
| if (%changed and 0b0011 != 0b0010 || !%composer.skipping) { |
| if (isTraceInProgress()) { |
| traceEventStart(<>, %changed, -1, <>) |
| } |
| Unit |
| if (isTraceInProgress()) { |
| traceEventEnd() |
| } |
| } else { |
| %composer.skipToGroupEnd() |
| } |
| } |
| } |