[LL] always get fir from decompiled stubs
This commit is contained in:
+3
@@ -94,6 +94,9 @@ internal abstract class LLFirResolvableResolveSession(
|
|||||||
ktDeclaration: KtDeclaration,
|
ktDeclaration: KtDeclaration,
|
||||||
phase: FirResolvePhase
|
phase: FirResolvePhase
|
||||||
): FirBasedSymbol<*> {
|
): FirBasedSymbol<*> {
|
||||||
|
if (ktDeclaration.containingKtFile.isCompiled) {
|
||||||
|
return findFirCompiledSymbol(ktDeclaration)
|
||||||
|
}
|
||||||
val module = ktDeclaration.getKtModule()
|
val module = ktDeclaration.getKtModule()
|
||||||
return when (getModuleKind(module)) {
|
return when (getModuleKind(module)) {
|
||||||
ModuleKind.RESOLVABLE_MODULE -> findSourceFirSymbol(ktDeclaration, module).also { resolveFirToPhase(it.fir, phase) }
|
ModuleKind.RESOLVABLE_MODULE -> findSourceFirSymbol(ktDeclaration, module).also { resolveFirToPhase(it.fir, phase) }
|
||||||
|
|||||||
Reference in New Issue
Block a user