[FIR] Fix leaking mutable map type of resolved argument mapping
This commit is contained in:
committed by
TeamCityServer
parent
1afb844e1a
commit
8925b8c922
+1
-1
@@ -529,7 +529,7 @@ class CallAndReferenceGenerator(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun IrMemberAccessExpression<*>.applyArgumentsWithReorderingIfNeeded(
|
private fun IrMemberAccessExpression<*>.applyArgumentsWithReorderingIfNeeded(
|
||||||
argumentMapping: LinkedHashMap<FirExpression, FirValueParameter>,
|
argumentMapping: Map<FirExpression, FirValueParameter>,
|
||||||
valueParameters: List<FirValueParameter>,
|
valueParameters: List<FirValueParameter>,
|
||||||
substitutor: ConeSubstitutor,
|
substitutor: ConeSubstitutor,
|
||||||
annotationMode: Boolean
|
annotationMode: Boolean
|
||||||
|
|||||||
@@ -43,13 +43,13 @@ inline val FirCall.arguments: List<FirExpression> get() = argumentList.arguments
|
|||||||
|
|
||||||
inline val FirCall.argument: FirExpression get() = argumentList.arguments.first()
|
inline val FirCall.argument: FirExpression get() = argumentList.arguments.first()
|
||||||
|
|
||||||
inline val FirCall.resolvedArgumentMapping: LinkedHashMap<FirExpression, FirValueParameter>?
|
inline val FirCall.resolvedArgumentMapping: Map<FirExpression, FirValueParameter>?
|
||||||
get() = when (val argumentList = argumentList) {
|
get() = when (val argumentList = argumentList) {
|
||||||
is FirResolvedArgumentList -> argumentList.mapping
|
is FirResolvedArgumentList -> argumentList.mapping
|
||||||
else -> null
|
else -> null
|
||||||
}
|
}
|
||||||
|
|
||||||
inline val FirCall.argumentMapping: LinkedHashMap<FirExpression, FirValueParameter>?
|
inline val FirCall.argumentMapping: Map<FirExpression, FirValueParameter>?
|
||||||
get() = when (val argumentList = argumentList) {
|
get() = when (val argumentList = argumentList) {
|
||||||
is FirResolvedArgumentList -> argumentList.mapping
|
is FirResolvedArgumentList -> argumentList.mapping
|
||||||
is FirPartiallyResolvedArgumentList -> argumentList.mapping
|
is FirPartiallyResolvedArgumentList -> argumentList.mapping
|
||||||
|
|||||||
Reference in New Issue
Block a user