JVM IR: do not clear BindingContext in bytecode tool window
This commit is contained in:
@@ -283,7 +283,7 @@ class KotlinBytecodeToolWindow(private val myProject: Project, private val toolW
|
|||||||
|
|
||||||
fun compileSingleFile(
|
fun compileSingleFile(
|
||||||
ktFile: KtFile,
|
ktFile: KtFile,
|
||||||
configuration: CompilerConfiguration
|
initialConfiguration: CompilerConfiguration
|
||||||
): GenerationState? {
|
): GenerationState? {
|
||||||
val platform = ktFile.platform
|
val platform = ktFile.platform
|
||||||
if (!platform.isCommon() && !platform.isJvm()) return null
|
if (!platform.isCommon() && !platform.isJvm()) return null
|
||||||
@@ -294,6 +294,10 @@ class KotlinBytecodeToolWindow(private val myProject: Project, private val toolW
|
|||||||
|
|
||||||
val bindingContextForFile = resolutionFacade.analyzeWithAllCompilerChecks(listOf(ktFile)).bindingContext
|
val bindingContextForFile = resolutionFacade.analyzeWithAllCompilerChecks(listOf(ktFile)).bindingContext
|
||||||
|
|
||||||
|
val configuration = initialConfiguration.copy().apply {
|
||||||
|
put(JVMConfigurationKeys.DO_NOT_CLEAR_BINDING_CONTEXT, true)
|
||||||
|
}
|
||||||
|
|
||||||
val (bindingContext, toProcess) = DebuggerUtils.analyzeInlinedFunctions(
|
val (bindingContext, toProcess) = DebuggerUtils.analyzeInlinedFunctions(
|
||||||
resolutionFacade, ktFile, configuration.getBoolean(CommonConfigurationKeys.DISABLE_INLINE),
|
resolutionFacade, ktFile, configuration.getBoolean(CommonConfigurationKeys.DISABLE_INLINE),
|
||||||
bindingContextForFile
|
bindingContextForFile
|
||||||
|
|||||||
Reference in New Issue
Block a user