[LL FIR] remove LowLevelFirApiFacadeForResolveOnAir.onAirResolveTypeInPlace
which is unused now ^KT-58125
This commit is contained in:
committed by
Space Team
parent
481962d5f6
commit
672cc85949
-22
@@ -328,26 +328,4 @@ object LowLevelFirApiFacadeForResolveOnAir {
|
||||
else -> error("Not supported type ${ktDeclaration::class.simpleName}")
|
||||
}
|
||||
}
|
||||
|
||||
fun onAirResolveTypeInPlace(
|
||||
place: KtElement,
|
||||
typeReference: KtTypeReference,
|
||||
firResolveSession: LLFirResolveSession,
|
||||
): FirResolvedTypeRef {
|
||||
val context = firResolveSession.getTowerContextProvider(place.containingKtFile).getClosestAvailableParentContext(place)
|
||||
?: error("TowerContext not found for ${place.getElementTextInContext()}")
|
||||
|
||||
val session = firResolveSession.useSiteFirSession
|
||||
val firTypeReference = buildFirUserTypeRef(
|
||||
typeReference = typeReference,
|
||||
session = session,
|
||||
baseScopeProvider = session.kotlinScopeProvider
|
||||
)
|
||||
|
||||
return FirTypeResolveTransformer(
|
||||
session = session,
|
||||
scopeSession = ScopeSession(),
|
||||
initialScopes = context.towerDataElements.asReversed().mapNotNull { it.scope }
|
||||
).transformTypeRef(firTypeReference, null)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user