Index: lib/src/compiler.dart |
diff --git a/lib/src/compiler.dart b/lib/src/compiler.dart |
index c4e66221377248e846dc75c71b91e9bfecb6b240..34b2c21af43097e58546a2a97e8d4a2483d21390 100644 |
--- a/lib/src/compiler.dart |
+++ b/lib/src/compiler.dart |
@@ -6,7 +6,6 @@ |
import 'dart:async'; |
import 'dart:collection'; |
-import 'dart:convert' show JSON; |
import 'dart:math' as math; |
import 'dart:io'; |
@@ -70,13 +69,9 @@ bool compile(CompilerOptions options) { |
if (reporter is HtmlReporter) { |
reporter.finish(options); |
- } else if (options.dumpInfo && reporter is SummaryReporter) { |
+ } else if (reporter is SummaryReporter) { |
var result = reporter.result; |
print(summaryToString(result)); |
- if (options.dumpInfoFile != null) { |
- var file = new File(options.dumpInfoFile); |
- file.writeAsStringSync(JSON.encode(result.toJsonMap())); |
- } |
} |
return status; |
@@ -481,7 +476,7 @@ AnalysisErrorListener createErrorReporter( |
AnalysisContext context, CompilerOptions options) { |
return options.htmlReport |
? new HtmlReporter(context) |
- : options.dumpInfo |
+ : options.serverMode |
? new SummaryReporter(context, options.logLevel) |
: new LogReporter(context, useColors: options.useColors); |
} |