[Wasm] Add K2 checkers.wasm module (KT-56849)

Add first K2 checker ExternalInheritanceChecker to test the infra
This commit is contained in:
Svyatoslav Kuzmich
2023-08-30 16:10:29 +02:00
committed by Space Team
parent 0da9cf8159
commit a10042f909
20 changed files with 218 additions and 7 deletions
+1
View File
@@ -14,6 +14,7 @@ dependencies {
api(project(":compiler:fir:checkers:checkers.jvm"))
api(project(":compiler:fir:checkers:checkers.js"))
api(project(":compiler:fir:checkers:checkers.native"))
api(project(":compiler:fir:checkers:checkers.wasm"))
api(project(":js:js.frontend"))
implementation(project(":core:compiler.common.native"))
@@ -13,6 +13,8 @@ import org.jetbrains.kotlin.fir.analysis.jvm.checkers.JvmExpressionCheckers
import org.jetbrains.kotlin.fir.analysis.jvm.checkers.JvmTypeCheckers
import org.jetbrains.kotlin.fir.analysis.native.checkers.NativeDeclarationCheckers
import org.jetbrains.kotlin.fir.analysis.native.checkers.NativeExpressionCheckers
import org.jetbrains.kotlin.fir.analysis.wasm.checkers.WasmDeclarationCheckers
import org.jetbrains.kotlin.fir.analysis.wasm.checkers.WasmExpressionCheckers
import org.jetbrains.kotlin.fir.session.FirSessionConfigurator
fun FirSessionConfigurator.registerCommonCheckers() {
@@ -46,5 +48,6 @@ fun FirSessionConfigurator.registerNativeCheckers() {
}
fun FirSessionConfigurator.registerWasmCheckers() {
// TODO: Implement Wasm checkers (KT-56849)
useCheckers(WasmDeclarationCheckers)
useCheckers(WasmExpressionCheckers)
}