@@ -329,16 +329,14 @@ open class KotlinUsesExtractor(
329329 classLabelResult.shortName)
330330 }
331331
332- private val anonymousTypeMapping: MutableMap <IrClass , TypeResults > = mutableMapOf ()
333-
334332 fun useAnonymousClass (c : IrClass ): TypeResults {
335- var res = anonymousTypeMapping[c]
333+ var res = tw.lm. anonymousTypeMapping[c]
336334 if (res == null ) {
337335 val javaResult = TypeResult (tw.getFreshIdLabel<DbClass >(), " " , " " )
338336 val kotlinResult = TypeResult (tw.getFreshIdLabel<DbKt_notnull_type >(), " " , " " )
339337 tw.writeKt_notnull_types(kotlinResult.id, javaResult.id)
340338 res = TypeResults (javaResult, kotlinResult)
341- anonymousTypeMapping[c] = res
339+ tw.lm. anonymousTypeMapping[c] = res
342340 }
343341
344342 return res
@@ -749,8 +747,6 @@ open class KotlinUsesExtractor(
749747 return this .visibility == DescriptorVisibilities .LOCAL
750748 }
751749
752- private val locallyVisibleFunctionLabelMapping: MutableMap <IrFunction , LocallyVisibleFunctionLabels > = mutableMapOf ()
753-
754750 /* *
755751 * Class to hold labels for generated classes around local functions, lambdas, function references, and property references.
756752 */
@@ -775,7 +771,7 @@ open class KotlinUsesExtractor(
775771 logger.error(" Extracting a non-local function as a local one" )
776772 }
777773
778- var res = locallyVisibleFunctionLabelMapping[f]
774+ var res = tw.lm. locallyVisibleFunctionLabelMapping[f]
779775 if (res == null ) {
780776 val javaResult = TypeResult (tw.getFreshIdLabel<DbClass >(), " " , " " )
781777 val kotlinResult = TypeResult (tw.getFreshIdLabel<DbKt_notnull_type >(), " " , " " )
@@ -786,7 +782,7 @@ open class KotlinUsesExtractor(
786782 tw.getFreshIdLabel(),
787783 tw.getFreshIdLabel()
788784 )
789- locallyVisibleFunctionLabelMapping[f] = res
785+ tw.lm. locallyVisibleFunctionLabelMapping[f] = res
790786 }
791787
792788 return res
0 commit comments