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
@@ -3,26 +3,26 @@
@file:JsModule("lib")
package foo
@native class A(@native val x: Int = noImpl) {
@native fun foo(y: Int): Int = noImpl
external class A(@native val x: Int = noImpl) {
fun foo(y: Int): Int = noImpl
}
@native object B {
@native val x: Int = noImpl
external object B {
val x: Int = noImpl
@native fun foo(y: Int): Int = noImpl
fun foo(y: Int): Int = noImpl
}
@native fun foo(y: Int): Int = noImpl
external fun foo(y: Int): Int = noImpl
@native val bar: Int = noImpl
external val bar: Int = noImpl
@native var mbar: Int = noImpl
external var mbar: Int = noImpl
// FILE: lib2.kt
package foo
@native object C {
external object C {
fun f(): Int = noImpl
}