Use BodyResolveMode.PARTIAL_WITH_DIAGNOSTICS for checking whether an auto-import is still required

This commit is contained in:
Dmitry Jemerov
2016-12-07 19:38:37 +03:00
parent 4f916773c2
commit a3aa2ca81e
@@ -158,7 +158,7 @@ internal abstract class ImportFixBase<T : KtExpression> protected constructor(
val file = element.getContainingKtFile()
val bindingContext = element.analyze(BodyResolveMode.PARTIAL)
val bindingContext = element.analyze(BodyResolveMode.PARTIAL_WITH_DIAGNOSTICS)
if (!checkErrorStillPresent(bindingContext)) return emptyList()
val searchScope = getResolveScope(file)