FirLazyDeclarationResolver: drop skipPhaseInLazyResolve
This commit is contained in:
-7
@@ -174,7 +174,6 @@ internal class FirLazyDeclarationResolver(private val firFileBuilder: FirFileBui
|
|||||||
var currentPhase = FirResolvePhase.IMPORTS
|
var currentPhase = FirResolvePhase.IMPORTS
|
||||||
while (currentPhase < toPhase) {
|
while (currentPhase < toPhase) {
|
||||||
currentPhase = currentPhase.next
|
currentPhase = currentPhase.next
|
||||||
if (skipPhaseInLazyResolve(currentPhase)) continue
|
|
||||||
if (checkPCE) checkCanceled()
|
if (checkPCE) checkCanceled()
|
||||||
|
|
||||||
val transformersToApply = designations.mapNotNull {
|
val transformersToApply = designations.mapNotNull {
|
||||||
@@ -358,7 +357,6 @@ internal class FirLazyDeclarationResolver(private val firFileBuilder: FirFileBui
|
|||||||
|
|
||||||
while (currentPhase < toPhase) {
|
while (currentPhase < toPhase) {
|
||||||
currentPhase = currentPhase.next
|
currentPhase = currentPhase.next
|
||||||
if (skipPhaseInLazyResolve(currentPhase)) continue
|
|
||||||
if (checkPCE) checkCanceled()
|
if (checkPCE) checkCanceled()
|
||||||
|
|
||||||
LazyTransformerFactory.createLazyTransformer(
|
LazyTransformerFactory.createLazyTransformer(
|
||||||
@@ -396,7 +394,6 @@ internal class FirLazyDeclarationResolver(private val firFileBuilder: FirFileBui
|
|||||||
|
|
||||||
while (currentPhase < FirResolvePhase.BODY_RESOLVE) {
|
while (currentPhase < FirResolvePhase.BODY_RESOLVE) {
|
||||||
currentPhase = currentPhase.next
|
currentPhase = currentPhase.next
|
||||||
if (skipPhaseInLazyResolve(currentPhase)) continue
|
|
||||||
if (checkPCE) checkCanceled()
|
if (checkPCE) checkCanceled()
|
||||||
|
|
||||||
LazyTransformerFactory.createLazyTransformer(
|
LazyTransformerFactory.createLazyTransformer(
|
||||||
@@ -411,10 +408,6 @@ internal class FirLazyDeclarationResolver(private val firFileBuilder: FirFileBui
|
|||||||
).transformDeclaration(firFileBuilder.firPhaseRunner)
|
).transformDeclaration(firFileBuilder.firPhaseRunner)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun skipPhaseInLazyResolve(currentPhase: FirResolvePhase): Boolean {
|
|
||||||
return currentPhase == FirResolvePhase.COMPILER_REQUIRED_ANNOTATIONS
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun KtDeclaration.getContainingEnumEntryAsMemberOfEnumEntry(): KtEnumEntry? {
|
private fun KtDeclaration.getContainingEnumEntryAsMemberOfEnumEntry(): KtEnumEntry? {
|
||||||
|
|||||||
Reference in New Issue
Block a user