IR: make isExternal immutable

This commit is contained in:
Anton Bannykh
2021-02-26 13:31:59 +03:00
committed by TeamCityServer
parent b0e0e62c0b
commit 87f3ca3f36
32 changed files with 45 additions and 141 deletions
@@ -634,22 +634,21 @@ class IrDeclarationDeserializer(
flags.isFakeOverride
)
}.apply {
if (proto.hasGetter()) {
getter = deserializeIrFunction(proto.getter).also {
it.correspondingPropertySymbol = symbol
it.isExternal = this.isExternal
withExternalValue(isExternal) {
if (proto.hasGetter()) {
getter = deserializeIrFunction(proto.getter).also {
it.correspondingPropertySymbol = symbol
}
}
}
if (proto.hasSetter()) {
setter = deserializeIrFunction(proto.setter).also {
it.correspondingPropertySymbol = symbol
it.isExternal = this.isExternal
if (proto.hasSetter()) {
setter = deserializeIrFunction(proto.setter).also {
it.correspondingPropertySymbol = symbol
}
}
}
if (proto.hasBackingField()) {
backingField = deserializeIrField(proto.backingField).also {
it.correspondingPropertySymbol = symbol
it.isExternal = this.isExternal
if (proto.hasBackingField()) {
backingField = deserializeIrField(proto.backingField).also {
it.correspondingPropertySymbol = symbol
}
}
}
}