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

Unified Diff: pkg/front_end/lib/src/fasta/compile_platform.dart

Issue 2970273004: Deprecate all diagnostics methods that use strings. (Closed)
Patch Set: 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/lib/src/fasta/compile_platform.dart
diff --git a/pkg/front_end/lib/src/fasta/compile_platform.dart b/pkg/front_end/lib/src/fasta/compile_platform.dart
index 750d2da3d417c46e5905232aa58d87430669fd4f..72060b41fff591ee4ddcbc9bdaf941e711d91d9e 100644
--- a/pkg/front_end/lib/src/fasta/compile_platform.dart
+++ b/pkg/front_end/lib/src/fasta/compile_platform.dart
@@ -14,7 +14,7 @@ import 'compiler_context.dart' show CompilerContext;
import 'dill/dill_target.dart' show DillTarget;
-import 'errors.dart' show InputError;
+import 'deprecated_problems.dart' show deprecated_InputError;
import 'kernel/kernel_target.dart' show KernelTarget;
@@ -33,9 +33,9 @@ Future mainEntryPoint(List<String> arguments) async {
}
try {
await compilePlatform(arguments);
- } on InputError catch (e) {
+ } on deprecated_InputError catch (e) {
exitCode = 1;
- print(e.format());
+ print(e.deprecated_format());
return null;
}
}

Powered by Google App Engine
This is Rietveld 408576698