[FIR] Get rid of all conditional reads of FirDeclaration.resolvePhase

This commit is contained in:
Dmitriy Novozhilov
2021-07-02 12:55:10 +03:00
parent 43fe0c3bc1
commit 1593c4859d
14 changed files with 55 additions and 31 deletions
@@ -59,6 +59,10 @@ internal object DeclarationCopyBuilder {
getter = propertyWithBody.getter
setter = copySetter
if (propertyResolvePhase < FirResolvePhase.IMPLICIT_TYPES_BODY_RESOLVE) {
initializerAndAccessorsAreResolved = false
}
initDeclaration(this@withBodyFrom, propertyWithBody)
resolvePhase = propertyResolvePhase
}