[K/JS] Rework symbol hash calculation to make IC works with @JsExport and @JsName changes

This commit is contained in:
Artem Kobzar
2023-11-27 13:49:56 +00:00
committed by Space Team
parent f7d87f6d70
commit 6615b77213
50 changed files with 569 additions and 17 deletions
@@ -0,0 +1,8 @@
interface Foo {
fun foo(): String
fun default(): String = "Default"
}
open class Bar {
open fun bar(): String = "Bar"
}
@@ -0,0 +1,9 @@
interface Foo {
@JsName("_foo_")
fun foo(): String
fun default(): String = "Default"
}
open class Bar {
open fun bar(): String = "Bar"
}
@@ -0,0 +1,10 @@
interface Foo {
@JsName("_foo_")
fun foo(): String
@JsName("_default_")
fun default(): String = "Default"
}
open class Bar {
open fun bar(): String = "Bar"
}
@@ -0,0 +1,11 @@
interface Foo {
@JsName("_foo_")
fun foo(): String
@JsName("_default_")
fun default(): String = "Default"
}
open class Bar {
@JsName("_bar_")
open fun bar(): String = "Bar"
}
@@ -0,0 +1,18 @@
STEP 0:
modifications:
U : lib.0.kt -> lib.kt
added file: lib.kt
STEP 1:
STEP 2:
modifications:
U : lib.2.kt -> lib.kt
modified ir: lib.kt
STEP 3:
modifications:
U : lib.3.kt -> lib.kt
modified ir: lib.kt
STEP 4:
modifications:
U : lib.4.kt -> lib.kt
modified ir: lib.kt
STEP 5: