Support full pipeline for basic kotlinx.serialization case:

FIR frontend and IR backend plugins.

Note: IR plugin is now broken for old FE, fixed in subsequent commits
This commit is contained in:
Leonid Startsev
2022-07-22 19:09:01 +02:00
committed by Space
parent cefc372632
commit 467ff30aac
18 changed files with 324 additions and 27 deletions
@@ -294,6 +294,7 @@ internal fun IrPluginContext.getArrayConstructorSymbol(
): IrConstructorSymbol {
val jsArrayName = irType.getArrayClassFqName()
return try {
@Suppress("DEPRECATION") // caution: referenceConstructors(fqName) doesn't work with FIR
referenceConstructors(jsArrayName).single(predicate)
} catch (e: RuntimeException) {
error("Array constructor $jsArrayName matching the predicate was not found in the context")