psi2ir: minor: simplify code for dynamic array element assignment
This commit is contained in:
@@ -274,12 +274,12 @@ class CallGenerator(statementGenerator: StatementGenerator) : StatementGenerator
|
|||||||
?: throw AssertionError("No index argument in dynamic array set: ${call.original.call.callElement.text}")
|
?: throw AssertionError("No index argument in dynamic array set: ${call.original.call.callElement.text}")
|
||||||
val arg1 = args[1]
|
val arg1 = args[1]
|
||||||
?: throw AssertionError("No value argument in dynamic array set: ${call.original.call.callElement.text}")
|
?: throw AssertionError("No value argument in dynamic array set: ${call.original.call.callElement.text}")
|
||||||
receiver =
|
left =
|
||||||
makeDynamicOperatorExpression(IrDynamicOperator.ARRAY_ACCESS).apply {
|
makeDynamicOperatorExpression(IrDynamicOperator.ARRAY_ACCESS).apply {
|
||||||
receiver = dynamicReceiver
|
left = dynamicReceiver
|
||||||
arguments.add(arg0)
|
right = arg0
|
||||||
}
|
}
|
||||||
arguments.add(arg1)
|
right = arg1
|
||||||
}
|
}
|
||||||
else ->
|
else ->
|
||||||
makeDynamicOperatorExpressionWithArguments(
|
makeDynamicOperatorExpressionWithArguments(
|
||||||
|
|||||||
Reference in New Issue
Block a user