blob: c0073613f4b9f3ce1716bfd2a6e76cb5f69abf1e [file]
val NoOpApplier$stableprop: Int
field = androidx_compose_runtime_AbstractApplier$stableprop_getter()
@StabilityInferred(parameters = 0)
class NoOpApplier : AbstractApplier<Unit> {
constructor() /* primary */ {
super/*AbstractApplier*/<Unit>(root = Unit)
/* <init>() */
}
override fun insertBottomUp(index: Int, instance: Unit) {
}
override fun insertTopDown(index: Int, instance: Unit) {
}
override fun move(from: Int, to: Int, count: Int) {
}
protected override fun onClear() {
}
override fun remove(index: Int, count: Int) {
}
}
@Deprecated(message = "Synthetic declaration generated by the Compose compiler. Please do not use.", level = DeprecationLevel.HIDDEN)
fun NoOpApplier$stableprop_getter(): Int {
return #NoOpApplier$stable
}
@Composable
@FunctionKeyMeta(key = -191245756, startOffset = 401, endOffset = 588)
fun <T : Any> Test(fetcher: Function0<T>, onValue: Function1<String, Unit>, /* var */ $composer: Composer?, $changed: Int) {
var $composer: Composer? = $composer
{ // BLOCK
$composer = $composer.startRestartGroup(key = -191245756)
sourceInformation(composer = $composer, sourceInformation = "C(Test)14@479L107,14@471L115:testGenericComposableLambdaWithLocalDelegate.kt")
}
val $dirty: Int = $changed
when {
EQEQ(arg0 = $changed.and(other = 6), arg1 = 0) -> $dirty = $dirty.or(other = when {
$composer.changedInstance(value = fetcher) -> 4
else -> 2
})
}
when {
EQEQ(arg0 = $changed.and(other = 48), arg1 = 0) -> $dirty = $dirty.or(other = when {
$composer.changedInstance(value = onValue) -> 32
else -> 16
})
}
when {
$composer.shouldExecute(parametersChanged = EQEQ(arg0 = $dirty.and(other = 19), arg1 = 18).not(), flags = $dirty.and(other = 1)) -> { // BLOCK
when {
isTraceInProgress() -> traceEventStart(key = -191245756, dirty1 = $dirty, dirty2 = -1, info = "Test (testGenericComposableLambdaWithLocalDelegate.kt:13)")
}
Wrapper(content = run<Function2<Composer, Int, Unit>>(block = local inline fun <anonymous>(): Function2<Composer, Int, Unit> {
val tmp_0: ComposableLambda = rememberComposableLambda(key = -927262292, tracked = true, block = @Composable
@FunctionKeyMeta(key = -927262292, startOffset = 479, endOffset = 586)
local fun <anonymous>(/* var */ $composer: Composer?, $changed: Int) {
var $composer: Composer? = $composer
sourceInformation(composer = $composer, sourceInformation = "C15@507L38:testGenericComposableLambdaWithLocalDelegate.kt")
when {
$composer.shouldExecute(parametersChanged = EQEQ(arg0 = $changed.and(other = 3), arg1 = 2).not(), flags = $changed.and(other = 1)) -> { // BLOCK
when {
isTraceInProgress() -> traceEventStart(key = -927262292, dirty1 = $changed, dirty2 = -1, info = "Test.<anonymous> (testGenericComposableLambdaWithLocalDelegate.kt:15)")
}
val result: T?
val result$delegate: MutableState<T> = { // BLOCK
sourceInformationMarkerStart(composer = $composer, key = -2040831406, sourceInformation = "CC(remember):testGenericComposableLambdaWithLocalDelegate.kt#9igjgp")
val tmp_1: MutableState<T> = cache<MutableState<T>>(/* <this> = $composer, */ invalid = false, block = local fun <anonymous>(): MutableState<T> {
return mutableStateOf<T>(value = fetcher.invoke())
}
)
sourceInformationMarkerEnd(composer = $composer)
tmp_1
}
local get(): T? {
return getValue<T>(/* <this> = result$delegate, */ thisObj = null, property = KProperty0<T?>(
/* bound = */ [],
/* getter = */ local fun(): T? )
)
}
onValue.invoke(p1 = toString(/* <this> = <get-result>() */))
when {
isTraceInProgress() -> traceEventEnd()
}
}
else -> $composer.skipToGroupEnd()
}
}
, $composer = $composer, $changed = 54)
return remember<Function2<Composer, Int, Unit>>(key1 = tmp_0, calculation = local inline fun <anonymous>(): Function2<Composer, Int, Unit> {
return Function2<Composer, Int, Unit>(
/* bound = */ [tmp_0],
/* invoke = */ local fun(<this>: ComposableLambda, p0: Composer, p1: Int) {
return <this>.invoke(p1 = p0, p2 = p1) /*~> Unit */
}
)
}
, $composer = $composer, $changed = 0)
}
) /*as Function2<Composer, Int, Unit> */, $composer = $composer, $changed = 6)
when {
isTraceInProgress() -> traceEventEnd()
}
}
else -> $composer.skipToGroupEnd()
}
{ // BLOCK
{ // BLOCK
val tmp_2: ScopeUpdateScope? = $composer.endRestartGroup()
when {
EQEQ(arg0 = tmp_2, arg1 = null) -> null
else -> tmp_2.updateScope(block = local fun <anonymous>($composer: Composer?, $force: Int) {
return Test<T>(fetcher = fetcher, onValue = onValue, $composer = $composer, $changed = updateChangedFlags(flags = $changed.or(other = 1)))
}
)
}
}
}
}
@Composable
@ComposableInferredTarget(scheme = "[0[0]]")
@FunctionKeyMeta(key = -1722707751, startOffset = 602, endOffset = 664)
fun Wrapper(content: Function2<Composer, Int, Unit>, /* var */ $composer: Composer?, $changed: Int) {
var $composer: Composer? = $composer
{ // BLOCK
$composer = $composer.startRestartGroup(key = -1722707751)
sourceInformation(composer = $composer, sourceInformation = "C(Wrapper)22@653L9:testGenericComposableLambdaWithLocalDelegate.kt")
}
val $dirty: Int = $changed
when {
EQEQ(arg0 = $changed.and(other = 6), arg1 = 0) -> $dirty = $dirty.or(other = when {
$composer.changedInstance(value = content) -> 4
else -> 2
})
}
when {
$composer.shouldExecute(parametersChanged = EQEQ(arg0 = $dirty.and(other = 3), arg1 = 2).not(), flags = $dirty.and(other = 1)) -> { // BLOCK
when {
isTraceInProgress() -> traceEventStart(key = -1722707751, dirty1 = $dirty, dirty2 = -1, info = "Wrapper (testGenericComposableLambdaWithLocalDelegate.kt:21)")
}
content.invoke(p1 = $composer, p2 = 14.and(other = $dirty))
when {
isTraceInProgress() -> traceEventEnd()
}
}
else -> $composer.skipToGroupEnd()
}
{ // BLOCK
{ // BLOCK
val tmp_3: ScopeUpdateScope? = $composer.endRestartGroup()
when {
EQEQ(arg0 = tmp_3, arg1 = null) -> null
else -> tmp_3.updateScope(block = local fun <anonymous>($composer: Composer?, $force: Int) {
return Wrapper(content = content, $composer = $composer, $changed = updateChangedFlags(flags = $changed.or(other = 1)))
}
)
}
}
}
}
fun box(): String {
var result: String = "not composed"
Composition(applier = NoOpApplier(), parent = Recomposer(effectCoroutineContext = EmptyCoroutineContext)).setContent(content = Function2<Composer, Int, Unit>(
/* bound = */ [composableLambdaInstance(key = 785926599, tracked = true, block = @Composable
@FunctionKeyMeta(key = 785926599, startOffset = 1111, endOffset = 1178)
local fun <anonymous>(/* var */ $composer: Composer?, $changed: Int) {
var $composer: Composer? = $composer
sourceInformation(composer = $composer, sourceInformation = "C36@1136L8,36@1121L51:testGenericComposableLambdaWithLocalDelegate.kt")
when {
$composer.shouldExecute(parametersChanged = EQEQ(arg0 = $changed.and(other = 3), arg1 = 2).not(), flags = $changed.and(other = 1)) -> { // BLOCK
when {
isTraceInProgress() -> traceEventStart(key = 785926599, dirty1 = $changed, dirty2 = -1, info = "box.<anonymous> (testGenericComposableLambdaWithLocalDelegate.kt:36)")
}
Test<String>(fetcher = { // BLOCK
sourceInformationMarkerStart(composer = $composer, key = -638781649, sourceInformation = "CC(remember):testGenericComposableLambdaWithLocalDelegate.kt#9igjgp")
val tmp_4: Function0<String> = cache<Function0<String>>(/* <this> = $composer, */ invalid = false, block = local fun <anonymous>(): Function0<String> {
return local fun <anonymous>(): String {
return "OK"
}
}
)
sourceInformationMarkerEnd(composer = $composer)
tmp_4
}, onValue = local fun <anonymous>(it: String) {
result = it
}
, $composer = $composer, $changed = 6)
when {
isTraceInProgress() -> traceEventEnd()
}
}
else -> $composer.skipToGroupEnd()
}
}
)],
/* invoke = */ local fun(<this>: ComposableLambda, p0: Composer, p1: Int) {
return <this>.invoke(p1 = p0, p2 = p1) /*~> Unit */
}
)
/*as Function2<Composer, Int, Unit> */)
return result
}