JS backend: move StringBuilder to java.lang. Fix append return type.
This commit is contained in:
@@ -39,7 +39,17 @@ public trait Comparable<T> {
|
||||
|
||||
library
|
||||
public trait Appendable {
|
||||
public open fun append(csq: CharSequence?): Appendable?
|
||||
public open fun append(csq: CharSequence?, start: Int, end: Int): Appendable?
|
||||
public open fun append(c: Char): Appendable?
|
||||
public open fun append(csq: CharSequence?): Appendable
|
||||
//public open fun append(csq: CharSequence?, start: Int, end: Int): Appendable
|
||||
public open fun append(c: Char): Appendable
|
||||
}
|
||||
|
||||
library
|
||||
public class StringBuilder() : Appendable {
|
||||
override fun append(c: Char): StringBuilder = js.noImpl
|
||||
override fun append(csq: CharSequence?): StringBuilder = js.noImpl
|
||||
//TODO
|
||||
//override fun append(csq: CharSequence?, start: Int, end: Int): StringBuilder = js.noImpl
|
||||
public fun append(obj: Any?): StringBuilder = js.noImpl
|
||||
public fun toString(): String = js.noImpl
|
||||
}
|
||||
|
||||
@@ -103,15 +103,6 @@ public open class HashMap<K, V>(capacity: Int = 0) : MutableMap<K, V> {
|
||||
public override fun entrySet(): MutableSet<MutableMap.MutableEntry<K, V>> = js.noImpl
|
||||
}
|
||||
|
||||
library
|
||||
public class StringBuilder() : Appendable {
|
||||
override fun append(c: Char): Appendable? = js.noImpl
|
||||
override fun append(csq: CharSequence?): Appendable? = js.noImpl
|
||||
override fun append(csq: CharSequence?, start: Int, end: Int): Appendable? = js.noImpl
|
||||
public fun append(obj: Any?): StringBuilder = js.noImpl
|
||||
public fun toString(): String = js.noImpl
|
||||
}
|
||||
|
||||
library
|
||||
public class NoSuchElementException() : Exception() {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user