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
@@ -5,19 +5,19 @@ package foo
import kotlin.js.*
@JsModule("A")
@native object A {
external object A {
fun f(): Int
val g: Int
}
@JsModule("B")
@native open class B {
external open class B {
fun foo(): Int
}
@JsModule("bar")
@native fun bar(): Unit
external fun bar(): Unit
// MODULE: m2(m1)
// FILE: b.kt
@@ -25,7 +25,7 @@ import kotlin.js.*
@file:JsModule("foo")
package foo
@native fun baz(): Unit
external fun baz(): Unit
// FILE: c.kt
package bar
@@ -39,4 +39,4 @@ fun box() {
<!CALL_TO_JS_MODULE_WITHOUT_MODULE_SYSTEM!>baz<!>()
}
@native class DerivedB : <!CALL_TO_JS_MODULE_WITHOUT_MODULE_SYSTEM!>B<!>()
external class DerivedB : <!CALL_TO_JS_MODULE_WITHOUT_MODULE_SYSTEM!>B<!>()