Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(469)

Unified Diff: lib/src/compiler.dart

Issue 1418563002: Restore null error listener (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/compiler.dart
diff --git a/lib/src/compiler.dart b/lib/src/compiler.dart
index 9d6f04b5b49ca8e49da677a99d4bb00ae3f16ea8..a38f43b73408a79014b2e23c2d2eff0b72f21aba 100644
--- a/lib/src/compiler.dart
+++ b/lib/src/compiler.dart
@@ -355,7 +355,8 @@ abstract class AbstractCompiler {
final AnalysisContext context;
final AnalysisErrorListener reporter;
- AbstractCompiler(this.context, this.options, [this.reporter]);
+ AbstractCompiler(this.context, this.options, [AnalysisErrorListener listener])
+ : reporter = listener ?? AnalysisErrorListener.NULL_LISTENER;
String get outputDir => options.codegenOptions.outputDir;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698