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

Unified Diff: pkg/front_end/lib/src/fasta/translate_uri.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
Index: pkg/front_end/lib/src/fasta/translate_uri.dart
diff --git a/pkg/front_end/lib/src/fasta/translate_uri.dart b/pkg/front_end/lib/src/fasta/translate_uri.dart
index 095dd2a10c4b3dc7c312a7867f29e385a9692796..2f0e3b0c1fcb6ec133d079824f11626fe3fbb0da 100644
--- a/pkg/front_end/lib/src/fasta/translate_uri.dart
+++ b/pkg/front_end/lib/src/fasta/translate_uri.dart
@@ -13,7 +13,7 @@ import 'package:front_end/file_system.dart'
import 'package:package_config/packages_file.dart' as packages_file show parse;
-import 'errors.dart' show inputError;
+import 'deprecated_problems.dart' show deprecated_inputError;
class TranslateUri {
final Map<String, Uri> packages;
@@ -75,14 +75,14 @@ class TranslateUri {
try {
bytes = await fileSystem.entityForUri(packages).readAsBytes();
} on FileSystemException catch (e) {
- inputError(packages, -1, e.message);
+ deprecated_inputError(packages, -1, e.message);
}
Map<String, Uri> parsedPackages;
try {
parsedPackages = packages_file.parse(bytes, packages);
} on FormatException catch (e) {
- return inputError(packages, e.offset, e.message);
+ return deprecated_inputError(packages, e.offset, e.message);
}
return new TranslateUri(
parsedPackages,

Powered by Google App Engine
This is Rietveld 408576698