Debugger: do not report errors from context file

#KT-11455 Fixed
This commit is contained in:
Natalia Ukhorskaya
2016-03-17 12:36:04 +03:00
parent 6752d0f180
commit 6b4ea1ff19
@@ -461,8 +461,10 @@ class KotlinEvaluator(val codeFragment: KtCodeFragment, val sourcePosition: Sour
val bindingContext = analysisResult.bindingContext val bindingContext = analysisResult.bindingContext
bindingContext.diagnostics.firstOrNull { it.severity == Severity.ERROR }?.let { bindingContext.diagnostics.firstOrNull { it.severity == Severity.ERROR }?.let {
if (it.psiElement.containingFile == this) {
exception(DefaultErrorMessages.render(it)) exception(DefaultErrorMessages.render(it))
} }
}
if (analyzeInlineFunctions) { if (analyzeInlineFunctions) {
val (newBindingContext, files) = DebuggerUtils.analyzeInlinedFunctions(resolutionFacade, bindingContext, this, false) val (newBindingContext, files) = DebuggerUtils.analyzeInlinedFunctions(resolutionFacade, bindingContext, this, false)