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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/kernel_builder.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/kernel/kernel_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_builder.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_builder.dart
index e2111dcb1c6de2655b18068b4356ff8ddb4f0b37..0be62276c45846449cf1142e155b9e4ab3b5ff5f 100644
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_builder.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_builder.dart
@@ -56,7 +56,7 @@ import 'package:kernel/ast.dart'
RedirectingInitializer,
TypeParameter;
-import '../errors.dart' show inputError;
+import '../deprecated_problems.dart' show deprecated_inputError;
import '../builder/builder.dart' show LibraryBuilder;
@@ -79,7 +79,7 @@ List<DartType> computeDefaultTypeArguments(LibraryBuilder library,
return arguments;
}
-dynamic memberError(Member member, Object error, [int charOffset]) {
+dynamic deprecated_memberError(Member member, Object error, [int charOffset]) {
String name = member.name?.name;
if (name == "") {
name = Printer.emptyNameString;
@@ -104,7 +104,7 @@ dynamic memberError(Member member, Object error, [int charOffset]) {
charOffset = cls?.fileOffset ?? -1;
}
name = (cls == null ? "" : "${cls.name}::") + name;
- return inputError(uri, charOffset, "Error in $name: $error");
+ return deprecated_inputError(uri, charOffset, "Error in $name: $error");
}
int compareProcedures(Procedure a, Procedure b) {

Powered by Google App Engine
This is Rietveld 408576698