@@ -287,10 +287,6 @@ open class KotlinUsesExtractor(
287287 data class TypeResult <LabelType >(val id : Label <LabelType >, val signature : String )
288288 data class TypeResults (val javaResult : TypeResult <out DbType >, val kotlinResult : TypeResult <out DbKt_type >)
289289
290- fun useTypeOld (t : IrType , canReturnPrimitiveTypes : Boolean = true): Label <out DbType > {
291- return useType(t, canReturnPrimitiveTypes).javaResult.id
292- }
293-
294290 fun useType (t : IrType , canReturnPrimitiveTypes : Boolean = true): TypeResults {
295291 when (t) {
296292 is IrSimpleType -> return useSimpleType(t, canReturnPrimitiveTypes)
@@ -587,8 +583,8 @@ class X {
587583 }
588584
589585 fun getFunctionLabel (parent : IrDeclarationParent , name : String , parameters : List <IrValueParameter >, returnType : IrType ) : String {
590- val paramTypeIds = parameters.joinToString() { " {${useTypeOld (erase(it.type)).toString()} }" }
591- val returnTypeId = useTypeOld (erase(returnType))
586+ val paramTypeIds = parameters.joinToString() { " {${useType (erase(it.type)).javaResult.id .toString()} }" }
587+ val returnTypeId = useType (erase(returnType)).javaResult.id
592588 val parentId = useDeclarationParent(parent)
593589 val label = " @\" callable;{$parentId }.$name ($paramTypeIds ){$returnTypeId }\" "
594590 return label
@@ -613,7 +609,7 @@ class X {
613609 }
614610 is IrTypeProjection -> {
615611 @Suppress(" UNCHECKED_CAST" )
616- return useTypeOld (arg.type, false ) as Label <out DbReftype >
612+ return useType (arg.type, false ).javaResult.id as Label <out DbReftype >
617613 }
618614 else -> {
619615 logger.warn(Severity .ErrorSevere , " Unexpected type argument." )
0 commit comments