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

Unified Diff: pkg/front_end/tool/_fasta/analyzer_compile.dart

Issue 2977013002: Report messages instead of just printing. (Closed)
Patch Set: Update expectations. Created 3 years, 5 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: pkg/front_end/tool/_fasta/analyzer_compile.dart
diff --git a/pkg/front_end/tool/_fasta/analyzer_compile.dart b/pkg/front_end/tool/_fasta/analyzer_compile.dart
index 18409328c1336dd2d1f4fe694d751cd35ac71f08..bc7b0bb67890e613288f4d5432879ca5b96fd10b 100644
--- a/pkg/front_end/tool/_fasta/analyzer_compile.dart
+++ b/pkg/front_end/tool/_fasta/analyzer_compile.dart
@@ -24,6 +24,8 @@ import 'package:front_end/src/fasta/deprecated_problems.dart'
import 'package:front_end/src/fasta/dill/dill_target.dart' show DillTarget;
+import 'package:front_end/src/fasta/severity.dart' show Severity;
+
import 'package:front_end/src/fasta/uri_translator.dart' show UriTranslator;
const int iterations = const int.fromEnvironment("iterations", defaultValue: 1);
@@ -40,8 +42,9 @@ Future<Uri> compile(List<String> arguments) async {
return await task.compile();
});
} on deprecated_InputError catch (e) {
+ CompilerContext.current
+ .report(deprecated_InputError.toMessage(e), Severity.error);
exitCode = 1;
- print(e.deprecated_format());
return null;
}
}

Powered by Google App Engine
This is Rietveld 408576698