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

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

Issue 2970273004: Deprecate all diagnostics methods that use strings. (Closed)
Patch Set: Merged with 4df146dd9a465d63344330bf3e45524b927c92ec 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
« no previous file with comments | « pkg/front_end/lib/src/fasta/quote.dart ('k') | pkg/front_end/lib/src/fasta/scope.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/run.dart
diff --git a/pkg/front_end/lib/src/fasta/run.dart b/pkg/front_end/lib/src/fasta/run.dart
index be06884c544a23b2cdf10a3d977677f07833f1e9..d143e5241e0749cde4e25191676345a4f0fa917f 100644
--- a/pkg/front_end/lib/src/fasta/run.dart
+++ b/pkg/front_end/lib/src/fasta/run.dart
@@ -19,7 +19,7 @@ import 'compiler_command_line.dart' show CompilerCommandLine;
import 'fasta.dart' show CompileTask;
-import 'errors.dart' show InputError;
+import 'deprecated_problems.dart' show deprecated_InputError;
import 'ticker.dart' show Ticker;
@@ -37,8 +37,8 @@ mainEntryPoint(List<String> arguments) async {
CompileTask task =
new CompileTask(c, new Ticker(isVerbose: c.options.verbose));
uri = await task.compile();
- } on InputError catch (e) {
- print(e.format());
+ } on deprecated_InputError catch (e) {
+ print(e.deprecated_format());
exit(1);
}
if (exitCode != 0) exit(exitCode);
« no previous file with comments | « pkg/front_end/lib/src/fasta/quote.dart ('k') | pkg/front_end/lib/src/fasta/scope.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698