Home
last modified time | relevance | path

Searched refs:parentList (Results 1 – 1 of 1) sorted by relevance

/compose/runtime/runtime/src/commonMain/kotlin/androidx/compose/runtime/snapshots/
DSnapshotStateList.kt374 private class SubList<T>(val parentList: SnapshotStateList<T>, fromIndex: Int, toIndex: Int) : constant in SubList
377 private var structure = parentList.structure
388 return parentList[offset + index] in get()
393 (offset until offset + size).forEach { if (element == parentList[it]) return it - offset } in indexOf()
405 if (element == parentList[index]) return index - offset in isEmpty()
413 parentList.add(offset + size, element) in add()
415 structure = parentList.structure in add()
421 parentList.add(offset + index, element) in add()
423 structure = parentList.structure in add()
428 val result = parentList.addAll(index + offset, elements) in addAll()
[all …]