Kotlin: Use an IrClass for the Java class in the priomitive type handling

This means we can add a label for it, and indicate that we use it,
properly.
This commit is contained in:
Ian Lynagh
2021-12-01 12:25:32 +00:00
parent 7fa4da8b0c
commit de137415b8
6 changed files with 85 additions and 31 deletions

View File

@@ -17,8 +17,9 @@ open class KotlinFileExtractor(
override val tw: FileTrapWriter,
dependencyCollector: OdasaOutput.TrapFileManager?,
externalClassExtractor: ExternalClassExtractor,
primitiveTypeMapping: Map<IdSignature.PublicSignature, PrimitiveTypeInfo>,
pluginContext: IrPluginContext
): KotlinUsesExtractor(logger, tw, dependencyCollector, externalClassExtractor, pluginContext) {
): KotlinUsesExtractor(logger, tw, dependencyCollector, externalClassExtractor, primitiveTypeMapping, pluginContext) {
fun extractDeclaration(declaration: IrDeclaration, parentId: Label<out DbReftype>) {
when (declaration) {