new directive for disabling of error checks in quick fix tests

This commit is contained in:
Alexander Kirillin
2013-05-07 20:15:20 +04:00
parent 1783f8df3a
commit 41ec5724df
@@ -41,6 +41,10 @@ public class QuickFixActionsUtils {
}
public static void checkForUnexpectedErrors(JetFile file) {
if (!InTextDirectivesUtils.findLinesWithPrefixesRemoved(file.getText(), "// DISABLE-ERRORS").isEmpty()) {
return;
}
AnalyzeExhaust exhaust = WholeProjectAnalyzerFacade.analyzeProjectWithCacheOnAFile(file);
Collection<Diagnostic> diagnostics = exhaust.getBindingContext().getDiagnostics();