[AA FIR] firSymbolUtils: avoid redundant resolve
^KT-56543
This commit is contained in:
committed by
Space Team
parent
093695962a
commit
18a8cfb090
+3
@@ -99,6 +99,9 @@ internal fun FirCallableSymbol<*>.dispatchReceiverType(
|
||||
}
|
||||
|
||||
internal fun FirVariableSymbol<*>.getKtConstantInitializer(resolveSession: LLFirResolveSession): KtInitializerValue? {
|
||||
// to avoid lazy resolve
|
||||
if (fir.initializer == null) return null
|
||||
|
||||
lazyResolveToPhase(FirResolvePhase.BODY_RESOLVE)
|
||||
var firInitializer = fir.initializer ?: return null
|
||||
if (firInitializer is FirPropertyAccessExpression) {
|
||||
|
||||
Reference in New Issue
Block a user