[FIR IDE] Always resolve to Body in ide fir renderer
This commit is contained in:
+1
-4
@@ -36,10 +36,7 @@ internal class KtFirSymbolDeclarationRendererProvider(
|
|||||||
}
|
}
|
||||||
check(containingSymbol is KtFirSymbol<*>?)
|
check(containingSymbol is KtFirSymbol<*>?)
|
||||||
|
|
||||||
val phaseNeeded =
|
return symbol.firRef.withFir(FirResolvePhase.BODY_RESOLVE) { fir ->
|
||||||
if (options.renderContainingDeclarations) FirResolvePhase.BODY_RESOLVE else FirResolvePhase.IMPLICIT_TYPES_BODY_RESOLVE
|
|
||||||
|
|
||||||
return symbol.firRef.withFir(phaseNeeded) { fir ->
|
|
||||||
val containingFir = containingSymbol?.firRef?.withFirUnsafe { it }
|
val containingFir = containingSymbol?.firRef?.withFirUnsafe { it }
|
||||||
FirIdeRenderer.render(fir, containingFir, options, fir.moduleData.session)
|
FirIdeRenderer.render(fir, containingFir, options, fir.moduleData.session)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user