Don't generate code for javautilCode.kt.
This commit is contained in:
@@ -7,26 +7,35 @@ public object Collections {
|
|||||||
public fun max<T>(col : Collection<T>, comp : Comparator<T>) : T = js.noImpl
|
public fun max<T>(col : Collection<T>, comp : Comparator<T>) : T = js.noImpl
|
||||||
|
|
||||||
// TODO should be immutable!
|
// TODO should be immutable!
|
||||||
|
library
|
||||||
public val emptyList: List<Any> = ArrayList<Any>()
|
public val emptyList: List<Any> = ArrayList<Any>()
|
||||||
|
library
|
||||||
public val emptyMap: Map<Any, Any> = HashMap<Any,Any>()
|
public val emptyMap: Map<Any, Any> = HashMap<Any,Any>()
|
||||||
|
|
||||||
|
library
|
||||||
public val <T> EMPTY_LIST: List<T>
|
public val <T> EMPTY_LIST: List<T>
|
||||||
get() = emptyList<T>()
|
get() = emptyList<T>()
|
||||||
|
|
||||||
|
library
|
||||||
public val <K,V> EMPTY_MAP: Map<K,V>
|
public val <K,V> EMPTY_MAP: Map<K,V>
|
||||||
get() = emptyMap<K,V>()
|
get() = emptyMap<K,V>()
|
||||||
|
|
||||||
|
library
|
||||||
public fun <T> emptyList(): List<T> = emptyList as List<T>
|
public fun <T> emptyList(): List<T> = emptyList as List<T>
|
||||||
|
library
|
||||||
public fun <K,V> emptyMap(): Map<K,V> = emptyMap as Map<K,V>
|
public fun <K,V> emptyMap(): Map<K,V> = emptyMap as Map<K,V>
|
||||||
|
|
||||||
|
library
|
||||||
public fun <in T> sort(list: List<T>): Unit {
|
public fun <in T> sort(list: List<T>): Unit {
|
||||||
throw UnsupportedOperationException()
|
throw UnsupportedOperationException()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
library
|
||||||
public fun <in T> sort(list: List<T>, comparator: java.util.Comparator<T>): Unit {
|
public fun <in T> sort(list: List<T>, comparator: java.util.Comparator<T>): Unit {
|
||||||
throw UnsupportedOperationException()
|
throw UnsupportedOperationException()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
library
|
||||||
public fun <T> reverse(list: List<T>): Unit {
|
public fun <T> reverse(list: List<T>): Unit {
|
||||||
val size = list.size()
|
val size = list.size()
|
||||||
for (i in 0.upto(size / 2)) {
|
for (i in 0.upto(size / 2)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user