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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/verifier.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/verifier.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/verifier.dart b/pkg/front_end/lib/src/fasta/kernel/verifier.dart
index 91b691a8925c7732cdb76844cdb216afcbfa0de5..c98e6bc03d7f476857f514e92e19fc0e82f17588 100644
--- a/pkg/front_end/lib/src/fasta/kernel/verifier.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/verifier.dart
@@ -22,7 +22,7 @@ import 'package:kernel/ast.dart'
import 'package:kernel/verifier.dart' show VerificationError, VerifyingVisitor;
-import '../errors.dart' show printUnexpected;
+import '../deprecated_problems.dart' show deprecated_printUnexpected;
import 'redirecting_factory_body.dart' show RedirectingFactoryBody;
@@ -47,7 +47,8 @@ class FastaVerifyingVisitor extends VerifyingVisitor
problem(TreeNode node, String details, {TreeNode context}) {
context ??= this.context;
VerificationError error = new VerificationError(context, node, details);
- printUnexpected(Uri.parse(fileUri), node?.fileOffset ?? -1, "$error");
+ deprecated_printUnexpected(
+ Uri.parse(fileUri), node?.fileOffset ?? -1, "$error");
errors.add(error);
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_type_variable_builder.dart ('k') | pkg/front_end/lib/src/fasta/loader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698