[FIR] Return scope session from LowLevelFirAnalyzerFacade instead of failing

This is needed for proper work of FirScopeDumpHandler for
  low level fir tests
This commit is contained in:
Dmitriy Novozhilov
2022-01-18 17:51:14 +03:00
parent 6d8b1800e4
commit e5275992d2
@@ -26,7 +26,8 @@ class LowLevelFirAnalyzerFacade(
val allFirFiles: Map<TestFile, FirFile>,
private val diagnosticCheckerFilter: DiagnosticCheckerFilter,
) : AbstractFirAnalyzerFacade() {
override val scopeSession: ScopeSession get() = shouldNotBeCalled()
override val scopeSession: ScopeSession
get() = ScopeSession()
override fun runCheckers(): Map<FirFile, List<KtDiagnostic>> {
findSealedInheritors()