FirLazyDeclarationResolver: drop skipPhaseInLazyResolve

This commit is contained in:
Mikhail Glukhikh
2022-03-01 11:10:47 +03:00
committed by Space
parent 30fa0230ec
commit 3505b285f7
@@ -174,7 +174,6 @@ internal class FirLazyDeclarationResolver(private val firFileBuilder: FirFileBui
var currentPhase = FirResolvePhase.IMPORTS
while (currentPhase < toPhase) {
currentPhase = currentPhase.next
if (skipPhaseInLazyResolve(currentPhase)) continue
if (checkPCE) checkCanceled()
val transformersToApply = designations.mapNotNull {
@@ -358,7 +357,6 @@ internal class FirLazyDeclarationResolver(private val firFileBuilder: FirFileBui
while (currentPhase < toPhase) {
currentPhase = currentPhase.next
if (skipPhaseInLazyResolve(currentPhase)) continue
if (checkPCE) checkCanceled()
LazyTransformerFactory.createLazyTransformer(
@@ -396,7 +394,6 @@ internal class FirLazyDeclarationResolver(private val firFileBuilder: FirFileBui
while (currentPhase < FirResolvePhase.BODY_RESOLVE) {
currentPhase = currentPhase.next
if (skipPhaseInLazyResolve(currentPhase)) continue
if (checkPCE) checkCanceled()
LazyTransformerFactory.createLazyTransformer(
@@ -411,10 +408,6 @@ internal class FirLazyDeclarationResolver(private val firFileBuilder: FirFileBui
).transformDeclaration(firFileBuilder.firPhaseRunner)
}
}
private fun skipPhaseInLazyResolve(currentPhase: FirResolvePhase): Boolean {
return currentPhase == FirResolvePhase.COMPILER_REQUIRED_ANNOTATIONS
}
}
private fun KtDeclaration.getContainingEnumEntryAsMemberOfEnumEntry(): KtEnumEntry? {