[LL FIR] add api to FirLazyDeclarationResolver to resolve class with callable members

^KT-56543
This commit is contained in:
Ilya Kirillov
2023-03-22 13:06:53 +01:00
committed by Space Team
parent 25cb03b707
commit 23e40693a3
4 changed files with 58 additions and 7 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
@@ -8,6 +8,7 @@ package org.jetbrains.kotlin.test.frontend.fir.handlers
import org.jetbrains.kotlin.fir.declarations.FirResolvePhase
import org.jetbrains.kotlin.fir.symbols.FirBasedSymbol
import org.jetbrains.kotlin.fir.symbols.FirLazyDeclarationResolver
import org.jetbrains.kotlin.fir.symbols.impl.FirClassSymbol
class FirCompilerLazyDeclarationResolverWithPhaseChecking : FirLazyDeclarationResolver() {
@@ -22,6 +23,10 @@ class FirCompilerLazyDeclarationResolverWithPhaseChecking : FirLazyDeclarationRe
checkIfCanLazyResolveToPhase(symbol, toPhase)
}
override fun lazyResolveToPhaseWithCallableMembers(symbol: FirClassSymbol<*>, toPhase: FirResolvePhase) {
checkIfCanLazyResolveToPhase(symbol, toPhase)
}
override fun startResolvingPhase(phase: FirResolvePhase) {
check(currentTransformerPhase == null)
currentTransformerPhase = phase