[IR] Make contextReceiverParametersCount abstract in IrFunction

This commit is contained in:
Anastasiya Shadrina
2021-10-27 19:01:42 +07:00
committed by TeamCityServer
parent 3a9cf042d7
commit d0794e6741
10 changed files with 20 additions and 3 deletions
@@ -97,6 +97,8 @@ class Fir2IrLazyConstructor(
error("Mutating Fir2Ir lazy elements is not possible")
}
override var contextReceiverParametersCount: Int = 0
override var valueParameters: List<IrValueParameter> by lazyVar(lock) {
declarationStorage.enterScope(this)
fir.valueParameters.mapIndexed { index, valueParameter ->
@@ -73,6 +73,8 @@ class Fir2IrLazyPropertyAccessor(
}
}
override var contextReceiverParametersCount: Int = 0
override var valueParameters: List<IrValueParameter> by lazyVar(lock) {
if (!isSetter) emptyList()
else {
@@ -61,6 +61,8 @@ class Fir2IrLazySimpleFunction(
}
}
override var contextReceiverParametersCount: Int = 0
override var valueParameters: List<IrValueParameter> by lazyVar(lock) {
declarationStorage.enterScope(this)
fir.valueParameters.mapIndexed { index, valueParameter ->