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

Unified Diff: pkg/front_end/lib/src/fasta/fasta.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/errors.dart ('k') | pkg/front_end/lib/src/fasta/io.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/fasta.dart
diff --git a/pkg/front_end/lib/src/fasta/fasta.dart b/pkg/front_end/lib/src/fasta/fasta.dart
index 0dfe70dcd31938925872ab4336a9cba52f8f8b56..c0f1bfd1c63397a791a250e13bf4891393797639 100644
--- a/pkg/front_end/lib/src/fasta/fasta.dart
+++ b/pkg/front_end/lib/src/fasta/fasta.dart
@@ -19,7 +19,8 @@ import 'compiler_command_line.dart' show CompilerCommandLine;
import 'compiler_context.dart' show CompilerContext;
-import 'errors.dart' show InputError, inputError;
+import 'deprecated_problems.dart'
+ show deprecated_InputError, deprecated_inputError;
import 'kernel/kernel_target.dart' show KernelTarget;
@@ -75,9 +76,9 @@ Future<KernelTarget> outline(List<String> arguments) async {
new CompileTask(c, new Ticker(isVerbose: c.options.verbose));
return await task.buildOutline(c.options.output);
});
- } on InputError catch (e) {
+ } on deprecated_InputError catch (e) {
exitCode = 1;
- print(e.format());
+ print(e.deprecated_format());
return null;
}
}
@@ -93,9 +94,9 @@ Future<Uri> compile(List<String> arguments) async {
new CompileTask(c, new Ticker(isVerbose: c.options.verbose));
return await task.compile();
});
- } on InputError catch (e) {
+ } on deprecated_InputError catch (e) {
exitCode = 1;
- print(e.format());
+ print(e.deprecated_format());
return null;
}
}
@@ -136,7 +137,7 @@ class CompileTask {
if (path.endsWith(".dart")) {
kernelTarget.read(uri);
} else {
- inputError(uri, -1, "Unexpected input: $uri");
+ deprecated_inputError(uri, -1, "Unexpected input: $uri");
}
await dillTarget.buildOutlines();
var outline = await kernelTarget.buildOutlines();
« no previous file with comments | « pkg/front_end/lib/src/fasta/errors.dart ('k') | pkg/front_end/lib/src/fasta/io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698