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

Unified Diff: lib/src/compiler.dart

Issue 1778623002: DDC: remove dumpInfo flag (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 9 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 | « lib/src/codegen/side_effect_analysis.dart ('k') | lib/src/options.dart » ('j') | 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 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);
}
« no previous file with comments | « lib/src/codegen/side_effect_analysis.dart ('k') | lib/src/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698