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
This commit is contained in:
Natalia Ukhorskaya
2016-04-13 17:47:27 +03:00
parent 7fb3099206
commit 316057873b
@@ -87,7 +87,6 @@ class CodeFragmentAnalyzer(
resolveToElement: (KtElement) -> BindingContext
): Pair<LexicalScope, DataFlowInfo>? {
val context = codeFragment.context
if (context !is KtExpression) return null
val scopeForContextElement: LexicalScope?
val dataFlowInfo: DataFlowInfo