Skip to content

Commit

Permalink
[IR] Drop valueArgumentsCount parameter from IrDelegatingConstructorC…
Browse files Browse the repository at this point in the history
…allImpl.fromSymbolOwner

KT-70057
  • Loading branch information
mcpiroman authored and Space Cloud committed Sep 5, 2024
1 parent 2bb8d6c commit 42641dd
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1110,16 +1110,14 @@ fun IrConstructorCallImpl.Companion.fromSymbolOwner(
val constructor = constructorSymbol.owner
val constructorTypeParametersCount = constructor.typeParameters.size
val totalTypeParametersCount = classTypeParametersCount + constructorTypeParametersCount
val valueParametersCount = constructor.valueParameters.size

return IrConstructorCallImpl(
startOffset, endOffset,
type,
constructorSymbol,
totalTypeParametersCount,
constructorTypeParametersCount,
valueParametersCount,
origin
origin = origin,
)
}

Expand Down Expand Up @@ -1174,9 +1172,8 @@ fun IrDelegatingConstructorCallImpl.Companion.fromSymbolOwner(
type: IrType,
symbol: IrConstructorSymbol,
typeArgumentsCount: Int = symbol.owner.allTypeParameters.size,
valueArgumentsCount: Int = symbol.owner.valueParameters.size,
): IrDelegatingConstructorCallImpl =
IrDelegatingConstructorCallImpl(startOffset, endOffset, type, symbol, typeArgumentsCount, valueArgumentsCount)
IrDelegatingConstructorCallImpl(startOffset, endOffset, type, symbol, typeArgumentsCount)


@ObsoleteDescriptorBasedAPI
Expand Down

0 comments on commit 42641dd

Please sign in to comment.