[IR] Implement IR actualizer and use it for K2 test and CLI scenario

Implement calculateExpectActualMap for Fir2IrComponents

^KT-51753 Fixed
This commit is contained in:
Ivan Kochurkin
2022-11-18 19:59:14 +01:00
committed by Space Team
parent 15ad9d134c
commit 8936220876
38 changed files with 1241 additions and 27 deletions
@@ -11,5 +11,11 @@ compiler or generated code. Use it at your own risk!
warning: ATTENTION!
This build uses experimental K2 compiler:
-Xuse-k2
error: k2 compiler does not support multi-platform projects yet, so please remove -Xuse-k2 flag
compiler/testData/cli/jvm/firMultiplatformCompilationWithError/jvm.kt:1:18: error: actual class 'actual interface A : Any' has no corresponding members for expected class members:
expect fun foo(): Unit
actual interface A
^
COMPILATION_ERROR
@@ -0,0 +1,11 @@
$TESTDATA_DIR$/firMultiplatformCompilationWithoutErrors/common.kt
$TESTDATA_DIR$/firMultiplatformCompilationWithoutErrors/jvm.kt
-Xcommon-sources
$TESTDATA_DIR$/firMultiplatformCompilationWithoutErrors/common.kt
-Xuse-k2
-cp
.
-d
$TEMP_DIR$
-XXLanguage\:+MultiPlatformProjects
-Xuse-fir-lt
@@ -0,0 +1,14 @@
warning: advanced option value is passed in an obsolete form. Please use the '=' character to specify the value: -Xcommon-sources=...
warning: ATTENTION!
This build uses unsafe internal compiler arguments:
-XXLanguage:+MultiPlatformProjects
This mode is not recommended for production use,
as no stability/compatibility guarantees are given on
compiler or generated code. Use it at your own risk!
warning: ATTENTION!
This build uses experimental K2 compiler:
-Xuse-k2
OK
@@ -11,5 +11,4 @@ compiler or generated code. Use it at your own risk!
warning: ATTENTION!
This build uses experimental K2 compiler:
-Xuse-k2
error: k2 compiler does not support multi-platform projects yet, so please remove -Xuse-k2 flag
COMPILATION_ERROR
OK