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

Unified Diff: lib/src/server/server.dart

Issue 1419953002: Fix the error message widget (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
Index: lib/src/server/server.dart
diff --git a/lib/src/server/server.dart b/lib/src/server/server.dart
index 8bb0518e13e03136a0c702a3d07e765dc4f705bc..5e0844ca2209afa162a1beeb2207f7ca2e8a2cec 100644
--- a/lib/src/server/server.dart
+++ b/lib/src/server/server.dart
@@ -25,7 +25,7 @@ import '../codegen/code_generator.dart' show CodeGenerator;
import '../codegen/html_codegen.dart' show generateEntryHtml;
import '../codegen/js_codegen.dart';
import '../analysis_context.dart';
-import '../compiler.dart' show AbstractCompiler;
+import '../compiler.dart' show AbstractCompiler, createErrorReporter;
import '../info.dart'
show AnalyzerMessage, CheckerResults, LibraryInfo, LibraryUnit;
import '../options.dart';
@@ -229,7 +229,8 @@ class DevServer {
}
var port = options.port;
var host = options.host;
- var compiler = new ServerCompiler(context, options);
+ var reporter = createErrorReporter(context, options);
+ var compiler = new ServerCompiler(context, options, reporter: reporter);
return new DevServer._(compiler, outDir, host, port, entryPath);
}
« no previous file with comments | « lib/src/report.dart ('k') | lib/src/summary.dart » ('j') | lib/src/summary.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698