[LL FIR] do not execute resolve under a non-cancellable session

The sessions are invalidated on the PCE
This commit is contained in:
Ilya Kirillov
2022-12-02 10:24:51 +01:00
committed by teamcity
parent 3d68eb27d5
commit 7a89ca495c
9 changed files with 14 additions and 11 deletions
@@ -1,15 +0,0 @@
/*
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.analysis.utils.errors
import com.intellij.openapi.diagnostic.ControlFlowException
import com.intellij.openapi.project.IndexNotReadyException
public fun shouldIjPlatformExceptionBeRethrown(exception: Throwable): Boolean = when (exception) {
is ControlFlowException -> true
is IndexNotReadyException -> true
else -> false
}