Promote collection builders to stable #KT-47421
This commit is contained in:
committed by
Space
parent
72ab6d5e7e
commit
261d0c2783
@@ -50,7 +50,6 @@ internal actual fun checkCountOverflow(count: Int): Int = TODO("Wasm stdlib: Col
|
||||
|
||||
@PublishedApi
|
||||
@SinceKotlin("1.3")
|
||||
@ExperimentalStdlibApi
|
||||
@kotlin.internal.InlineOnly
|
||||
internal actual inline fun <E> buildListInternal(builderAction: MutableList<E>.() -> Unit): List<E> {
|
||||
return TODO("Wasm stdlib: Collections")
|
||||
@@ -58,7 +57,6 @@ internal actual inline fun <E> buildListInternal(builderAction: MutableList<E>.(
|
||||
|
||||
@PublishedApi
|
||||
@SinceKotlin("1.3")
|
||||
@ExperimentalStdlibApi
|
||||
@kotlin.internal.InlineOnly
|
||||
internal actual inline fun <E> buildListInternal(capacity: Int, builderAction: MutableList<E>.() -> Unit): List<E> {
|
||||
checkBuilderCapacity(capacity)
|
||||
@@ -73,7 +71,6 @@ public fun <T> setOf(element: T): Set<T> = hashSetOf(element)
|
||||
|
||||
@PublishedApi
|
||||
@SinceKotlin("1.3")
|
||||
@ExperimentalStdlibApi
|
||||
@kotlin.internal.InlineOnly
|
||||
internal actual inline fun <E> buildSetInternal(builderAction: MutableSet<E>.() -> Unit): Set<E> {
|
||||
return TODO("Wasm stdlib: Collections")
|
||||
@@ -81,7 +78,6 @@ internal actual inline fun <E> buildSetInternal(builderAction: MutableSet<E>.()
|
||||
|
||||
@PublishedApi
|
||||
@SinceKotlin("1.3")
|
||||
@ExperimentalStdlibApi
|
||||
@kotlin.internal.InlineOnly
|
||||
internal actual inline fun <E> buildSetInternal(capacity: Int, builderAction: MutableSet<E>.() -> Unit): Set<E> {
|
||||
return TODO("Wasm stdlib: Collections")
|
||||
@@ -96,7 +92,6 @@ public fun <K, V> mapOf(pair: Pair<K, V>): Map<K, V> = hashMapOf(pair)
|
||||
|
||||
@PublishedApi
|
||||
@SinceKotlin("1.3")
|
||||
@ExperimentalStdlibApi
|
||||
@kotlin.internal.InlineOnly
|
||||
internal actual inline fun <K, V> buildMapInternal(builderAction: MutableMap<K, V>.() -> Unit): Map<K, V> {
|
||||
return TODO("Wasm stdlib: Collections")
|
||||
@@ -104,7 +99,6 @@ internal actual inline fun <K, V> buildMapInternal(builderAction: MutableMap<K,
|
||||
|
||||
@PublishedApi
|
||||
@SinceKotlin("1.3")
|
||||
@ExperimentalStdlibApi
|
||||
@kotlin.internal.InlineOnly
|
||||
internal actual inline fun <K, V> buildMapInternal(capacity: Int, builderAction: MutableMap<K, V>.() -> Unit): Map<K, V> {
|
||||
return TODO("Wasm stdlib: Collections")
|
||||
|
||||
@@ -15,6 +15,5 @@ internal actual fun mapCapacity(expectedSize: Int): Int = TODO("Wasm stdlib: Map
|
||||
* Checks a collection builder function capacity argument.
|
||||
*/
|
||||
@SinceKotlin("1.3")
|
||||
@ExperimentalStdlibApi
|
||||
@PublishedApi
|
||||
internal fun checkBuilderCapacity(capacity: Int) { TODO("Wasm stdlib: Maps") }
|
||||
Reference in New Issue
Block a user