Minor: "js.noImpl" -> "noImpl"
This commit is contained in:
@@ -2,5 +2,5 @@ package kotlin.js
|
|||||||
|
|
||||||
native
|
native
|
||||||
public class Date() {
|
public class Date() {
|
||||||
public fun getTime() : Int = js.noImpl
|
public fun getTime() : Int = noImpl
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,10 +45,10 @@ public trait Appendable {
|
|||||||
|
|
||||||
library
|
library
|
||||||
public class StringBuilder() : Appendable {
|
public class StringBuilder() : Appendable {
|
||||||
override fun append(c: Char): StringBuilder = js.noImpl
|
override fun append(c: Char): StringBuilder = noImpl
|
||||||
override fun append(csq: CharSequence?): StringBuilder = js.noImpl
|
override fun append(csq: CharSequence?): StringBuilder = noImpl
|
||||||
override fun append(csq: CharSequence?, start: Int, end: Int): StringBuilder = js.noImpl
|
override fun append(csq: CharSequence?, start: Int, end: Int): StringBuilder = noImpl
|
||||||
public fun append(obj: Any?): StringBuilder = js.noImpl
|
public fun append(obj: Any?): StringBuilder = noImpl
|
||||||
public fun reverse(): StringBuilder = js.noImpl
|
public fun reverse(): StringBuilder = noImpl
|
||||||
override fun toString(): String = js.noImpl
|
override fun toString(): String = noImpl
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,49 +13,49 @@ public trait Comparator<T> {
|
|||||||
|
|
||||||
library
|
library
|
||||||
public abstract class AbstractCollection<E>() : MutableCollection<E> {
|
public abstract class AbstractCollection<E>() : MutableCollection<E> {
|
||||||
override fun isEmpty(): Boolean = js.noImpl
|
override fun isEmpty(): Boolean = noImpl
|
||||||
override fun contains(o: Any?): Boolean = js.noImpl
|
override fun contains(o: Any?): Boolean = noImpl
|
||||||
override fun iterator(): MutableIterator<E> = js.noImpl
|
override fun iterator(): MutableIterator<E> = noImpl
|
||||||
|
|
||||||
override fun add(e: E): Boolean = js.noImpl
|
override fun add(e: E): Boolean = noImpl
|
||||||
override fun remove(o: Any?): Boolean = js.noImpl
|
override fun remove(o: Any?): Boolean = noImpl
|
||||||
|
|
||||||
override fun addAll(c: Collection<E>): Boolean = js.noImpl
|
override fun addAll(c: Collection<E>): Boolean = noImpl
|
||||||
override fun containsAll(c: Collection<Any?>): Boolean = js.noImpl
|
override fun containsAll(c: Collection<Any?>): Boolean = noImpl
|
||||||
override fun removeAll(c: Collection<Any?>): Boolean = js.noImpl
|
override fun removeAll(c: Collection<Any?>): Boolean = noImpl
|
||||||
override fun retainAll(c: Collection<Any?>): Boolean = js.noImpl
|
override fun retainAll(c: Collection<Any?>): Boolean = noImpl
|
||||||
|
|
||||||
override fun clear(): Unit = js.noImpl
|
override fun clear(): Unit = noImpl
|
||||||
override fun size(): Int = js.noImpl
|
override fun size(): Int = noImpl
|
||||||
|
|
||||||
override fun hashCode(): Int = js.noImpl
|
override fun hashCode(): Int = noImpl
|
||||||
override fun equals(other: Any?): Boolean = js.noImpl
|
override fun equals(other: Any?): Boolean = noImpl
|
||||||
}
|
}
|
||||||
|
|
||||||
library
|
library
|
||||||
public abstract class AbstractList<E>() : AbstractCollection<E>(), MutableList<E> {
|
public abstract class AbstractList<E>() : AbstractCollection<E>(), MutableList<E> {
|
||||||
override fun get(index: Int): E = js.noImpl
|
override fun get(index: Int): E = noImpl
|
||||||
override fun set(index: Int, element: E): E = js.noImpl
|
override fun set(index: Int, element: E): E = noImpl
|
||||||
|
|
||||||
override fun add(e: E): Boolean = js.noImpl
|
override fun add(e: E): Boolean = noImpl
|
||||||
override fun add(index: Int, element: E): Unit = js.noImpl
|
override fun add(index: Int, element: E): Unit = noImpl
|
||||||
override fun addAll(index: Int, c: Collection<E>): Boolean = js.noImpl
|
override fun addAll(index: Int, c: Collection<E>): Boolean = noImpl
|
||||||
|
|
||||||
override fun remove(index: Int): E = js.noImpl
|
override fun remove(index: Int): E = noImpl
|
||||||
|
|
||||||
override fun indexOf(o: Any?): Int = js.noImpl
|
override fun indexOf(o: Any?): Int = noImpl
|
||||||
override fun lastIndexOf(o: Any?): Int = js.noImpl
|
override fun lastIndexOf(o: Any?): Int = noImpl
|
||||||
|
|
||||||
override fun listIterator(): MutableListIterator<E> = js.noImpl
|
override fun listIterator(): MutableListIterator<E> = noImpl
|
||||||
override fun listIterator(index: Int): MutableListIterator<E> = js.noImpl
|
override fun listIterator(index: Int): MutableListIterator<E> = noImpl
|
||||||
|
|
||||||
override fun subList(fromIndex: Int, toIndex: Int): MutableList<E> = js.noImpl
|
override fun subList(fromIndex: Int, toIndex: Int): MutableList<E> = noImpl
|
||||||
|
|
||||||
override fun size(): Int = js.noImpl
|
override fun size(): Int = noImpl
|
||||||
|
|
||||||
override fun equals(other: Any?): Boolean = js.noImpl
|
override fun equals(other: Any?): Boolean = noImpl
|
||||||
|
|
||||||
override fun toString(): String = js.noImpl
|
override fun toString(): String = noImpl
|
||||||
}
|
}
|
||||||
|
|
||||||
library
|
library
|
||||||
@@ -64,15 +64,15 @@ public open class ArrayList<E>(capacity: Int = 0) : AbstractList<E>() {
|
|||||||
|
|
||||||
library
|
library
|
||||||
public open class LinkedList<E>() : AbstractList<E>() {
|
public open class LinkedList<E>() : AbstractList<E>() {
|
||||||
override fun get(index: Int): E = js.noImpl
|
override fun get(index: Int): E = noImpl
|
||||||
override fun set(index: Int, element: E): E = js.noImpl
|
override fun set(index: Int, element: E): E = noImpl
|
||||||
override fun add(index: Int, element: E): Unit = js.noImpl
|
override fun add(index: Int, element: E): Unit = noImpl
|
||||||
|
|
||||||
[suppress("BASE_WITH_NULLABLE_UPPER_BOUND")]
|
[suppress("BASE_WITH_NULLABLE_UPPER_BOUND")]
|
||||||
public fun poll(): E? = js.noImpl
|
public fun poll(): E? = noImpl
|
||||||
[suppress("BASE_WITH_NULLABLE_UPPER_BOUND")]
|
[suppress("BASE_WITH_NULLABLE_UPPER_BOUND")]
|
||||||
public fun peek(): E? = js.noImpl
|
public fun peek(): E? = noImpl
|
||||||
public fun offer(e: E): Boolean = js.noImpl
|
public fun offer(e: E): Boolean = noImpl
|
||||||
}
|
}
|
||||||
|
|
||||||
library
|
library
|
||||||
@@ -95,21 +95,21 @@ public open class LinkedHashSet<E>(
|
|||||||
|
|
||||||
library
|
library
|
||||||
public open class HashMap<K, V>(initialCapacity: Int = DEFAULT_INITIAL_CAPACITY, loadFactor: Float = DEFAULT_LOAD_FACTOR) : MutableMap<K, V> {
|
public open class HashMap<K, V>(initialCapacity: Int = DEFAULT_INITIAL_CAPACITY, loadFactor: Float = DEFAULT_LOAD_FACTOR) : MutableMap<K, V> {
|
||||||
override fun size(): Int = js.noImpl
|
override fun size(): Int = noImpl
|
||||||
override fun isEmpty(): Boolean = js.noImpl
|
override fun isEmpty(): Boolean = noImpl
|
||||||
[suppress("BASE_WITH_NULLABLE_UPPER_BOUND")]
|
[suppress("BASE_WITH_NULLABLE_UPPER_BOUND")]
|
||||||
override fun get(key: Any?): V? = js.noImpl
|
override fun get(key: Any?): V? = noImpl
|
||||||
override fun containsKey(key: Any?): Boolean = js.noImpl
|
override fun containsKey(key: Any?): Boolean = noImpl
|
||||||
[suppress("BASE_WITH_NULLABLE_UPPER_BOUND")]
|
[suppress("BASE_WITH_NULLABLE_UPPER_BOUND")]
|
||||||
override fun put(key: K, value: V): V? = js.noImpl
|
override fun put(key: K, value: V): V? = noImpl
|
||||||
override fun putAll(m: Map<out K, V>): Unit = js.noImpl
|
override fun putAll(m: Map<out K, V>): Unit = noImpl
|
||||||
[suppress("BASE_WITH_NULLABLE_UPPER_BOUND")]
|
[suppress("BASE_WITH_NULLABLE_UPPER_BOUND")]
|
||||||
override fun remove(key: Any?): V? = js.noImpl
|
override fun remove(key: Any?): V? = noImpl
|
||||||
override fun clear(): Unit = js.noImpl
|
override fun clear(): Unit = noImpl
|
||||||
override fun containsValue(value: Any?): Boolean = js.noImpl
|
override fun containsValue(value: Any?): Boolean = noImpl
|
||||||
override fun keySet(): MutableSet<K> = js.noImpl
|
override fun keySet(): MutableSet<K> = noImpl
|
||||||
override fun values(): MutableCollection<V> = js.noImpl
|
override fun values(): MutableCollection<V> = noImpl
|
||||||
override fun entrySet(): MutableSet<MutableMap.MutableEntry<K, V>> = js.noImpl
|
override fun entrySet(): MutableSet<MutableMap.MutableEntry<K, V>> = noImpl
|
||||||
}
|
}
|
||||||
|
|
||||||
library
|
library
|
||||||
@@ -128,5 +128,5 @@ public trait Enumeration<E> {
|
|||||||
|
|
||||||
native
|
native
|
||||||
public class Date() {
|
public class Date() {
|
||||||
public fun getTime(): Int = js.noImpl
|
public fun getTime(): Int = noImpl
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ import java.lang.*
|
|||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
library("collectionsMax")
|
library("collectionsMax")
|
||||||
public fun max<T>(col : Collection<T>, comp : Comparator<T>) : T = js.noImpl
|
public fun max<T>(col : Collection<T>, comp : Comparator<T>) : T = noImpl
|
||||||
|
|
||||||
library("collectionsSort")
|
library("collectionsSort")
|
||||||
public fun <T> sort(list: MutableList<T>): Unit = js.noImpl
|
public fun <T> sort(list: MutableList<T>): Unit = noImpl
|
||||||
|
|
||||||
library("collectionsSort")
|
library("collectionsSort")
|
||||||
public fun <T> sort(list: MutableList<T>, comparator: java.util.Comparator<T>): Unit = js.noImpl
|
public fun <T> sort(list: MutableList<T>, comparator: java.util.Comparator<T>): Unit = noImpl
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
package kotlin.js
|
package kotlin.js
|
||||||
|
|
||||||
native public class Json() {
|
native public class Json() {
|
||||||
public fun get(propertyName: String): Any? = js.noImpl
|
public fun get(propertyName: String): Any? = noImpl
|
||||||
public fun set(propertyName: String, value: Any?): Unit = js.noImpl
|
public fun set(propertyName: String, value: Any?): Unit = noImpl
|
||||||
}
|
}
|
||||||
|
|
||||||
library("jsonFromTuples")
|
library("jsonFromTuples")
|
||||||
public fun json(vararg pairs: Pair<String, Any?>): Json = js.noImpl
|
public fun json(vararg pairs: Pair<String, Any?>): Json = noImpl
|
||||||
|
|
||||||
library("jsonFromTuples")
|
library("jsonFromTuples")
|
||||||
public fun json2(pairs: Array<Pair<String, Any?>>): Json = js.noImpl
|
public fun json2(pairs: Array<Pair<String, Any?>>): Json = noImpl
|
||||||
|
|
||||||
library("jsonAddProperties")
|
library("jsonAddProperties")
|
||||||
public fun Json.add(other: Json): Json = js.noImpl
|
public fun Json.add(other: Json): Json = noImpl
|
||||||
|
|
||||||
native
|
native
|
||||||
public trait JsonClass {
|
public trait JsonClass {
|
||||||
|
|||||||
@@ -3,36 +3,36 @@ package kotlin
|
|||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
library("comparator")
|
library("comparator")
|
||||||
public fun comparator<T>(f : (T, T) -> Int): Comparator<T> = js.noImpl
|
public fun comparator<T>(f : (T, T) -> Int): Comparator<T> = noImpl
|
||||||
|
|
||||||
library
|
library
|
||||||
public fun <T> array(vararg value : T): Array<T> = js.noImpl
|
public fun <T> array(vararg value : T): Array<T> = noImpl
|
||||||
|
|
||||||
// "constructors" for primitive types array
|
// "constructors" for primitive types array
|
||||||
|
|
||||||
library
|
library
|
||||||
public fun doubleArray(vararg content : Double): DoubleArray = js.noImpl
|
public fun doubleArray(vararg content : Double): DoubleArray = noImpl
|
||||||
|
|
||||||
library
|
library
|
||||||
public fun floatArray(vararg content : Float): FloatArray = js.noImpl
|
public fun floatArray(vararg content : Float): FloatArray = noImpl
|
||||||
|
|
||||||
library
|
library
|
||||||
public fun longArray(vararg content : Long): LongArray = js.noImpl
|
public fun longArray(vararg content : Long): LongArray = noImpl
|
||||||
|
|
||||||
library
|
library
|
||||||
public fun intArray(vararg content : Int): IntArray = js.noImpl
|
public fun intArray(vararg content : Int): IntArray = noImpl
|
||||||
|
|
||||||
library
|
library
|
||||||
public fun charArray(vararg content : Char): CharArray = js.noImpl
|
public fun charArray(vararg content : Char): CharArray = noImpl
|
||||||
|
|
||||||
library
|
library
|
||||||
public fun shortArray(vararg content : Short): ShortArray = js.noImpl
|
public fun shortArray(vararg content : Short): ShortArray = noImpl
|
||||||
|
|
||||||
library
|
library
|
||||||
public fun byteArray(vararg content : Byte): ByteArray = js.noImpl
|
public fun byteArray(vararg content : Byte): ByteArray = noImpl
|
||||||
|
|
||||||
library
|
library
|
||||||
public fun booleanArray(vararg content : Boolean): BooleanArray = js.noImpl
|
public fun booleanArray(vararg content : Boolean): BooleanArray = noImpl
|
||||||
|
|
||||||
library("copyToArray")
|
library("copyToArray")
|
||||||
public fun <reified T> Collection<T>.copyToArray(): Array<T> = js.noImpl
|
public fun <reified T> Collection<T>.copyToArray(): Array<T> = noImpl
|
||||||
|
|||||||
@@ -3,27 +3,27 @@ package kotlin.js
|
|||||||
//TODO: declare using number
|
//TODO: declare using number
|
||||||
native
|
native
|
||||||
public class MathClass() {
|
public class MathClass() {
|
||||||
public val PI : Double = js.noImpl;
|
public val PI : Double = noImpl;
|
||||||
public fun random() : Double = js.noImpl;
|
public fun random() : Double = noImpl;
|
||||||
public fun abs(value : Double) : Double = js.noImpl
|
public fun abs(value : Double) : Double = noImpl
|
||||||
public fun acos(value : Double) : Double = js.noImpl
|
public fun acos(value : Double) : Double = noImpl
|
||||||
public fun asin(value : Double) : Double = js.noImpl
|
public fun asin(value : Double) : Double = noImpl
|
||||||
public fun atan(value : Double) : Double = js.noImpl
|
public fun atan(value : Double) : Double = noImpl
|
||||||
public fun atan2(x : Double, y : Double) : Double = js.noImpl
|
public fun atan2(x : Double, y : Double) : Double = noImpl
|
||||||
public fun cos(value : Double) : Double = js.noImpl
|
public fun cos(value : Double) : Double = noImpl
|
||||||
public fun sin(value : Double) : Double = js.noImpl
|
public fun sin(value : Double) : Double = noImpl
|
||||||
public fun exp(value : Double) : Double = js.noImpl
|
public fun exp(value : Double) : Double = noImpl
|
||||||
public fun max(vararg values : Double) : Double = js.noImpl
|
public fun max(vararg values : Double) : Double = noImpl
|
||||||
public fun max(vararg values : Int) : Int = js.noImpl
|
public fun max(vararg values : Int) : Int = noImpl
|
||||||
public fun min(vararg values : Int) : Int = js.noImpl
|
public fun min(vararg values : Int) : Int = noImpl
|
||||||
public fun min(vararg values : Double) : Double = js.noImpl
|
public fun min(vararg values : Double) : Double = noImpl
|
||||||
public fun sqrt(value : Double) : Double = js.noImpl
|
public fun sqrt(value : Double) : Double = noImpl
|
||||||
public fun tan(value : Double) : Double = js.noImpl
|
public fun tan(value : Double) : Double = noImpl
|
||||||
public fun log(value : Double) : Double = js.noImpl
|
public fun log(value : Double) : Double = noImpl
|
||||||
public fun pow(base : Double, exp : Double) : Double = js.noImpl
|
public fun pow(base : Double, exp : Double) : Double = noImpl
|
||||||
public fun round(value : Number) : Int = js.noImpl
|
public fun round(value : Number) : Int = noImpl
|
||||||
public fun floor(value : Number) : Int = js.noImpl
|
public fun floor(value : Number) : Int = noImpl
|
||||||
public fun ceil(value : Number) : Int = js.noImpl
|
public fun ceil(value : Number) : Int = noImpl
|
||||||
}
|
}
|
||||||
|
|
||||||
native
|
native
|
||||||
|
|||||||
@@ -8,41 +8,41 @@ native public fun String.startsWith(char: Char): Boolean = noImpl
|
|||||||
native public fun String.endsWith(char: Char): Boolean = noImpl
|
native public fun String.endsWith(char: Char): Boolean = noImpl
|
||||||
native public fun String.contains(char: Char): Boolean = noImpl
|
native public fun String.contains(char: Char): Boolean = noImpl
|
||||||
|
|
||||||
native public fun String.toUpperCase() : String = js.noImpl
|
native public fun String.toUpperCase() : String = noImpl
|
||||||
|
|
||||||
native public fun String.toLowerCase() : String = js.noImpl
|
native public fun String.toLowerCase() : String = noImpl
|
||||||
|
|
||||||
native public fun String.indexOf(str : String) : Int = js.noImpl
|
native public fun String.indexOf(str : String) : Int = noImpl
|
||||||
native public fun String.indexOf(str : String, fromIndex : Int) : Int = js.noImpl
|
native public fun String.indexOf(str : String, fromIndex : Int) : Int = noImpl
|
||||||
|
|
||||||
native public fun String.lastIndexOf(str: String) : Int = js.noImpl
|
native public fun String.lastIndexOf(str: String) : Int = noImpl
|
||||||
native public fun String.lastIndexOf(str : String, fromIndex : Int) : Int = js.noImpl
|
native public fun String.lastIndexOf(str : String, fromIndex : Int) : Int = noImpl
|
||||||
|
|
||||||
library("splitString")
|
library("splitString")
|
||||||
public fun String.split(regex: String): Array<String> = js.noImpl
|
public fun String.split(regex: String): Array<String> = noImpl
|
||||||
|
|
||||||
library("splitString")
|
library("splitString")
|
||||||
public fun String.split(regex: String, limit: Int): Array<String> = js.noImpl
|
public fun String.split(regex: String, limit: Int): Array<String> = noImpl
|
||||||
|
|
||||||
native public fun String.substring(beginIndex : Int) : String = js.noImpl
|
native public fun String.substring(beginIndex : Int) : String = noImpl
|
||||||
native public fun String.substring(beginIndex : Int, endIndex : Int) : String = js.noImpl
|
native public fun String.substring(beginIndex : Int, endIndex : Int) : String = noImpl
|
||||||
|
|
||||||
native public fun String.charAt(index : Int) : Char = js.noImpl
|
native public fun String.charAt(index : Int) : Char = noImpl
|
||||||
|
|
||||||
native public fun String.concat(str : String) : String = js.noImpl
|
native public fun String.concat(str : String) : String = noImpl
|
||||||
|
|
||||||
native public fun String.match(regex : String) : Array<String> = js.noImpl
|
native public fun String.match(regex : String) : Array<String> = noImpl
|
||||||
|
|
||||||
native public fun String.trim() : String = js.noImpl
|
native public fun String.trim() : String = noImpl
|
||||||
|
|
||||||
native("length")
|
native("length")
|
||||||
public val CharSequence.size: Int get() = js.noImpl
|
public val CharSequence.size: Int get() = noImpl
|
||||||
|
|
||||||
library
|
library
|
||||||
public fun CharSequence.length(): Int = js.noImpl
|
public fun CharSequence.length(): Int = noImpl
|
||||||
|
|
||||||
library
|
library
|
||||||
public fun CharSequence.isEmpty(): Boolean = js.noImpl
|
public fun CharSequence.isEmpty(): Boolean = noImpl
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
|
|||||||
@@ -2,32 +2,32 @@ package html5.files
|
|||||||
|
|
||||||
native
|
native
|
||||||
public class FileReader() {
|
public class FileReader() {
|
||||||
public var onloadend : ((FileReaderEvent)->Unit)? = js.noImpl //
|
public var onloadend : ((FileReaderEvent)->Unit)? = noImpl //
|
||||||
public fun readAsDataURL(blob : Blob) = js.noImpl
|
public fun readAsDataURL(blob : Blob): Unit = noImpl
|
||||||
public val result : File = js.noImpl
|
public val result : File = noImpl
|
||||||
}
|
}
|
||||||
|
|
||||||
native
|
native
|
||||||
public class FileReaderEvent() {
|
public class FileReaderEvent() {
|
||||||
public val target : FileReader = js.noImpl
|
public val target : FileReader = noImpl
|
||||||
}
|
}
|
||||||
|
|
||||||
native
|
native
|
||||||
public class FileList() {
|
public class FileList() {
|
||||||
public fun item(index : Int) : File? = js.noImpl
|
public fun item(index : Int) : File? = noImpl
|
||||||
public val length : Int = js.noImpl
|
public val length : Int = noImpl
|
||||||
}
|
}
|
||||||
|
|
||||||
native
|
native
|
||||||
public class File() : Blob() {
|
public class File() : Blob() {
|
||||||
public val name : String = js.noImpl
|
public val name : String = noImpl
|
||||||
// readonly attribute Date lastModifiedDate;
|
// readonly attribute Date lastModifiedDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
native
|
native
|
||||||
public open class Blob() {
|
public open class Blob() {
|
||||||
public val size : Int = js.noImpl
|
public val size : Int = noImpl
|
||||||
public val `type` : String = js.noImpl
|
public val `type` : String = noImpl
|
||||||
//Blob slice(optional long long start,
|
//Blob slice(optional long long start,
|
||||||
//optional long long end,
|
//optional long long end,
|
||||||
//optional DOMString contentType);
|
//optional DOMString contentType);
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
package html5.localstorage
|
package html5.localstorage
|
||||||
|
|
||||||
native
|
native
|
||||||
public val localStorage : LocalStorageClass = js.noImpl
|
public val localStorage : LocalStorageClass = noImpl
|
||||||
|
|
||||||
native
|
native
|
||||||
public class LocalStorageClass() {
|
public class LocalStorageClass() {
|
||||||
public fun getItem(key : String) : Any? = js.noImpl
|
public fun getItem(key : String) : Any? = noImpl
|
||||||
public fun setItem(key : String, value : Any?) : Unit = js.noImpl
|
public fun setItem(key : String, value : Any?) : Unit = noImpl
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import org.w3c.dom.Element
|
|||||||
|
|
||||||
native
|
native
|
||||||
public public class JQuery() {
|
public public class JQuery() {
|
||||||
public fun addClass(className: String): JQuery = js.noImpl;
|
public fun addClass(className: String): JQuery = noImpl;
|
||||||
public fun addClass(f: Element.(Int, String) -> String): JQuery = js.noImpl;
|
public fun addClass(f: Element.(Int, String) -> String): JQuery = noImpl;
|
||||||
|
|
||||||
public fun attr(attrName: String): String = "";
|
public fun attr(attrName: String): String = "";
|
||||||
public fun attr(attrName: String, value: String): JQuery = this;
|
public fun attr(attrName: String, value: String): JQuery = this;
|
||||||
@@ -38,9 +38,9 @@ public public class JQuery() {
|
|||||||
public fun slideUp(): JQuery = this;
|
public fun slideUp(): JQuery = this;
|
||||||
public fun hover(handlerInOut: Element.() -> Unit): JQuery = this;
|
public fun hover(handlerInOut: Element.() -> Unit): JQuery = this;
|
||||||
public fun hover(handlerIn: Element.() -> Unit, handlerOut: Element.() -> Unit): JQuery = this;
|
public fun hover(handlerIn: Element.() -> Unit, handlerOut: Element.() -> Unit): JQuery = this;
|
||||||
public fun next(): JQuery = js.noImpl
|
public fun next(): JQuery = noImpl
|
||||||
public fun parent(): JQuery = js.noImpl
|
public fun parent(): JQuery = noImpl
|
||||||
public fun `val`(): String? = js.noImpl
|
public fun `val`(): String? = noImpl
|
||||||
}
|
}
|
||||||
|
|
||||||
native
|
native
|
||||||
|
|||||||
@@ -5,22 +5,22 @@ package jquery.ui
|
|||||||
import jquery.JQuery
|
import jquery.JQuery
|
||||||
|
|
||||||
native
|
native
|
||||||
public fun JQuery.buttonset() : JQuery = js.noImpl;
|
public fun JQuery.buttonset() : JQuery = noImpl;
|
||||||
native
|
native
|
||||||
public fun JQuery.dialog() : JQuery = js.noImpl;
|
public fun JQuery.dialog() : JQuery = noImpl;
|
||||||
native
|
native
|
||||||
public fun JQuery.dialog(params : Json) : JQuery = js.noImpl
|
public fun JQuery.dialog(params : Json) : JQuery = noImpl
|
||||||
native
|
native
|
||||||
public fun JQuery.dialog(mode : String, param : String) : Any? = js.noImpl
|
public fun JQuery.dialog(mode : String, param : String) : Any? = noImpl
|
||||||
native
|
native
|
||||||
public fun JQuery.dialog(mode : String) : JQuery = js.noImpl
|
public fun JQuery.dialog(mode : String) : JQuery = noImpl
|
||||||
native
|
native
|
||||||
public fun JQuery.dialog(mode : String, param : String, value : Any?) : JQuery = js.noImpl
|
public fun JQuery.dialog(mode : String, param : String, value : Any?) : JQuery = noImpl
|
||||||
native
|
native
|
||||||
public fun JQuery.button() : JQuery = js.noImpl;
|
public fun JQuery.button() : JQuery = noImpl;
|
||||||
native
|
native
|
||||||
public fun JQuery.accordion() : JQuery = js.noImpl
|
public fun JQuery.accordion() : JQuery = noImpl
|
||||||
native
|
native
|
||||||
public fun JQuery.draggable(params : Json) : JQuery = js.noImpl
|
public fun JQuery.draggable(params : Json) : JQuery = noImpl
|
||||||
native
|
native
|
||||||
public fun JQuery.selectable() : JQuery = js.noImpl
|
public fun JQuery.selectable() : JQuery = noImpl
|
||||||
|
|||||||
@@ -5,5 +5,5 @@ package QUnit
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
native
|
native
|
||||||
public fun ok(actual: Boolean, message: String): Unit = js.noImpl;
|
public fun ok(actual: Boolean, message: String): Unit = noImpl;
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ public fun createDocument(): Document {
|
|||||||
return js.dom.html.document.implementation.createDocument(null, null, null)
|
return js.dom.html.document.implementation.createDocument(null, null, null)
|
||||||
}
|
}
|
||||||
|
|
||||||
native public val Node.outerHTML: String get() = js.noImpl
|
native public val Node.outerHTML: String get() = noImpl
|
||||||
|
|
||||||
/** Converts the node to an XML String */
|
/** Converts the node to an XML String */
|
||||||
public fun Node.toXmlString(): String = this.outerHTML
|
public fun Node.toXmlString(): String = this.outerHTML
|
||||||
|
|||||||
@@ -23,4 +23,4 @@ public class JsTestsAsserter() : Asserter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
native("JsTests.assert")
|
native("JsTests.assert")
|
||||||
public fun assert(value: Boolean, message: String): Unit = js.noImpl
|
public fun assert(value: Boolean, message: String): Unit = noImpl
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ package foo
|
|||||||
|
|
||||||
native
|
native
|
||||||
class A(b: Int) {
|
class A(b: Int) {
|
||||||
fun g(): Int = js.noImpl
|
fun g(): Int = noImpl
|
||||||
fun m(): Int = js.noImpl
|
fun m(): Int = noImpl
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ native
|
|||||||
class A(val c: Int) {
|
class A(val c: Int) {
|
||||||
native
|
native
|
||||||
class object {
|
class object {
|
||||||
val g: Int = js.noImpl
|
val g: Int = noImpl
|
||||||
val c: String = js.noImpl
|
val c: String = noImpl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,12 @@ package foo
|
|||||||
|
|
||||||
native
|
native
|
||||||
class Wow() {
|
class Wow() {
|
||||||
val x: Int = js.noImpl
|
val x: Int = noImpl
|
||||||
val y: Int = js.noImpl
|
val y: Int = noImpl
|
||||||
}
|
}
|
||||||
|
|
||||||
native
|
native
|
||||||
fun Wow.sum(): Int = js.noImpl
|
fun Wow.sum(): Int = noImpl
|
||||||
|
|
||||||
fun Wow.dblSum(): Int {
|
fun Wow.dblSum(): Int {
|
||||||
return 2 * sum()
|
return 2 * sum()
|
||||||
@@ -16,4 +16,4 @@ fun Wow.dblSum(): Int {
|
|||||||
|
|
||||||
fun box(): Boolean {
|
fun box(): Boolean {
|
||||||
return (Wow().dblSum() == 6)
|
return (Wow().dblSum() == 6)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ class B : A("B") {
|
|||||||
var prop: String = "B prop"
|
var prop: String = "B prop"
|
||||||
}
|
}
|
||||||
|
|
||||||
native fun A.bar(): String = js.noImpl
|
native fun A.bar(): String = noImpl
|
||||||
|
|
||||||
native var A.prop: String
|
native var A.prop: String
|
||||||
get() = js.noImpl
|
get() = noImpl
|
||||||
set(value) = js.noImpl
|
set(value) = noImpl
|
||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
var a: A = A("A")
|
var a: A = A("A")
|
||||||
@@ -37,4 +37,4 @@ fun box(): String {
|
|||||||
assertEquals("B prop", (A::prop).get(a))
|
assertEquals("B prop", (A::prop).get(a))
|
||||||
|
|
||||||
return "OK";
|
return "OK";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,13 +2,13 @@ package foo
|
|||||||
|
|
||||||
native
|
native
|
||||||
class A(val v: String) {
|
class A(val v: String) {
|
||||||
fun m(i:Int, s:String): String = js.noImpl
|
fun m(i:Int, s:String): String = noImpl
|
||||||
}
|
}
|
||||||
native
|
native
|
||||||
fun A.nativeExt(i:Int, s:String): String = js.noImpl
|
fun A.nativeExt(i:Int, s:String): String = noImpl
|
||||||
|
|
||||||
native("nativeExt2AnotherName")
|
native("nativeExt2AnotherName")
|
||||||
fun A.nativeExt2(i:Int, s:String): String = js.noImpl
|
fun A.nativeExt2(i:Int, s:String): String = noImpl
|
||||||
|
|
||||||
fun bar(a: A, extLambda: A.(Int, String) -> String): String = a.(extLambda)(4, "boo")
|
fun bar(a: A, extLambda: A.(Int, String) -> String): String = a.(extLambda)(4, "boo")
|
||||||
|
|
||||||
@@ -25,4 +25,4 @@ fun box(): String {
|
|||||||
assertEquals("nativeExt2 test 4 boo", bar(a, A::nativeExt2))
|
assertEquals("nativeExt2 test 4 boo", bar(a, A::nativeExt2))
|
||||||
|
|
||||||
return "OK"
|
return "OK"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package foo
|
package foo
|
||||||
|
|
||||||
native
|
native
|
||||||
fun nativeFun(i:Int, s:String): String = js.noImpl
|
fun nativeFun(i:Int, s:String): String = noImpl
|
||||||
|
|
||||||
fun bar(funRef: (Int, String) -> String): String = funRef(4, "boo")
|
fun bar(funRef: (Int, String) -> String): String = funRef(4, "boo")
|
||||||
|
|
||||||
@@ -16,4 +16,4 @@ fun box(): String {
|
|||||||
if (r != "nativeFun 4 boo") return r
|
if (r != "nativeFun 4 boo") return r
|
||||||
|
|
||||||
return "OK"
|
return "OK"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package foo
|
package foo
|
||||||
|
|
||||||
native
|
native
|
||||||
fun returnFalse(): Boolean = js.noImpl
|
fun returnFalse(): Boolean = noImpl
|
||||||
|
|
||||||
fun box() = !returnFalse()
|
fun box() = !returnFalse()
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package foo
|
package foo
|
||||||
|
|
||||||
native
|
native
|
||||||
val c: Any? = js.noImpl
|
val c: Any? = noImpl
|
||||||
|
|
||||||
fun box(): Boolean {
|
fun box(): Boolean {
|
||||||
if (c != null) return false
|
if (c != null) return false
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package foo
|
|||||||
|
|
||||||
/*function g should return 0 if a parameter is undefined 1 if parameter is 1 and 3 if parameter is 3*/
|
/*function g should return 0 if a parameter is undefined 1 if parameter is 1 and 3 if parameter is 3*/
|
||||||
native
|
native
|
||||||
fun f(g: (Int?) -> Int): Boolean = js.noImpl
|
fun f(g: (Int?) -> Int): Boolean = noImpl
|
||||||
|
|
||||||
|
|
||||||
fun box(): Boolean {
|
fun box(): Boolean {
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
package foo
|
package foo
|
||||||
|
|
||||||
native
|
native
|
||||||
fun paramCount(vararg a: Int): Int = js.noImpl
|
fun paramCount(vararg a: Int): Int = noImpl
|
||||||
|
|
||||||
native("paramCount")
|
native("paramCount")
|
||||||
fun anotherParamCount(vararg a: Int): Int = js.noImpl
|
fun anotherParamCount(vararg a: Int): Int = noImpl
|
||||||
|
|
||||||
// test spread operator
|
// test spread operator
|
||||||
fun count(vararg a: Int) = paramCount(*a)
|
fun count(vararg a: Int) = paramCount(*a)
|
||||||
@@ -13,23 +13,23 @@ fun count(vararg a: Int) = paramCount(*a)
|
|||||||
fun anotherCount(vararg a: Int) = anotherParamCount(*a)
|
fun anotherCount(vararg a: Int) = anotherParamCount(*a)
|
||||||
|
|
||||||
native
|
native
|
||||||
fun test3(bar: Bar, dummy: Int, vararg args: Int): Boolean = js.noImpl
|
fun test3(bar: Bar, dummy: Int, vararg args: Int): Boolean = noImpl
|
||||||
|
|
||||||
native
|
native
|
||||||
fun Bar.test2(order: Int, dummy: Int, vararg args: Int): Boolean = js.noImpl
|
fun Bar.test2(order: Int, dummy: Int, vararg args: Int): Boolean = noImpl
|
||||||
|
|
||||||
native
|
native
|
||||||
class Bar(val size: Int, order: Int = 0) {
|
class Bar(val size: Int, order: Int = 0) {
|
||||||
fun test(order: Int, dummy: Int, vararg args: Int): Boolean = js.noImpl
|
fun test(order: Int, dummy: Int, vararg args: Int): Boolean = noImpl
|
||||||
class object {
|
class object {
|
||||||
fun startNewTest(): Boolean = js.noImpl
|
fun startNewTest(): Boolean = noImpl
|
||||||
var hasOrderProblem: Boolean = false
|
var hasOrderProblem: Boolean = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
native
|
native
|
||||||
object obj {
|
object obj {
|
||||||
fun test(size: Int, vararg args: Int): Boolean = js.noImpl
|
fun test(size: Int, vararg args: Int): Boolean = noImpl
|
||||||
}
|
}
|
||||||
|
|
||||||
fun spreadInMethodCall(size: Int, vararg args: Int) = Bar(size).test(0, 1, *args)
|
fun spreadInMethodCall(size: Int, vararg args: Int) = Bar(size).test(0, 1, *args)
|
||||||
@@ -41,7 +41,7 @@ fun spreadInMethodCallWithReceiver(size: Int, vararg args: Int) = Bar(size).test
|
|||||||
fun spreadInPackageMethodCall(size: Int, vararg args: Int) = test3(Bar(size), 1, *args)
|
fun spreadInPackageMethodCall(size: Int, vararg args: Int) = test3(Bar(size), 1, *args)
|
||||||
|
|
||||||
native
|
native
|
||||||
fun testNativeVarargWithFunLit(vararg args: Int, f: (a: IntArray) -> Boolean): Boolean = js.noImpl
|
fun testNativeVarargWithFunLit(vararg args: Int, f: (a: IntArray) -> Boolean): Boolean = noImpl
|
||||||
|
|
||||||
fun testSpreadOperatorWithSafeCall(a: Bar?, expected: Boolean?, vararg args: Int): Boolean {
|
fun testSpreadOperatorWithSafeCall(a: Bar?, expected: Boolean?, vararg args: Int): Boolean {
|
||||||
return a?.test(0, 1, *args) == expected
|
return a?.test(0, 1, *args) == expected
|
||||||
|
|||||||
Reference in New Issue
Block a user