[Wasm] Move FirJsExportAnnotationChecker to web.common and reuse in Wasm

#KT-56849
This commit is contained in:
Svyatoslav Kuzmich
2023-11-21 12:56:31 +01:00
committed by Space Team
parent c1fa0a3e8c
commit 640bf67480
12 changed files with 20 additions and 35 deletions
@@ -1,25 +0,0 @@
// !OPT_IN: kotlin.js.ExperimentalJsExport
@JsExport
fun foo1() {
}
class C {
@JsExport
fun memberFunction() {
}
}
fun foo2() {
@JsExport
fun localFun() {
}
}
val p1 = (@JsExport fun () {})
<!WRONG_ANNOTATION_TARGET!>@JsExport<!>
class C2
<!WRONG_ANNOTATION_TARGET!>@JsExport<!>
var p2: Int = 1
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !OPT_IN: kotlin.js.ExperimentalJsExport
@JsExport