JS: replace all usages of @native annotation with external modifier, in tests, stdlib, etc

This commit is contained in:
Alexey Andreev
2016-11-25 12:36:47 +03:00
parent e0cb56b3c3
commit 68412ae94f
173 changed files with 486 additions and 651 deletions
+16 -8
View File
@@ -1,22 +1,30 @@
package foo
@JsName("bar") @native fun foo(): Int = noImpl
@JsName("bar")
external fun foo(): Int = noImpl
@JsName("baz") @native val prop: Int get() = noImpl
@JsName("baz")
external val prop: Int get() = noImpl
@JsName("B") @native class A {
@JsName("g") fun f(): Int = noImpl
@JsName("B")
external class A {
@JsName("g")
fun f(): Int = noImpl
@JsName("q") val p: Int get() = noImpl
@JsName("q")
val p: Int get() = noImpl
companion object {
@JsName("g") fun f(): Int = noImpl
@JsName("g")
fun f(): Int = noImpl
@JsName("q") val p: Int get() = noImpl
@JsName("q")
val p: Int get() = noImpl
}
}
@JsName("P") @native object O {
@JsName("P")
external object O {
fun f(): Int = noImpl
}