Last active
August 9, 2024 19:08
-
-
Save Bruno125/1d34d5021c23fa6fc4fd6549c0df35d2 to your computer and use it in GitHub Desktop.
Error logs when trying to compile a Kobweb site enabling compilerOptions.target = "es2015" + K2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> Task :site:compileProductionExecutableKotlinJs FAILED | |
e: file:///mnt/agent/work/5b4bef35b35b9f12/compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/layout/SubcomposeLayout.kt:585:1 org.jetbrains.kotlin.backend.common.CompilationException: Back-end: Please report this problem https://kotl.in/issue | |
/mnt/agent/work/5b4bef35b35b9f12/compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/layout/SubcomposeLayout.kt:585:1 | |
Problem with `@OptIn(markerClass = [ExperimentalComposeUiApi::class]) | |
internal class LayoutNodeSubcompositionsState { | |
constructor(root: LayoutNode, slotReusePolicy: SubcomposeSlotReusePolicy, /* var */ $box: LayoutNodeSubcompositionsState?) /* primary */ { | |
super/*Any*/() | |
{ // BLOCK | |
<this>.#root = root | |
<this>.#compositionContext = null | |
<this>.#slotReusePolicy = slotReusePolicy | |
<this>.#currentIndex = 0 | |
var tmp: LayoutNodeSubcompositionsState = <this> | |
var tmp$ret$0: MutableMap<LayoutNode, NodeState> | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
tmp$ret$0 = LinkedHashMap<Any?, Any?>() | |
return Unit_getInstance() | |
} | |
} | |
tmp.#nodeToNodeState = tmp$ret$0 | |
var tmp: LayoutNodeSubcompositionsState = <this> | |
var tmp$ret$1: MutableMap<Any?, LayoutNode> | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
tmp$ret$1 = LinkedHashMap<Any?, Any?>() | |
return Unit_getInstance() | |
} | |
} | |
tmp.#slotIdToNode = tmp$ret$1 | |
<this>.#scope = Scope($outer = <this>) | |
<this>.#intermediateMeasureScope = IntermediateMeasureScopeImpl($outer = <this>) | |
var tmp: LayoutNodeSubcompositionsState = <this> | |
tmp.#intermediateMeasurePolicy = &error("") /* ERROR: unsupported element type: IrRawFunctionReferenceImpl */ | |
var tmp: LayoutNodeSubcompositionsState = <this> | |
var tmp$ret$2: MutableMap<Any?, LayoutNode> | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
tmp$ret$2 = LinkedHashMap<Any?, Any?>() | |
return Unit_getInstance() | |
} | |
} | |
tmp.#precomposeMap = tmp$ret$2 | |
<this>.#reusableSlotIdsSet = SlotIdsSet(set = #VOID) | |
<this>.#reusableCount = 0 | |
<this>.#precomposedCount = 0 | |
<this>.#NoIntrinsicsMessage = "Asking for intrinsic measurements of SubcomposeLayout layouts is not supported. This includes components that are built on top of SubcomposeLayout, such as lazy lists, BoxWithConstraints, TabRow, etc. To mitigate this:\n- if intrinsic measurements are used to achieve 'match parent' sizing,, consider replacing the parent of the component with a custom layout which controls the order in which children are measured, making intrinsic measurement not needed\n- adding a size modifier to the component, in order to fast return the queried intrinsic measurement." | |
} | |
} | |
private fun <get-root>($this: LayoutNodeSubcompositionsState): LayoutNode { | |
return $this.#root | |
} | |
private /* final field */ val root: LayoutNode | |
fun <set-compositionContext>(<set-?>: CompositionContext?) { | |
<this>.#compositionContext = <set-?> | |
} | |
fun <get-compositionContext>(): CompositionContext? { | |
return <this>.#compositionContext | |
} | |
private var compositionContext: CompositionContext? | |
fun <set-slotReusePolicy>(value: SubcomposeSlotReusePolicy) { | |
when { | |
EQEQEQ(arg0 = <this>.#slotReusePolicy, arg1 = value).not() -> { // BLOCK | |
<this>.#slotReusePolicy = value | |
<this>.disposeOrReuseStartingFromIndex(startIndex = 0) | |
Unit_getInstance() | |
} | |
} | |
} | |
fun <get-slotReusePolicy>(): SubcomposeSlotReusePolicy { | |
return <this>.#slotReusePolicy | |
} | |
private var slotReusePolicy: SubcomposeSlotReusePolicy | |
fun <get-isInLookaheadScope>(): Boolean { | |
return EQEQ(arg0 = <this>.#root.#lookaheadRoot, arg1 = null).not() | |
} | |
private fun <set-currentIndex>($this: LayoutNodeSubcompositionsState, <set-?>: Int) { | |
$this.#currentIndex = <set-?> | |
} | |
private fun <get-currentIndex>($this: LayoutNodeSubcompositionsState): Int { | |
return $this.#currentIndex | |
} | |
private var currentIndex: Int | |
private fun <get-nodeToNodeState>($this: LayoutNodeSubcompositionsState): MutableMap<LayoutNode, NodeState> { | |
return $this.#nodeToNodeState | |
} | |
private /* final field */ val nodeToNodeState: MutableMap<LayoutNode, NodeState> | |
private fun <get-slotIdToNode>($this: LayoutNodeSubcompositionsState): MutableMap<Any?, LayoutNode> { | |
return $this.#slotIdToNode | |
} | |
private /* final field */ val slotIdToNode: MutableMap<Any?, LayoutNode> | |
private fun <get-scope>($this: LayoutNodeSubcompositionsState): Scope { | |
return $this.#scope | |
} | |
private /* final field */ val scope: Scope | |
private fun <get-intermediateMeasureScope>($this: LayoutNodeSubcompositionsState): IntermediateMeasureScopeImpl { | |
return $this.#intermediateMeasureScope | |
} | |
private /* final field */ val intermediateMeasureScope: IntermediateMeasureScopeImpl | |
internal fun <set-intermediateMeasurePolicy>(<set-?>: @ExtensionFunctionType Function2<SubcomposeIntermediateMeasureScope, Constraints, MeasureResult>) { | |
<this>.#intermediateMeasurePolicy = <set-?> | |
} | |
internal fun <get-intermediateMeasurePolicy>(): @ExtensionFunctionType Function2<SubcomposeIntermediateMeasureScope, Constraints, MeasureResult> { | |
return <this>.#intermediateMeasurePolicy | |
} | |
private var intermediateMeasurePolicy: @ExtensionFunctionType Function2<SubcomposeIntermediateMeasureScope, Constraints, MeasureResult> | |
private fun <get-precomposeMap>($this: LayoutNodeSubcompositionsState): MutableMap<Any?, LayoutNode> { | |
return $this.#precomposeMap | |
} | |
private /* final field */ val precomposeMap: MutableMap<Any?, LayoutNode> | |
private fun <get-reusableSlotIdsSet>($this: LayoutNodeSubcompositionsState): SlotIdsSet { | |
return $this.#reusableSlotIdsSet | |
} | |
private /* final field */ val reusableSlotIdsSet: SlotIdsSet | |
private fun <set-reusableCount>($this: LayoutNodeSubcompositionsState, <set-?>: Int) { | |
$this.#reusableCount = <set-?> | |
} | |
private fun <get-reusableCount>($this: LayoutNodeSubcompositionsState): Int { | |
return $this.#reusableCount | |
} | |
private var reusableCount: Int | |
private fun <set-precomposedCount>($this: LayoutNodeSubcompositionsState, <set-?>: Int) { | |
$this.#precomposedCount = <set-?> | |
} | |
private fun <get-precomposedCount>($this: LayoutNodeSubcompositionsState): Int { | |
return $this.#precomposedCount | |
} | |
private var precomposedCount: Int | |
@Decoy(targetName = "subcompose$composable", signature = ["androidx.compose.ui.layout", "LayoutNodeSubcompositionsState.subcompose$composable", "8359265249085521351", "0"]) | |
fun subcompose(slotId: Any?, content: @Composable Function0<Unit>): List<Measurable> { | |
illegalDecoyCallException(fName = "subcompose") | |
return throwKotlinNothingValueException() | |
} | |
@Decoy(targetName = "subcompose$composable", signature = ["androidx.compose.ui.layout", "LayoutNodeSubcompositionsState.subcompose$composable", "9080102821947008411", "0"]) | |
private fun subcompose($this: LayoutNodeSubcompositionsState, node: LayoutNode, slotId: Any?, content: @Composable Function0<Unit>) { | |
illegalDecoyCallException(fName = "subcompose") | |
return throwKotlinNothingValueException() | |
} | |
private fun subcompose($this: LayoutNodeSubcompositionsState, node: LayoutNode, nodeState: NodeState) { | |
var tmp$ret$2: Unit | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val this: Companion = Companion_getInstance() | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
} | |
} | |
val snapshot: Snapshot = this.createNonObservableSnapshot() | |
try { // BLOCK | |
var tmp$ret$1: Any? | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val this: Snapshot = snapshot | |
val previous: Snapshot? = this.makeCurrent() | |
try { // BLOCK | |
var tmp$ret$0: Unit | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val this: LayoutNodeSubcompositionsState = $this | |
val this: LayoutNode = this.#root | |
this.#ignoreRemeasureRequests = true | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val content: Function2<Composer, Int, Unit> = nodeState.#content | |
var tmp: NodeState = nodeState | |
var tmp: Composition? = nodeState.#composition | |
val tmp0_elvis_lhs: CompositionContext? = $this.#compositionContext | |
var tmp: CompositionContext | |
when { | |
EQEQ(arg0 = tmp0_elvis_lhs, arg1 = null) -> { // BLOCK | |
val message: Any = "parent composition reference not set" | |
throw IllegalStateException(message = message.toString()) | |
tmp = unreachable() | |
} | |
else -> { // BLOCK | |
tmp = tmp0_elvis_lhs | |
} | |
} | |
var tmp: CompositionContext = tmp | |
tmp.#composition = subcomposeInto$composable($this = $this, existing = tmp, container = node, parent = tmp, composable = ComposableLambda$invoke$ref($boundThis = composableLambdaInstance(key = -34810602, tracked = true, block = LayoutNodeSubcompositionsState$subcompose$lambda($nodeState = nodeState, $content = content)))) | |
} | |
} | |
this.#ignoreRemeasureRequests = false | |
tmp$ret$0 = Unit_getInstance() | |
return Unit_getInstance() | |
} | |
} | |
tmp$ret$0 | |
tmp$ret$1 = Unit_getInstance() | |
return Unit_getInstance() | |
} | |
finally { // BLOCK | |
this.restoreCurrent(snapshot = previous) | |
Unit_getInstance() | |
} | |
Unit_getInstance() | |
} | |
} | |
tmp$ret$2 = tmp$ret$1 | |
return Unit_getInstance() | |
} | |
finally { // BLOCK | |
snapshot.dispose() | |
Unit_getInstance() | |
} | |
} | |
} | |
tmp$ret$2 | |
} | |
@Decoy(targetName = "subcomposeInto$composable", signature = ["androidx.compose.ui.layout", "LayoutNodeSubcompositionsState.subcomposeInto$composable", "-7088263250069285325", "0"]) | |
private fun subcomposeInto($this: LayoutNodeSubcompositionsState, existing: Composition?, container: LayoutNode, parent: CompositionContext, composable: @Composable Function0<Unit>): Composition { | |
illegalDecoyCallException(fName = "subcomposeInto") | |
return throwKotlinNothingValueException() | |
} | |
private fun getSlotIdAtIndex($this: LayoutNodeSubcompositionsState, index: Int): Any? { | |
val node: LayoutNode = $this.#root.<get-foldedChildren>().get(index = index) | |
return CHECK_NOT_NULL<NodeState>(arg0 = $this.#nodeToNodeState.get(key = node)).#slotId | |
} | |
fun disposeOrReuseStartingFromIndex(startIndex: Int) { | |
<this>.#reusableCount = 0 | |
val lastReusableIndex: Int = <this>.#root.<get-foldedChildren>().<get-size>().minus(other = <this>.#precomposedCount).minus(other = 1) | |
var needApplyNotification: Boolean = false | |
when { | |
lessOrEqual(arg0 = startIndex, arg1 = lastReusableIndex) -> { // BLOCK | |
<this>.#reusableSlotIdsSet.clear() | |
{ // BLOCK | |
var inductionVariable: Int = startIndex | |
when { | |
lessOrEqual(arg0 = inductionVariable, arg1 = lastReusableIndex) -> do// COMPOSITE { | |
val i: Int = inductionVariable | |
inductionVariable = inductionVariable.plus(other = 1) | |
{ // BLOCK | |
<this>.#reusableSlotIdsSet.add(slotId = getSlotIdAtIndex($this = <this>, index = i)) | |
Unit_getInstance() | |
} | |
// } while (EQEQ(arg0 = i, arg1 = lastReusableIndex).not()) | |
} | |
} | |
<this>.#slotReusePolicy.getSlotsToRetain(slotIds = <this>.#reusableSlotIdsSet) | |
var i: Int = lastReusableIndex | |
var tmp$ret$3: Unit | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val this: Companion = Companion_getInstance() | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
} | |
} | |
val snapshot: Snapshot = this.createNonObservableSnapshot() | |
try { // BLOCK | |
var tmp$ret$2: Any? | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val this: Snapshot = snapshot | |
val previous: Snapshot? = this.makeCurrent() | |
try { // BLOCK | |
while (greaterOrEqual(arg0 = i, arg1 = startIndex)) { // BLOCK | |
val node: LayoutNode = <this>.#root.<get-foldedChildren>().get(index = i) | |
val nodeState: NodeState = CHECK_NOT_NULL<NodeState>(arg0 = <this>.#nodeToNodeState.get(key = node)) | |
val slotId: Any? = nodeState.#slotId | |
when { | |
<this>.#reusableSlotIdsSet.contains(element = slotId) -> { // BLOCK | |
node.<get-measurePassDelegate>().#measuredByParent = UsageByParent_NotUsed_getInstance() | |
{ // BLOCK | |
val tmp0_safe_receiver: LookaheadPassDelegate? = node.<get-lookaheadPassDelegate>() | |
when { | |
EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null | |
else -> // COMPOSITE { | |
var tmp$ret$0: Unit | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val this: Any? = tmp0_safe_receiver | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
} | |
} | |
val it: LookaheadPassDelegate = this | |
it.#measuredByParent = UsageByParent_NotUsed_getInstance() | |
tmp$ret$0 = Unit_getInstance() | |
return Unit_getInstance() | |
} | |
} | |
tmp$ret$0 | |
Unit_getInstance() | |
// } | |
} | |
} | |
Unit_getInstance() | |
{ // BLOCK | |
val tmp1_this: LayoutNodeSubcompositionsState = <this> | |
{ // BLOCK | |
val tmp2: Int = tmp1_this.#reusableCount | |
tmp1_this.#reusableCount = tmp2.inc() | |
tmp2 | |
} | |
} | |
Unit_getInstance() | |
when { | |
nodeState.<get-active>() -> { // BLOCK | |
nodeState.<set-active>(<set-?> = false) | |
needApplyNotification = true | |
} | |
} | |
} | |
else -> { // BLOCK | |
var tmp$ret$1: Unit | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val this: LayoutNodeSubcompositionsState = <this> | |
val this: LayoutNode = this.#root | |
this.#ignoreRemeasureRequests = true | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
<this>.#nodeToNodeState.remove(key = node) | |
Unit_getInstance() | |
{ // BLOCK | |
val tmp0_safe_receiver: Composition? = nodeState.#composition | |
when { | |
EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null | |
else -> // COMPOSITE { | |
tmp0_safe_receiver.dispose() | |
Unit_getInstance() | |
// } | |
} | |
} | |
Unit_getInstance() | |
<this>.#root.removeAt(index = i, count = 1) | |
Unit_getInstance() | |
} | |
} | |
this.#ignoreRemeasureRequests = false | |
tmp$ret$1 = Unit_getInstance() | |
return Unit_getInstance() | |
} | |
} | |
tmp$ret$1 | |
} | |
} | |
<this>.#slotIdToNode.remove(key = slotId) | |
Unit_getInstance() | |
{ // BLOCK | |
val tmp3: Int = i | |
i = tmp3.dec() | |
tmp3 | |
} | |
Unit_getInstance() | |
} | |
tmp$ret$2 = Unit_getInstance() | |
return Unit_getInstance() | |
} | |
finally { // BLOCK | |
this.restoreCurrent(snapshot = previous) | |
Unit_getInstance() | |
} | |
Unit_getInstance() | |
} | |
} | |
tmp$ret$3 = tmp$ret$2 | |
return Unit_getInstance() | |
} | |
finally { // BLOCK | |
snapshot.dispose() | |
Unit_getInstance() | |
} | |
} | |
} | |
tmp$ret$3 | |
} | |
} | |
when { | |
needApplyNotification -> { // BLOCK | |
Companion_getInstance().sendApplyNotifications() | |
Unit_getInstance() | |
} | |
} | |
<this>.makeSureStateIsConsistent() | |
} | |
fun makeSureStateIsConsistent() { | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val value: Boolean = EQEQ(arg0 = <this>.#nodeToNodeState.<get-size>(), arg1 = <this>.#root.<get-foldedChildren>().<get-size>()) | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
} | |
} | |
when { | |
value.not() -> { // BLOCK | |
var tmp$ret$0: Any | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
tmp$ret$0 = "Inconsistency between the count of nodes tracked by the state ".plus(other = "(" + <this>.#nodeToNodeState.<get-size>() + ") and the children count on the SubcomposeLayout").plus(other = " (" + <this>.#root.<get-foldedChildren>().<get-size>() + "). Are you trying to use the state of the").plus(other = " disposed SubcomposeLayout?") | |
return Unit_getInstance() | |
} | |
} | |
val message: Any = tmp$ret$0 | |
throw IllegalArgumentException(message = message.toString()) | |
} | |
} | |
} | |
} | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val value: Boolean = greaterOrEqual(arg0 = <this>.#root.<get-foldedChildren>().<get-size>().minus(other = <this>.#reusableCount).minus(other = <this>.#precomposedCount), arg1 = 0) | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
} | |
} | |
when { | |
value.not() -> { // BLOCK | |
var tmp$ret$1: Any | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
tmp$ret$1 = "Incorrect state. Total children " + <this>.#root.<get-foldedChildren>().<get-size>() + ". Reusable children ".plus(other = <this>.#reusableCount + ". Precomposed children " + <this>.#precomposedCount) | |
return Unit_getInstance() | |
} | |
} | |
val message: Any = tmp$ret$1 | |
throw IllegalArgumentException(message = message.toString()) | |
} | |
} | |
} | |
} | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val value: Boolean = EQEQ(arg0 = <this>.#precomposeMap.<get-size>(), arg1 = <this>.#precomposedCount) | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
} | |
} | |
when { | |
value.not() -> { // BLOCK | |
var tmp$ret$2: Any | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
tmp$ret$2 = "Incorrect state. Precomposed children " + <this>.#precomposedCount + ". Map size ".plus(other = <this>.#precomposeMap.<get-size>()) | |
return Unit_getInstance() | |
} | |
} | |
val message: Any = tmp$ret$2 | |
throw IllegalArgumentException(message = message.toString()) | |
} | |
} | |
} | |
} | |
} | |
private fun takeNodeFromReusables($this: LayoutNodeSubcompositionsState, slotId: Any?): LayoutNode? { | |
when { | |
EQEQ(arg0 = $this.#reusableCount, arg1 = 0) -> { // BLOCK | |
return null | |
} | |
} | |
val reusableNodesSectionEnd: Int = $this.#root.<get-foldedChildren>().<get-size>().minus(other = $this.#precomposedCount) | |
val reusableNodesSectionStart: Int = reusableNodesSectionEnd.minus(other = $this.#reusableCount) | |
var index: Int = reusableNodesSectionEnd.minus(other = 1) | |
var chosenIndex: Int = -1 | |
while (greaterOrEqual(arg0 = index, arg1 = reusableNodesSectionStart)) { // BLOCK | |
when { | |
EQEQ(arg0 = getSlotIdAtIndex($this = $this, index = index), arg1 = slotId) -> { // BLOCK | |
chosenIndex = index | |
break | |
} | |
else -> // COMPOSITE { | |
{ // BLOCK | |
{ // BLOCK | |
val tmp0: Int = index | |
index = tmp0.dec() | |
tmp0 | |
} | |
} | |
Unit_getInstance() | |
// } | |
} | |
} | |
when { | |
EQEQ(arg0 = chosenIndex, arg1 = -1) -> { // BLOCK | |
index = reusableNodesSectionEnd.minus(other = 1) | |
while (greaterOrEqual(arg0 = index, arg1 = reusableNodesSectionStart)) { // BLOCK | |
val node: LayoutNode = $this.#root.<get-foldedChildren>().get(index = index) | |
val nodeState: NodeState = CHECK_NOT_NULL<NodeState>(arg0 = $this.#nodeToNodeState.get(key = node)) | |
when { | |
$this.#slotReusePolicy.areCompatible(slotId = slotId, reusableSlotId = nodeState.#slotId) -> { // BLOCK | |
nodeState.#slotId = slotId | |
chosenIndex = index | |
break | |
} | |
} | |
{ // BLOCK | |
val tmp1: Int = index | |
index = tmp1.dec() | |
tmp1 | |
} | |
Unit_getInstance() | |
} | |
} | |
} | |
var tmp: LayoutNode? | |
when { | |
EQEQ(arg0 = chosenIndex, arg1 = -1) -> { // BLOCK | |
tmp = null | |
} | |
else -> { // BLOCK | |
when { | |
EQEQ(arg0 = index, arg1 = reusableNodesSectionStart).not() -> { // BLOCK | |
move($this = $this, from = index, to = reusableNodesSectionStart, count = 1) | |
Unit_getInstance() | |
} | |
} | |
{ // BLOCK | |
val tmp2_this: LayoutNodeSubcompositionsState = $this | |
{ // BLOCK | |
val tmp3: Int = tmp2_this.#reusableCount | |
tmp2_this.#reusableCount = tmp3.dec() | |
tmp3 | |
} | |
} | |
Unit_getInstance() | |
val node: LayoutNode = $this.#root.<get-foldedChildren>().get(index = reusableNodesSectionStart) | |
val nodeState: NodeState = CHECK_NOT_NULL<NodeState>(arg0 = $this.#nodeToNodeState.get(key = node)) | |
nodeState.<set-active>(<set-?> = true) | |
nodeState.#forceRecompose = true | |
Companion_getInstance().sendApplyNotifications() | |
tmp = node | |
} | |
} | |
return tmp | |
} | |
fun createMeasurePolicy(block: @ExtensionFunctionType Function2<SubcomposeMeasureScope, Constraints, MeasureResult>): MeasurePolicy { | |
<this>.#intermediateMeasureScope.#lookaheadMeasurePolicy = block | |
return <no name provided>(this$0 = <this>, $block = block) | |
} | |
private fun <get-NoIntrinsicsMessage>($this: LayoutNodeSubcompositionsState): String { | |
return $this.#NoIntrinsicsMessage | |
} | |
private /* final field */ val NoIntrinsicsMessage: String | |
@Decoy(targetName = "precompose$composable", signature = ["androidx.compose.ui.layout", "LayoutNodeSubcompositionsState.precompose$composable", "8003543430945209098", "0"]) | |
fun precompose(slotId: Any?, content: @Composable Function0<Unit>): PrecomposedSlotHandle { | |
illegalDecoyCallException(fName = "precompose") | |
return throwKotlinNothingValueException() | |
} | |
fun forceRecomposeChildren() { | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val this: Map<out Any?, Any?> = <this>.#nodeToNodeState | |
{ // BLOCK | |
var tmp$ret$0: Iterator<Entry<Any?, Any?>> | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val this: Map<out Any?, Any?> = this | |
tmp$ret$0 = this.<get-entries>().iterator() | |
return Unit_getInstance() | |
} | |
} | |
val tmp0_iterator: Iterator<Entry<Any?, Any?>> = tmp$ret$0 | |
while (tmp0_iterator.hasNext()) { // BLOCK | |
val element: Entry<Any?, Any?> = tmp0_iterator.next() | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val name for destructuring parameter 0: Entry<LayoutNode, NodeState> = element | |
var tmp$ret$1: NodeState | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val this: Entry<Any?, Any?> = name for destructuring parameter 0 | |
tmp$ret$1 = this.<get-value>() | |
return Unit_getInstance() | |
} | |
} | |
val nodeState: NodeState = tmp$ret$1 | |
nodeState.#forceRecompose = true | |
} | |
} | |
} | |
} | |
} | |
} | |
when { | |
<this>.#root.<get-measurePending>().not() -> { // BLOCK | |
<this>.#root.requestRemeasure$default(forceRequest = #VOID, scheduleMeasureAndLayout = #VOID, $super = #VOID) | |
Unit_getInstance() | |
} | |
} | |
} | |
private fun createNodeAt($this: LayoutNodeSubcompositionsState, index: Int): LayoutNode { | |
var tmp$ret$1: LayoutNode | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val this: Any? = LayoutNode(isVirtual = true, semanticsId = #VOID) | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
} | |
} | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val node: LayoutNode = this | |
var tmp$ret$0: Unit | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val this: LayoutNodeSubcompositionsState = $this | |
val this: LayoutNode = this.#root | |
this.#ignoreRemeasureRequests = true | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
$this.#root.insertAt(index = index, instance = node) | |
Unit_getInstance() | |
} | |
} | |
this.#ignoreRemeasureRequests = false | |
tmp$ret$0 = Unit_getInstance() | |
return Unit_getInstance() | |
} | |
} | |
tmp$ret$0 | |
} | |
} | |
tmp$ret$1 = this | |
return Unit_getInstance() | |
} | |
} | |
return tmp$ret$1 | |
} | |
private fun move($this: LayoutNodeSubcompositionsState, from: Int, to: Int, count: Int) { | |
var tmp$ret$0: Unit | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val this: LayoutNodeSubcompositionsState = $this | |
val this: LayoutNode = this.#root | |
this.#ignoreRemeasureRequests = true | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
$this.#root.move(from = from, to = to, count = count) | |
Unit_getInstance() | |
} | |
} | |
this.#ignoreRemeasureRequests = false | |
tmp$ret$0 = Unit_getInstance() | |
return Unit_getInstance() | |
} | |
} | |
tmp$ret$0 | |
} | |
fun move$default($this: LayoutNodeSubcompositionsState, from: Int, to: Int, /* var */ count: Int, $super: LayoutNodeSubcompositionsState?) { | |
count = when { | |
EQEQEQ(arg0 = count, arg1 = #VOID) -> 1 | |
else -> count | |
} | |
return move($this = $this, from = from, to = to, count = count) | |
} | |
private inline fun ignoreRemeasureRequests($this: LayoutNodeSubcompositionsState, block: Function0<Unit>) { | |
val this: LayoutNode = $this.#root | |
this.#ignoreRemeasureRequests = true | |
block.invoke() | |
this.#ignoreRemeasureRequests = false | |
return Unit_getInstance() | |
} | |
fun disposeCurrentNodes() { | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val this: LayoutNode = <this>.#root | |
this.#ignoreRemeasureRequests = true | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val this: Iterable<Any?> = <this>.#nodeToNodeState.<get-values>() | |
{ // BLOCK | |
val tmp0_iterator: Iterator<Any?> = this.iterator() | |
while (tmp0_iterator.hasNext()) { // BLOCK | |
val element: Any? = tmp0_iterator.next() | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val it: NodeState = element | |
{ // BLOCK | |
val tmp0_safe_receiver: Composition? = it.#composition | |
when { | |
EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null | |
else -> // COMPOSITE { | |
tmp0_safe_receiver.dispose() | |
Unit_getInstance() | |
// } | |
} | |
} | |
Unit_getInstance() | |
} | |
} | |
} | |
} | |
} | |
} | |
<this>.#root.removeAll() | |
Unit_getInstance() | |
} | |
} | |
this.#ignoreRemeasureRequests = false | |
} | |
} | |
<this>.#nodeToNodeState.clear() | |
<this>.#slotIdToNode.clear() | |
<this>.#precomposedCount = 0 | |
<this>.#reusableCount = 0 | |
<this>.#precomposeMap.clear() | |
<this>.makeSureStateIsConsistent() | |
} | |
private class NodeState { | |
@Decoy(targetName = "$init$$composable", signature = ["androidx.compose.ui.layout", "LayoutNodeSubcompositionsState.NodeState.<init>", "8270143123764129279", "0"]) | |
constructor(slotId: Any?, content: @Composable Function0<Unit>, /* var */ composition: Composition?, /* var */ $box: NodeState?) /* primary */ { | |
composition = when { | |
EQEQEQ(arg0 = composition, arg1 = #VOID) -> null | |
else -> composition | |
} | |
illegalDecoyCallException(fName = "<init>") | |
return throwKotlinNothingValueException() | |
} | |
fun <set-slotId>(<set-?>: Any?) { | |
<this>.#slotId = <set-?> | |
} | |
fun <get-slotId>(): Any? { | |
return <this>.#slotId | |
} | |
private var slotId: Any? | |
@Decoy(targetName = "$set-content$$composable", signature = ["androidx.compose.ui.layout", "LayoutNodeSubcompositionsState.NodeState.$set-content$$composable", "6842021778476907474", "0"]) | |
fun <set-content>(<set-?>: @Composable Function0<Unit>) { | |
illegalDecoyCallException(fName = "<set-content>") | |
return throwKotlinNothingValueException() | |
} | |
fun <get-content>(): Function2<Composer, Int, Unit> { | |
return <this>.#content | |
} | |
private var content: Function2<Composer, Int, Unit> | |
fun <set-composition>(<set-?>: Composition?) { | |
<this>.#composition = <set-?> | |
} | |
fun <get-composition>(): Composition? { | |
return <this>.#composition | |
} | |
private var composition: Composition? | |
fun <set-forceRecompose>(<set-?>: Boolean) { | |
<this>.#forceRecompose = <set-?> | |
} | |
fun <get-forceRecompose>(): Boolean { | |
return <this>.#forceRecompose | |
} | |
private var forceRecompose: Boolean | |
fun <set-active>(<set-?>: Boolean) { | |
val this: MutableState<Any?> = <this>.#active$delegate | |
val thisObj: Any? = <this> | |
val property: KProperty<*> = active$factory() | |
val value: Any? = <set-?> | |
this.<set-value>(<set-?> = value) | |
return Unit_getInstance() | |
} | |
fun <get-active>(): Boolean { | |
var tmp$ret$0: Boolean | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val this: State<Any?> = <this>.#active$delegate | |
val thisObj: Any? = <this> | |
val property: KProperty<*> = active$factory() | |
tmp$ret$0 = this.<get-value>() | |
return Unit_getInstance() | |
} | |
} | |
return tmp$ret$0 | |
} | |
private /* final field */ val active$delegate: MutableState<Boolean> | |
@DecoyImplementation(name = "$init$$composable", id = -6470690136630995899L) | |
@DecoyImplementationDefaultsBitMask(bitMask = 4) | |
constructor(slotId: Any?, content: Function2<Composer, Int, Unit>, /* var */ composition: Composition?, /* var */ $box: NodeState?) /* primary */ { | |
composition = when { | |
EQEQEQ(arg0 = composition, arg1 = #VOID) -> null | |
else -> composition | |
} | |
super/*Any*/() | |
{ // BLOCK | |
<this>.#slotId = slotId | |
<this>.#content = content | |
<this>.#composition = composition | |
<this>.#forceRecompose = false | |
<this>.#active$delegate = mutableStateOf<Boolean>(value = true, policy = #VOID) /*=> MutableState<Boolean> */ | |
} | |
} | |
@DecoyImplementation(name = "$set-content$$composable", id = 2010387299612468323L) | |
@DecoyImplementationDefaultsBitMask(bitMask = 0) | |
fun $set-content$$composable(set-?$: Function2<Composer, Int, Unit>) { | |
<this>.#content = set-?$ | |
} | |
/* fake */ override operator fun equals(other: Any?): Boolean | |
/* fake */ override fun hashCode(): Int | |
/* fake */ override fun toString(): String | |
} | |
private inner class Scope : SubcomposeMeasureScope { | |
constructor($outer: LayoutNodeSubcompositionsState, /* var */ $box: Scope?) /* primary */ { | |
super/*Any*/() | |
<this>.#$this = $outer | |
{ // BLOCK | |
<this>.#layoutDirection = LayoutDirection_Rtl_getInstance() | |
<this>.#density = 0.0F | |
<this>.#fontScale = 0.0F | |
} | |
} | |
open fun <set-layoutDirection>(<set-?>: LayoutDirection) { | |
<this>.#layoutDirection = <set-?> | |
} | |
override fun <get-layoutDirection>(): LayoutDirection { | |
return <this>.#layoutDirection | |
} | |
private var layoutDirection: LayoutDirection | |
open fun <set-density>(<set-?>: Float) { | |
<this>.#density = <set-?> | |
} | |
override fun <get-density>(): Float { | |
return <this>.#density | |
} | |
private var density: Float | |
open fun <set-fontScale>(<set-?>: Float) { | |
<this>.#fontScale = <set-?> | |
} | |
override fun <get-fontScale>(): Float { | |
return <this>.#fontScale | |
} | |
private var fontScale: Float | |
override fun <get-isLookingAhead>(): Boolean { | |
return when { | |
EQEQ(arg0 = <this>.#$this.#root.<get-layoutState>(), arg1 = LayoutState_LookaheadLayingOut_getInstance()) -> true | |
else -> EQEQ(arg0 = <this>.#$this.#root.<get-layoutState>(), arg1 = LayoutState_LookaheadMeasuring_getInstance()) | |
} | |
} | |
@Decoy(targetName = "subcompose$composable", signature = ["androidx.compose.ui.layout", "LayoutNodeSubcompositionsState.Scope.subcompose$composable", "8359265249085521351", "0"]) | |
override fun subcompose(slotId: Any?, content: @Composable Function0<Unit>): List<Measurable> { | |
illegalDecoyCallException(fName = "subcompose") | |
return throwKotlinNothingValueException() | |
} | |
@DecoyImplementation(name = "subcompose$composable", id = 4559923896505047949L) | |
@DecoyImplementationDefaultsBitMask(bitMask = 0) | |
override fun subcompose$composable(slotId: Any?, content: Function2<Composer, Int, Unit>): List<Measurable> { | |
return <this>.#$this.subcompose$composable(slotId = slotId, content = content) | |
} | |
/* fake */ override fun layout(width: Int, height: Int, alignmentLines: Map<AlignmentLine, Int>, placementBlock: @ExtensionFunctionType Function1<PlacementScope, Unit>): MeasureResult | |
/* fake */ override fun layout$default(width: Int, height: Int, alignmentLines: Map<AlignmentLine, Int>, placementBlock: @ExtensionFunctionType Function1<PlacementScope, Unit>, $super: Scope?): MeasureResult | |
@Stable | |
/* fake */ override fun Dp.toPx(): Float | |
@Stable | |
/* fake */ override fun TextUnit.toPx(): Float | |
@Stable | |
/* fake */ override fun Dp.roundToPx(): Int | |
@Stable | |
/* fake */ override fun TextUnit.roundToPx(): Int | |
@Stable | |
/* fake */ override fun Dp.toSp(): TextUnit | |
@Stable | |
/* fake */ override fun Int.toSp(): TextUnit | |
@Stable | |
/* fake */ override fun Float.toSp(): TextUnit | |
@Stable | |
/* fake */ override fun TextUnit.toDp(): Dp | |
@Stable | |
/* fake */ override fun Int.toDp(): Dp | |
@Stable | |
/* fake */ override fun Float.toDp(): Dp | |
@Stable | |
/* fake */ override fun DpRect.toRect(): Rect | |
@Stable | |
/* fake */ override fun DpSize.toSize(): Size | |
@Stable | |
/* fake */ override fun Size.toDpSize(): DpSize | |
/* fake */ override operator fun equals(other: Any?): Boolean | |
/* fake */ override fun hashCode(): Int | |
/* fake */ override fun toString(): String | |
protected /* final field */ val $this: LayoutNodeSubcompositionsState | |
} | |
private inner class IntermediateMeasureScopeImpl : SubcomposeIntermediateMeasureScope, MeasureScope { | |
constructor($outer: LayoutNodeSubcompositionsState, /* var */ $box: IntermediateMeasureScopeImpl?) /* primary */ { | |
super/*Any*/() | |
<this>.#$this = $outer | |
{ // BLOCK | |
<this>.#$$delegate_0 = <this>.#$this.#scope | |
<this>.#lookaheadSize = Companion_getInstance().#Zero | |
<this>.#lookaheadConstraints = Constraints(minWidth = #VOID, maxWidth = #VOID, minHeight = #VOID, maxHeight = #VOID) | |
} | |
} | |
private /* final field */ val $$delegate_0: Scope | |
override fun <get-density>(): Float { | |
return <this>.#$$delegate_0.#density | |
} | |
override fun <get-fontScale>(): Float { | |
return <this>.#$$delegate_0.#fontScale | |
} | |
@ExperimentalComposeUiApi | |
override fun <get-isLookingAhead>(): Boolean { | |
return <this>.#$$delegate_0.<get-isLookingAhead>() | |
} | |
override fun <get-layoutDirection>(): LayoutDirection { | |
return <this>.#$$delegate_0.#layoutDirection | |
} | |
override fun layout(width: Int, height: Int, alignmentLines: Map<AlignmentLine, Int>, placementBlock: @ExtensionFunctionType Function1<PlacementScope, Unit>): MeasureResult { | |
return <this>.#$$delegate_0.layout(width = width, height = height, alignmentLines = alignmentLines, placementBlock = placementBlock) | |
} | |
/* fake */ override fun layout$default(width: Int, height: Int, alignmentLines: Map<AlignmentLine, Int>, placementBlock: @ExtensionFunctionType Function1<PlacementScope, Unit>, $super: IntermediateMeasureScopeImpl?): MeasureResult | |
@Stable | |
override fun Dp.roundToPx(): Int { | |
return (<this>.#$$delegate_0, <this>).roundToPx() | |
} | |
@Stable | |
override fun TextUnit.roundToPx(): Int { | |
return (<this>.#$$delegate_0, <this>).roundToPx() | |
} | |
@Stable | |
override fun TextUnit.toDp(): Dp { | |
return (<this>.#$$delegate_0, <this>).toDp() | |
} | |
@Stable | |
override fun Float.toDp(): Dp { | |
return (<this>.#$$delegate_0, <this>).toDp() | |
} | |
@Stable | |
override fun Int.toDp(): Dp { | |
return (<this>.#$$delegate_0, <this>).toDp() | |
} | |
@Stable | |
override fun Size.toDpSize(): DpSize { | |
return (<this>.#$$delegate_0, <this>).toDpSize() | |
} | |
@Stable | |
override fun Dp.toPx(): Float { | |
return (<this>.#$$delegate_0, <this>).toPx() | |
} | |
@Stable | |
override fun TextUnit.toPx(): Float { | |
return (<this>.#$$delegate_0, <this>).toPx() | |
} | |
@Stable | |
override fun DpRect.toRect(): Rect { | |
return (<this>.#$$delegate_0, <this>).toRect() | |
} | |
@Stable | |
override fun DpSize.toSize(): Size { | |
return (<this>.#$$delegate_0, <this>).toSize() | |
} | |
@Stable | |
override fun Dp.toSp(): TextUnit { | |
return (<this>.#$$delegate_0, <this>).toSp() | |
} | |
@Stable | |
override fun Float.toSp(): TextUnit { | |
return (<this>.#$$delegate_0, <this>).toSp() | |
} | |
@Stable | |
override fun Int.toSp(): TextUnit { | |
return (<this>.#$$delegate_0, <this>).toSp() | |
} | |
override fun measurablesForSlot(slotId: Any?): List<Measurable> { | |
val tmp0_safe_receiver: LayoutNode? = <this>.#$this.#slotIdToNode.get(key = slotId) | |
val tmp1_elvis_lhs: List<Measurable>? = when { | |
EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null | |
else -> tmp0_safe_receiver.<get-childMeasurables>() | |
} | |
return when { | |
EQEQ(arg0 = tmp1_elvis_lhs, arg1 = null) -> emptyList<Measurable>() | |
else -> tmp1_elvis_lhs | |
} | |
} | |
open fun <set-lookaheadSize>(<set-?>: IntSize) { | |
<this>.#lookaheadSize = <set-?> | |
} | |
override fun <get-lookaheadSize>(): IntSize { | |
return <this>.#lookaheadSize | |
} | |
private var lookaheadSize: IntSize | |
open fun <set-lookaheadMeasurePolicy>(<set-?>: @ExtensionFunctionType Function2<SubcomposeMeasureScope, Constraints, MeasureResult>) { | |
<this>.#lookaheadMeasurePolicy = <set-?> | |
} | |
override fun <get-lookaheadMeasurePolicy>(): @ExtensionFunctionType Function2<SubcomposeMeasureScope, Constraints, MeasureResult> { | |
val tmp: @ExtensionFunctionType Function2<SubcomposeMeasureScope, Constraints, MeasureResult>? = <this>.#lookaheadMeasurePolicy | |
when { | |
EQEQ(arg0 = tmp, arg1 = null).not() -> return tmp | |
else -> { // BLOCK | |
throwUninitializedPropertyAccessException(name = "lookaheadMeasurePolicy") | |
throwKotlinNothingValueException() | |
} | |
} | |
} | |
var lookaheadMeasurePolicy: @ExtensionFunctionType Function2<SubcomposeMeasureScope, Constraints, MeasureResult>? | |
open fun <set-lookaheadConstraints>(<set-?>: Constraints) { | |
<this>.#lookaheadConstraints = <set-?> | |
} | |
override fun <get-lookaheadConstraints>(): Constraints { | |
return <this>.#lookaheadConstraints | |
} | |
private var lookaheadConstraints: Constraints | |
@Decoy(targetName = "subcompose$composable", signature = ["androidx.compose.ui.layout", "SubcomposeIntermediateMeasureScope.subcompose$composable", "8359265249085521351", "0"]) | |
/* fake */ override fun subcompose(slotId: Any?, content: @Composable Function0<Unit>): List<Measurable> | |
@DecoyImplementation(name = "subcompose$composable", id = 4559923896505047949L) | |
@DecoyImplementationDefaultsBitMask(bitMask = 0) | |
/* fake */ override fun subcompose$composable(slotId: Any?, content: Function2<Composer, Int, Unit>): List<Measurable> | |
/* fake */ override operator fun equals(other: Any?): Boolean | |
/* fake */ override fun hashCode(): Int | |
/* fake */ override fun toString(): String | |
protected /* final field */ val $this: LayoutNodeSubcompositionsState | |
} | |
@DecoyImplementation(name = "subcompose$composable", id = 4559923896505047949L) | |
@DecoyImplementationDefaultsBitMask(bitMask = 0) | |
fun subcompose$composable(slotId: Any?, content: Function2<Composer, Int, Unit>): List<Measurable> { | |
<this>.makeSureStateIsConsistent() | |
val layoutState: LayoutState = <this>.#root.<get-layoutState>() | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val value: Boolean = when { | |
when { | |
when { | |
EQEQ(arg0 = layoutState, arg1 = LayoutState_Measuring_getInstance()) -> true | |
else -> EQEQ(arg0 = layoutState, arg1 = LayoutState_LayingOut_getInstance()) | |
} -> true | |
else -> EQEQ(arg0 = layoutState, arg1 = LayoutState_LookaheadMeasuring_getInstance()) | |
} -> true | |
else -> EQEQ(arg0 = layoutState, arg1 = LayoutState_LookaheadLayingOut_getInstance()) | |
} | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
} | |
} | |
when { | |
value.not() -> { // BLOCK | |
var tmp$ret$0: Any | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
tmp$ret$0 = "subcompose can only be used inside the measure or layout blocks" | |
return Unit_getInstance() | |
} | |
} | |
val message: Any = tmp$ret$0 | |
throw IllegalStateException(message = message.toString()) | |
} | |
} | |
} | |
} | |
var tmp$ret$3: LayoutNode | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val this: MutableMap<Any?, Any?> = <this>.#slotIdToNode | |
val key: Any? = slotId | |
val value: Any? = this.get(key = key) | |
var tmp: Any? | |
when { | |
EQEQ(arg0 = value, arg1 = null) -> { // BLOCK | |
var tmp$ret$2: Any? | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val precomposed: LayoutNode? = <this>.#precomposeMap.remove(key = slotId) | |
var tmp: LayoutNode | |
when { | |
EQEQ(arg0 = precomposed, arg1 = null).not() -> { // BLOCK | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val value: Boolean = greater(arg0 = <this>.#precomposedCount, arg1 = 0) | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
} | |
} | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val value: Boolean = value | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
} | |
} | |
when { | |
value.not() -> { // BLOCK | |
var tmp$ret$1: Any | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
tmp$ret$1 = "Check failed." | |
return Unit_getInstance() | |
} | |
} | |
val message: Any = tmp$ret$1 | |
throw IllegalStateException(message = message.toString()) | |
} | |
} | |
} | |
} | |
} | |
} | |
{ // BLOCK | |
val tmp0_this: LayoutNodeSubcompositionsState = <this> | |
{ // BLOCK | |
val tmp1: Int = tmp0_this.#precomposedCount | |
tmp0_this.#precomposedCount = tmp1.dec() | |
tmp1 | |
} | |
} | |
Unit_getInstance() | |
tmp = precomposed | |
} | |
else -> { // BLOCK | |
val tmp2_elvis_lhs: LayoutNode? = takeNodeFromReusables($this = <this>, slotId = slotId) | |
tmp = when { | |
EQEQ(arg0 = tmp2_elvis_lhs, arg1 = null) -> createNodeAt($this = <this>, index = <this>.#currentIndex) | |
else -> tmp2_elvis_lhs | |
} | |
} | |
} | |
tmp$ret$2 = tmp | |
return Unit_getInstance() | |
} | |
} | |
val answer: Any? = tmp$ret$2 | |
this.put(key = key, value = answer) | |
Unit_getInstance() | |
tmp = answer | |
} | |
else -> { // BLOCK | |
tmp = value | |
} | |
} | |
tmp$ret$3 = tmp | |
return Unit_getInstance() | |
} | |
} | |
val node: LayoutNode = tmp$ret$3 | |
val itemIndex: Int = <this>.#root.<get-foldedChildren>().indexOf(element = node) | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val value: Boolean = greaterOrEqual(arg0 = itemIndex, arg1 = <this>.#currentIndex) | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
} | |
} | |
when { | |
value.not() -> { // BLOCK | |
var tmp$ret$4: Any | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
tmp$ret$4 = "Key \"" + slotId.toString() + "\" was already used. If you are using LazyColumn/Row please make ".plus(other = "sure you provide a unique key for each item.") | |
return Unit_getInstance() | |
} | |
} | |
val message: Any = tmp$ret$4 | |
throw IllegalArgumentException(message = message.toString()) | |
} | |
} | |
} | |
} | |
when { | |
EQEQ(arg0 = <this>.#currentIndex, arg1 = itemIndex).not() -> { // BLOCK | |
move$default($this = <this>, from = itemIndex, to = <this>.#currentIndex, count = #VOID, $super = #VOID) | |
Unit_getInstance() | |
} | |
} | |
{ // BLOCK | |
val tmp0_this: LayoutNodeSubcompositionsState = <this> | |
{ // BLOCK | |
val tmp1: Int = tmp0_this.#currentIndex | |
tmp0_this.#currentIndex = tmp1.inc() | |
tmp1 | |
} | |
} | |
Unit_getInstance() | |
subcompose$composable($this = <this>, node = node, slotId = slotId, content = content) | |
var tmp: List<Measurable> | |
when { | |
when { | |
EQEQ(arg0 = layoutState, arg1 = LayoutState_Measuring_getInstance()) -> true | |
else -> EQEQ(arg0 = layoutState, arg1 = LayoutState_LayingOut_getInstance()) | |
} -> { // BLOCK | |
tmp = node.<get-childMeasurables>() | |
} | |
else -> { // BLOCK | |
tmp = node.<get-childLookaheadMeasurables>() | |
} | |
} | |
return tmp | |
} | |
@DecoyImplementation(name = "subcompose$composable", id = -1616372317432196557L) | |
@DecoyImplementationDefaultsBitMask(bitMask = 0) | |
private fun subcompose$composable($this: LayoutNodeSubcompositionsState, node: LayoutNode, slotId: Any?, content: Function2<Composer, Int, Unit>) { | |
var tmp$ret$1: NodeState | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val this: MutableMap<Any?, Any?> = $this.#nodeToNodeState | |
val key: Any? = node | |
val value: Any? = this.get(key = key) | |
var tmp: Any? | |
when { | |
EQEQ(arg0 = value, arg1 = null) -> { // BLOCK | |
var tmp$ret$0: Any? | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
tmp$ret$0 = NodeState(slotId = slotId, content = ComposableSingletons$SubcomposeLayoutKt_getInstance().#lambda-1, composition = #VOID) | |
return Unit_getInstance() | |
} | |
} | |
val answer: Any? = tmp$ret$0 | |
this.put(key = key, value = answer) | |
Unit_getInstance() | |
tmp = answer | |
} | |
else -> { // BLOCK | |
tmp = value | |
} | |
} | |
tmp$ret$1 = tmp | |
return Unit_getInstance() | |
} | |
} | |
val nodeState: NodeState = tmp$ret$1 | |
val tmp0_safe_receiver: Composition? = nodeState.#composition | |
val tmp1_elvis_lhs: Boolean? = when { | |
EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null | |
else -> tmp0_safe_receiver.<get-hasInvalidations>() | |
} | |
val hasPendingChanges: Boolean = when { | |
EQEQ(arg0 = tmp1_elvis_lhs, arg1 = null) -> true | |
else -> tmp1_elvis_lhs | |
} | |
when { | |
when { | |
when { | |
EQEQEQ(arg0 = nodeState.#content, arg1 = content).not() -> true | |
else -> hasPendingChanges | |
} -> true | |
else -> nodeState.#forceRecompose | |
} -> { // BLOCK | |
nodeState.$set-content$$composable(set-?$ = content) | |
subcompose($this = $this, node = node, nodeState = nodeState) | |
nodeState.#forceRecompose = false | |
} | |
} | |
} | |
@DecoyImplementation(name = "subcomposeInto$composable", id = 2792687968046429223L) | |
@DecoyImplementationDefaultsBitMask(bitMask = 0) | |
@ComposableInferredTarget(scheme = "[0[0]]") | |
private fun subcomposeInto$composable($this: LayoutNodeSubcompositionsState, existing: Composition?, container: LayoutNode, parent: CompositionContext, composable: Function2<Composer, Int, Unit>): Composition { | |
var tmp$ret$0: Composition | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
var tmp: Composition | |
when { | |
when { | |
EQEQ(arg0 = existing, arg1 = null) -> true | |
else -> existing.<get-isDisposed>() | |
} -> { // BLOCK | |
tmp = createSubcomposition(container = container, parent = parent) | |
} | |
else -> { // BLOCK | |
tmp = existing | |
} | |
} | |
val this: Any? = tmp | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
} | |
} | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val $this$apply: Composition = this | |
$this$apply | |
composable | |
{ // BLOCK | |
linkageError(arg0 = "Function 'setContent$composable' can not be called: No function found for symbol 'androidx.compose.runtime/Composition.setContent$composable|9062691686831257511[0]'") | |
throwKotlinNothingValueException() | |
} | |
} | |
} | |
tmp$ret$0 = this | |
return Unit_getInstance() | |
} | |
} | |
return tmp$ret$0 | |
} | |
@DecoyImplementation(name = "precompose$composable", id = -6451654196233001484L) | |
@DecoyImplementationDefaultsBitMask(bitMask = 0) | |
fun precompose$composable(slotId: Any?, content: Function2<Composer, Int, Unit>): PrecomposedSlotHandle { | |
<this>.makeSureStateIsConsistent() | |
when { | |
<this>.#slotIdToNode.containsKey(key = slotId).not() -> { // BLOCK | |
var tmp$ret$2: LayoutNode | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val this: MutableMap<Any?, Any?> = <this>.#precomposeMap | |
val key: Any? = slotId | |
val value: Any? = this.get(key = key) | |
var tmp: Any? | |
when { | |
EQEQ(arg0 = value, arg1 = null) -> { // BLOCK | |
var tmp$ret$1: Any? | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val reusedNode: LayoutNode? = takeNodeFromReusables($this = <this>, slotId = slotId) | |
var tmp: LayoutNode | |
when { | |
EQEQ(arg0 = reusedNode, arg1 = null).not() -> { // BLOCK | |
val nodeIndex: Int = <this>.#root.<get-foldedChildren>().indexOf(element = reusedNode) | |
move($this = <this>, from = nodeIndex, to = <this>.#root.<get-foldedChildren>().<get-size>(), count = 1) | |
{ // BLOCK | |
val tmp0_this: LayoutNodeSubcompositionsState = <this> | |
{ // BLOCK | |
val tmp1: Int = tmp0_this.#precomposedCount | |
tmp0_this.#precomposedCount = tmp1.inc() | |
tmp1 | |
} | |
} | |
Unit_getInstance() | |
tmp = reusedNode | |
} | |
else -> { // BLOCK | |
var tmp$ret$0: LayoutNode | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val this: Any? = createNodeAt($this = <this>, index = <this>.#root.<get-foldedChildren>().<get-size>()) | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
} | |
} | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val it: LayoutNode = this | |
{ // BLOCK | |
val tmp0_this: LayoutNodeSubcompositionsState = <this> | |
{ // BLOCK | |
val tmp1: Int = tmp0_this.#precomposedCount | |
tmp0_this.#precomposedCount = tmp1.inc() | |
tmp1 | |
} | |
} | |
Unit_getInstance() | |
} | |
} | |
tmp$ret$0 = this | |
return Unit_getInstance() | |
} | |
} | |
tmp = tmp$ret$0 | |
} | |
} | |
tmp$ret$1 = tmp | |
return Unit_getInstance() | |
} | |
} | |
val answer: Any? = tmp$ret$1 | |
this.put(key = key, value = answer) | |
Unit_getInstance() | |
tmp = answer | |
} | |
else -> { // BLOCK | |
tmp = value | |
} | |
} | |
tmp$ret$2 = tmp | |
return Unit_getInstance() | |
} | |
} | |
val node: LayoutNode = tmp$ret$2 | |
subcompose$composable($this = <this>, node = node, slotId = slotId, content = content) | |
Unit_getInstance() | |
} | |
} | |
return <no name provided>(this$0 = <this>, $slotId = slotId) | |
} | |
/* fake */ override operator fun equals(other: Any?): Boolean | |
/* fake */ override fun hashCode(): Int | |
/* fake */ override fun toString(): String | |
local fun LayoutNodeSubcompositionsState$intermediateMeasurePolicy$lambda($this$null: Any?, it: Any?): Any? { | |
return $this$null /*=> SubcomposeIntermediateMeasureScope */.<get-lookaheadMeasurePolicy>().invoke(p1 = $this$null /*=> SubcomposeIntermediateMeasureScope */, p2 = it) | |
} | |
local fun ComposableLambda$invoke$ref($boundThis: ComposableLambda): ComposableLambda$invoke$ref { | |
return local fun ComposableLambda$invoke$ref$lambda(p0: Any?, p1: Any?): Any? { | |
// COMPOSITE { | |
return $boundThis.invoke(c = p0 /*=> Composer */, changed = p1 /*=> Int */) | |
unreachable() | |
// } | |
} | |
} | |
local fun LayoutNodeSubcompositionsState$subcompose$lambda($nodeState: NodeState, $content: Function2<Composer, Int, Unit>): LayoutNodeSubcompositionsState$subcompose$lambda { | |
return local fun LayoutNodeSubcompositionsState$subcompose$lambda$lambda($composer: Any?, $changed: Any?): Any? { | |
// COMPOSITE { | |
var $composer: Composer? = $composer /*=> Composer? */ | |
Unit_getInstance() | |
// } | |
sourceInformation(composer = $composer, sourceInformation = "C701@32613L46:SubcomposeLayout.kt#80mrfh") | |
// COMPOSITE { | |
var tmp: Unit | |
when { | |
when { | |
EQEQEQ(arg0 = $changed /*=> Int */.and(other = 11), arg1 = 2).not() -> true | |
else -> $composer.<get-skipping>().not() | |
} -> { // BLOCK | |
when { | |
isTraceInProgress() -> // COMPOSITE { | |
traceEventStart(key = -34810602, dirty1 = $changed /*=> Int */, dirty2 = -1, info = "androidx.compose.ui.layout.LayoutNodeSubcompositionsState.subcompose.<anonymous>.<anonymous>.<anonymous> (SubcomposeLayout.kt:700)") | |
Unit_getInstance() | |
// } | |
} | |
$nodeState.<get-active>() | |
$content | |
$composer | |
0 | |
linkageError(arg0 = "Function 'ReusableContentHost$composable' can not be called: No function found for symbol 'androidx.compose.runtime/ReusableContentHost$composable|1280646558061750104[0]'") | |
tmp = throwKotlinNothingValueException() | |
} | |
else -> { // BLOCK | |
$composer.skipToGroupEnd() | |
tmp = Unit_getInstance() | |
} | |
} | |
tmp | |
// } | |
// COMPOSITE { | |
return Unit_getInstance() | |
unreachable() | |
// } | |
} | |
} | |
local class <no name provided> : NoIntrinsicsMeasurePolicy { | |
private constructor(this$0: LayoutNodeSubcompositionsState, $block: @ExtensionFunctionType Function2<SubcomposeMeasureScope, Constraints, MeasureResult>, /* var */ $box: <no name provided>?) /* primary */ { | |
when { | |
EQEQEQ(arg0 = $box, arg1 = #VOID) -> $box = emptyObject() | |
} | |
$box.#this$0 = this$0 | |
$box.#$block = $block | |
super/*NoIntrinsicsMeasurePolicy*/(error = this$0.#NoIntrinsicsMessage) | |
{ // BLOCK | |
} | |
} | |
override fun MeasureScope.measure(measurables: List<Measurable>, constraints: Constraints): MeasureResult { | |
<this>.#this$0.#scope.#layoutDirection = <this>.<get-layoutDirection>() | |
<this>.#this$0.#scope.#density = <this>.<get-density>() | |
<this>.#this$0.#scope.#fontScale = <this>.<get-fontScale>() | |
val isIntermediate: Boolean = when { | |
when { | |
EQEQ(arg0 = <this>.#this$0.#root.<get-layoutState>(), arg1 = LayoutState_Measuring_getInstance()) -> true | |
else -> EQEQ(arg0 = <this>.#this$0.#root.<get-layoutState>(), arg1 = LayoutState_LayingOut_getInstance()) | |
} -> EQEQ(arg0 = <this>.#this$0.#root.#lookaheadRoot, arg1 = null).not() | |
else -> false | |
} | |
when { | |
isIntermediate -> { // BLOCK | |
return <this>.#this$0.#intermediateMeasurePolicy.invoke(p1 = <this>.#this$0.#intermediateMeasureScope, p2 = boxIntrinsic<Constraints, P2>(x = constraints)) | |
} | |
else -> { // BLOCK | |
<this>.#this$0.#currentIndex = 0 | |
<this>.#this$0.#intermediateMeasureScope.#lookaheadConstraints = constraints | |
val result: MeasureResult = <this>.#$block.invoke(p1 = <this>.#this$0.#scope, p2 = boxIntrinsic<Constraints, P2>(x = constraints)) | |
val indexAfterMeasure: Int = <this>.#this$0.#currentIndex | |
<this>.#this$0.#intermediateMeasureScope.#lookaheadSize = IntSize(width = result.<get-width>(), height = result.<get-height>()) | |
return <no name provided>($result = result, this$0 = <this>.#this$0, $indexAfterMeasure = indexAfterMeasure) | |
} | |
} | |
} | |
/* fake */ override fun IntrinsicMeasureScope.minIntrinsicWidth(measurables: List<IntrinsicMeasurable>, height: Int): Nothing | |
/* fake */ override fun IntrinsicMeasureScope.minIntrinsicHeight(measurables: List<IntrinsicMeasurable>, width: Int): Nothing | |
/* fake */ override fun IntrinsicMeasureScope.maxIntrinsicWidth(measurables: List<IntrinsicMeasurable>, height: Int): Nothing | |
/* fake */ override fun IntrinsicMeasureScope.maxIntrinsicHeight(measurables: List<IntrinsicMeasurable>, width: Int): Nothing | |
/* fake */ override operator fun equals(other: Any?): Boolean | |
/* fake */ override fun hashCode(): Int | |
/* fake */ override fun toString(): String | |
private /* final field */ val this$0: LayoutNodeSubcompositionsState | |
private /* final field */ val $block: @ExtensionFunctionType Function2<SubcomposeMeasureScope, Constraints, MeasureResult> | |
local class <no name provided> : MeasureResult { | |
private constructor($result: MeasureResult, this$0: LayoutNodeSubcompositionsState, $indexAfterMeasure: Int, /* var */ $box: <no name provided>?) /* primary */ { | |
super/*Any*/() | |
<this>.#$result = $result | |
<this>.#this$0 = this$0 | |
<this>.#$indexAfterMeasure = $indexAfterMeasure | |
{ // BLOCK | |
} | |
} | |
override fun <get-width>(): Int { | |
return <this>.#$result.<get-width>() | |
} | |
override fun <get-height>(): Int { | |
return <this>.#$result.<get-height>() | |
} | |
override fun <get-alignmentLines>(): Map<AlignmentLine, Int> { | |
return <this>.#$result.<get-alignmentLines>() | |
} | |
override fun placeChildren() { | |
<this>.#this$0.#currentIndex = <this>.#$indexAfterMeasure | |
<this>.#$result.placeChildren() | |
<this>.#this$0.disposeOrReuseStartingFromIndex(startIndex = <this>.#this$0.#currentIndex) | |
} | |
/* fake */ override operator fun equals(other: Any?): Boolean | |
/* fake */ override fun hashCode(): Int | |
/* fake */ override fun toString(): String | |
private /* final field */ val $result: MeasureResult | |
private /* final field */ val this$0: LayoutNodeSubcompositionsState | |
private /* final field */ val $indexAfterMeasure: Int | |
} | |
} | |
local class <no name provided> : PrecomposedSlotHandle { | |
private constructor(this$0: LayoutNodeSubcompositionsState, $slotId: Any?, /* var */ $box: <no name provided>?) /* primary */ { | |
super/*Any*/() | |
<this>.#this$0 = this$0 | |
<this>.#$slotId = $slotId | |
{ // BLOCK | |
} | |
} | |
override fun dispose() { | |
<this>.#this$0.makeSureStateIsConsistent() | |
val node: LayoutNode? = <this>.#this$0.#precomposeMap.remove(key = <this>.#$slotId) | |
when { | |
EQEQ(arg0 = node, arg1 = null).not() -> { // BLOCK | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val value: Boolean = greater(arg0 = <this>.#this$0.#precomposedCount, arg1 = 0) | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
} | |
} | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val value: Boolean = value | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
} | |
} | |
when { | |
value.not() -> { // BLOCK | |
var tmp$ret$0: Any | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
tmp$ret$0 = "Check failed." | |
return Unit_getInstance() | |
} | |
} | |
val message: Any = tmp$ret$0 | |
throw IllegalStateException(message = message.toString()) | |
} | |
} | |
} | |
} | |
} | |
} | |
val itemIndex: Int = <this>.#this$0.#root.<get-foldedChildren>().indexOf(element = node) | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val value: Boolean = greaterOrEqual(arg0 = itemIndex, arg1 = <this>.#this$0.#root.<get-foldedChildren>().<get-size>().minus(other = <this>.#this$0.#precomposedCount)) | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
} | |
} | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val value: Boolean = value | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
} | |
} | |
when { | |
value.not() -> { // BLOCK | |
var tmp$ret$1: Any | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
tmp$ret$1 = "Check failed." | |
return Unit_getInstance() | |
} | |
} | |
val message: Any = tmp$ret$1 | |
throw IllegalStateException(message = message.toString()) | |
} | |
} | |
} | |
} | |
} | |
} | |
{ // BLOCK | |
val tmp0_this: LayoutNodeSubcompositionsState = <this>.#this$0 | |
{ // BLOCK | |
val tmp1: Int = tmp0_this.#reusableCount | |
tmp0_this.#reusableCount = tmp1.inc() | |
tmp1 | |
} | |
} | |
Unit_getInstance() | |
{ // BLOCK | |
val tmp2_this: LayoutNodeSubcompositionsState = <this>.#this$0 | |
{ // BLOCK | |
val tmp3: Int = tmp2_this.#precomposedCount | |
tmp2_this.#precomposedCount = tmp3.dec() | |
tmp3 | |
} | |
} | |
Unit_getInstance() | |
val reusableStart: Int = <this>.#this$0.#root.<get-foldedChildren>().<get-size>().minus(other = <this>.#this$0.#precomposedCount).minus(other = <this>.#this$0.#reusableCount) | |
move($this = <this>.#this$0, from = itemIndex, to = reusableStart, count = 1) | |
<this>.#this$0.disposeOrReuseStartingFromIndex(startIndex = reusableStart) | |
Unit_getInstance() | |
} | |
} | |
} | |
override fun <get-placeablesCount>(): Int { | |
val tmp0_safe_receiver: LayoutNode? = <this>.#this$0.#precomposeMap.get(key = <this>.#$slotId) | |
val tmp1_safe_receiver: List<LayoutNode>? = when { | |
EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null | |
else -> tmp0_safe_receiver.<get-children>() | |
} | |
val tmp2_elvis_lhs: Int? = when { | |
EQEQ(arg0 = tmp1_safe_receiver, arg1 = null) -> null | |
else -> tmp1_safe_receiver.<get-size>() | |
} | |
return when { | |
EQEQ(arg0 = tmp2_elvis_lhs, arg1 = null) -> 0 | |
else -> tmp2_elvis_lhs | |
} | |
} | |
override fun premeasure(index: Int, constraints: Constraints) { | |
val node: LayoutNode? = <this>.#this$0.#precomposeMap.get(key = <this>.#$slotId) | |
when { | |
when { | |
EQEQ(arg0 = node, arg1 = null).not() -> node.<get-isAttached>() | |
else -> false | |
} -> { // BLOCK | |
val size: Int = node.<get-children>().<get-size>() | |
when { | |
when { | |
less(arg0 = index, arg1 = 0) -> true | |
else -> greaterOrEqual(arg0 = index, arg1 = size) | |
} -> { // BLOCK | |
throw IndexOutOfBoundsException(message = "Index (" + index + ") is out of bound of [0, " + size + ")") | |
} | |
} | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val value: Boolean = node.<get-isPlaced>().not() | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
} | |
} | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val value: Boolean = value | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
} | |
} | |
when { | |
value.not() -> { // BLOCK | |
var tmp$ret$0: Any | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
tmp$ret$0 = "Failed requirement." | |
return Unit_getInstance() | |
} | |
} | |
val message: Any = tmp$ret$0 | |
throw IllegalArgumentException(message = message.toString()) | |
} | |
} | |
} | |
} | |
} | |
} | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
val this: LayoutNode = <this>.#this$0.#root | |
this.#ignoreRemeasureRequests = true | |
{ // RETURNABLE BLOCK | |
{ // INLINED FUNCTION BLOCK | |
node.requireOwner().measureAndLayout(layoutNode = node.<get-children>().get(index = index), constraints = constraints) | |
Unit_getInstance() | |
} | |
} | |
this.#ignoreRemeasureRequests = false | |
} | |
} | |
} | |
} | |
} | |
/* fake */ override operator fun equals(other: Any?): Boolean | |
/* fake */ override fun hashCode(): Int | |
/* fake */ override fun toString(): String | |
private /* final field */ val this$0: LayoutNodeSubcompositionsState | |
private /* final field */ val $slotId: Any? | |
} | |
} | |
` | |
Details: Internal error in declaration transformer: java.lang.IllegalStateException: Expect to have either super call or partial linkage stub inside constructor | |
at org.jetbrains.kotlin.ir.backend.js.lower.ES6ConstructorLowering.replaceSuperCallsAndThisUsages(ES6ConstructorLowering.kt:271) | |
at org.jetbrains.kotlin.ir.backend.js.lower.ES6ConstructorLowering.generateCreateFunction$lambda$12$lambda$11(ES6ConstructorLowering.kt:149) | |
at org.jetbrains.kotlin.ir.declarations.IrFactoryHelpersKt.createBlockBody(IrFactoryHelpers.kt:22) | |
at org.jetbrains.kotlin.ir.backend.js.lower.ES6ConstructorLowering.generateCreateFunction(ES6ConstructorLowering.kt:147) | |
at org.jetbrains.kotlin.ir.backend.js.lower.ES6ConstructorLowering.transformFlat(ES6ConstructorLowering.kt:70) | |
at org.jetbrains.kotlin.backend.common.DeclarationTransformer.transformFlatRestricted$lambda$1(Lower.kt:244) | |
at org.jetbrains.kotlin.ir.backend.js.WholeWorldStageController.restrictTo(WholeWorldStageController.kt:29) | |
at org.jetbrains.kotlin.backend.common.DeclarationTransformer.transformFlatRestricted(Lower.kt:243) | |
at org.jetbrains.kotlin.backend.common.DeclarationTransformer.access$transformFlatRestricted(Lower.kt:217) | |
at org.jetbrains.kotlin.backend.common.DeclarationTransformer$Visitor.visitClass(Lower.kt:302) | |
at org.jetbrains.kotlin.ir.visitors.IrElementVisitorVoid$DefaultImpls.visitClass(IrElementVisitorVoid.kt:44) | |
at org.jetbrains.kotlin.backend.common.DeclarationTransformer$Visitor.visitClass(Lower.kt:248) | |
at org.jetbrains.kotlin.backend.common.DeclarationTransformer$Visitor.visitClass(Lower.kt:248) | |
at org.jetbrains.kotlin.ir.declarations.IrClass.accept(IrClass.kt:72) | |
at org.jetbrains.kotlin.backend.common.DeclarationTransformer$Visitor.visitClass(Lower.kt:299) | |
at org.jetbrains.kotlin.ir.visitors.IrElementVisitorVoid$DefaultImpls.visitClass(IrElementVisitorVoid.kt:44) | |
at org.jetbrains.kotlin.backend.common.DeclarationTransformer$Visitor.visitClass(Lower.kt:248) | |
at org.jetbrains.kotlin.backend.common.DeclarationTransformer$Visitor.visitClass(Lower.kt:248) | |
at org.jetbrains.kotlin.ir.declarations.IrClass.accept(IrClass.kt:72) | |
at org.jetbrains.kotlin.ir.visitors.IrVisitorsKt.acceptVoid(IrVisitors.kt:11) | |
at org.jetbrains.kotlin.backend.common.DeclarationTransformer.lower(Lower.kt:227) | |
at org.jetbrains.kotlin.backend.common.FileLoweringPass.lower(Lower.kt:42) | |
at org.jetbrains.kotlin.backend.common.phaser.PhaseBuildersKt.makeIrModulePhase$lambda$7(PhaseBuilders.kt:135) | |
at org.jetbrains.kotlin.backend.common.phaser.PhaseBuildersKt$createSimpleNamedCompilerPhase$1.phaseBody(PhaseBuilders.kt:71) | |
at org.jetbrains.kotlin.backend.common.phaser.SimpleNamedCompilerPhase.phaseBody(CompilerPhase.kt:226) | |
at org.jetbrains.kotlin.backend.common.phaser.AbstractNamedCompilerPhase.invoke(CompilerPhase.kt:113) | |
at org.jetbrains.kotlin.ir.backend.js.CompilerWithICKt.lowerPreservingTags(compilerWithIC.kt:84) | |
at org.jetbrains.kotlin.ir.backend.js.JsCompilerKt.compileIr(jsCompiler.kt:141) | |
at org.jetbrains.kotlin.ir.backend.js.JsCompilerKt.compile(jsCompiler.kt:55) | |
at org.jetbrains.kotlin.ir.backend.js.JsCompilerKt.compile$default(jsCompiler.kt:38) | |
at org.jetbrains.kotlin.cli.js.K2JsIrCompiler$Ir2JsTransformer.lowerIr(K2JsIrCompiler.kt:115) | |
at org.jetbrains.kotlin.cli.js.K2JsIrCompiler$Ir2JsTransformer.makeJsCodeGenerator(K2JsIrCompiler.kt:138) | |
at org.jetbrains.kotlin.cli.js.K2JsIrCompiler$Ir2JsTransformer.compileAndTransformIrNew(K2JsIrCompiler.kt:148) | |
at org.jetbrains.kotlin.cli.js.K2JsIrCompiler.doExecute(K2JsIrCompiler.kt:451) | |
at org.jetbrains.kotlin.cli.js.K2JSCompiler.doExecute(K2JSCompiler.java:109) | |
at org.jetbrains.kotlin.cli.js.K2JSCompiler.doExecute(K2JSCompiler.java:72) | |
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:104) | |
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:48) | |
at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:101) | |
at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:1556) | |
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) | |
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.base/java.lang.reflect.Method.invoke(Method.java:568) | |
at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:360) | |
at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200) | |
at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197) | |
at java.base/java.security.AccessController.doPrivileged(AccessController.java:712) | |
at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196) | |
at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:587) | |
at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:828) | |
at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:705) | |
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) | |
at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:704) | |
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) | |
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) | |
at java.base/java.lang.Thread.run(Thread.java:840) | |
Caused by: java.lang.IllegalStateException: Expect to have either super call or partial linkage stub inside constructor | |
... 57 more | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment