[JS IR] Take into account file annotations for calculating symbol hashes

^KT-55367 Fixed
This commit is contained in:
Alexander Korepanov
2022-12-09 13:06:34 +01:00
committed by Space Team
parent 4136189114
commit 48daf0befe
39 changed files with 280 additions and 81 deletions
@@ -0,0 +1,3 @@
@file:JsModule("js-module-c")
external fun externalDemoFunction(): Int
@@ -0,0 +1,3 @@
@file:JsModule("js-module-c-new")
external fun externalDemoFunction(): Int
@@ -0,0 +1,28 @@
STEP 0:
dependencies: lib1
modifications:
U : test.0.kt -> test.kt
added file: test.kt
STEP 1..2:
dependencies: lib1
STEP 3:
dependencies: lib1
modifications:
U : test.3.kt -> test.kt
modified ir: test.kt
STEP 4:
dependencies: lib1
updated imports: test.kt
STEP 5:
dependencies: lib1
modifications:
U : JsModuleC.5.kt -> JsModuleC.kt
added file: JsModuleC.kt
updated exports: JsModuleC.kt
updated imports: test.kt
STEP 6:
dependencies: lib1
modifications:
U : JsModuleC.6.kt -> JsModuleC.kt
modified ir: JsModuleC.kt
updated imports: test.kt
@@ -0,0 +1 @@
fun testFunction() = demoFunction()
@@ -0,0 +1 @@
fun testFunction() = externalDemoFunction() + 1