FIR: Minor. Use copy in CallInfo
This commit is contained in:
@@ -54,11 +54,7 @@ data class CallInfo(
|
|||||||
val argumentCount get() = arguments.size
|
val argumentCount get() = arguments.size
|
||||||
|
|
||||||
fun noStubReceiver(): CallInfo =
|
fun noStubReceiver(): CallInfo =
|
||||||
if (stubReceiver == null) this else CallInfo(
|
if (stubReceiver == null) this else copy(stubReceiver = null)
|
||||||
callKind, name, explicitReceiver, argumentList,
|
|
||||||
isSafeCall, isPotentialQualifierPart, typeArguments, session,
|
|
||||||
containingFile, implicitReceiverStack, expectedType, outerCSBuilder, lhs, null
|
|
||||||
)
|
|
||||||
|
|
||||||
fun replaceWithVariableAccess(): CallInfo =
|
fun replaceWithVariableAccess(): CallInfo =
|
||||||
copy(callKind = CallKind.VariableAccess, typeArguments = emptyList(), argumentList = FirEmptyArgumentList)
|
copy(callKind = CallKind.VariableAccess, typeArguments = emptyList(), argumentList = FirEmptyArgumentList)
|
||||||
|
|||||||
Reference in New Issue
Block a user