FirLazyDeclarationResolver: drop skipPhaseInLazyResolve
This commit is contained in:
-7
@@ -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? {
|
||||
|
||||
Reference in New Issue
Block a user