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(
|
||||
ktFile: KtFile,
|
||||
configuration: CompilerConfiguration
|
||||
initialConfiguration: CompilerConfiguration
|
||||
): GenerationState? {
|
||||
val platform = ktFile.platform
|
||||
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 configuration = initialConfiguration.copy().apply {
|
||||
put(JVMConfigurationKeys.DO_NOT_CLEAR_BINDING_CONTEXT, true)
|
||||
}
|
||||
|
||||
val (bindingContext, toProcess) = DebuggerUtils.analyzeInlinedFunctions(
|
||||
resolutionFacade, ktFile, configuration.getBoolean(CommonConfigurationKeys.DISABLE_INLINE),
|
||||
bindingContextForFile
|
||||
|
||||
Reference in New Issue
Block a user