Index: lib/src/compiler.dart |
diff --git a/lib/src/compiler.dart b/lib/src/compiler.dart |
index acf5494ed5505fdecc2413c79a29819afe8650d5..e20f6f85f109d543cc16660f774685e777315932 100644 |
--- a/lib/src/compiler.dart |
+++ b/lib/src/compiler.dart |
@@ -189,7 +189,9 @@ class BatchCompiler extends AbstractCompiler { |
bool _compileLibrary(LibraryElement library, CompilationNotifier notifier) { |
var success = _compilationRecord[library]; |
if (success != null) { |
- if (!success) _failure = true; |
+ if (!success) { |
+ _failure = true; |
+ } |
return success; |
} |
@@ -250,7 +252,9 @@ class BatchCompiler extends AbstractCompiler { |
} |
// Return tentative success status. |
- if (!success) _failure = true; |
+ if (!success) { |
+ _failure = true; |
+ } |
return success; |
} |
@@ -459,7 +463,7 @@ abstract class AbstractCompiler { |
// TODO(jmesserly): for now, treat DDC errors as having a different |
// error level from Analayzer ones. |
- if (error.errorCode.name.startsWith('dev_compiler')) { |
+ if (error.errorCode.name.startsWith('STRONG_MODE')) { |
reporter.onError(error); |
if (error.errorCode.errorSeverity == ErrorSeverity.ERROR) { |
failure = true; |