Skip to content

Commit d40cd05

Browse files
Fix EA-72969 - assert: ExtractFunctionForDebuggerUtilKt$getFunctionForExtractedFragment$.invoke : ERROR_TYPES
Context element for codeFragment can be a KtFile (not only KtExpression) ex. in case when file was changed after debugger starts and there is no expression at line with breakpoint
1 parent 65108fd commit d40cd05

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

idea/idea-analysis/src/org/jetbrains/kotlin/idea/caches/resolve/CodeFragmentAnalyzer.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ class CodeFragmentAnalyzer(
8787
resolveToElement: (KtElement) -> BindingContext
8888
): Pair<LexicalScope, DataFlowInfo>? {
8989
val context = codeFragment.context
90-
if (context !is KtExpression) return null
9190

9291
val scopeForContextElement: LexicalScope?
9392
val dataFlowInfo: DataFlowInfo

0 commit comments

Comments
 (0)