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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/kernel_outline_shaker.dart

Issue 2970273004: Deprecate all diagnostics methods that use strings. (Closed)
Patch Set: 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_outline_shaker.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_outline_shaker.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_outline_shaker.dart
index bb18d8420e5d643b0a8b85cf85c630f170f5adf2..e6343a65c061718e534771f92c93f88938f7b5d6 100644
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_outline_shaker.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_outline_shaker.dart
@@ -9,7 +9,7 @@ library fasta.kernel.kernel_outline_shaker;
import 'package:kernel/ast.dart';
import 'package:kernel/core_types.dart';
-import '../errors.dart' show internalError;
+import '../deprecated_problems.dart' show deprecated_internalProblem;
/// Removes unnecessary libraries, classes, and members from [program].
///
@@ -262,7 +262,8 @@ class RootsMarker extends RecursiveVisitor {
@override
visitDirectMethodInvocation(DirectMethodInvocation node) {
if (node.receiver is! ThisExpression) {
- return internalError('Direct calls are only supported on "this"');
+ return deprecated_internalProblem(
+ 'Direct calls are only supported on "this"');
}
data.markMember(node.target);
node.visitChildren(this);
@@ -336,7 +337,7 @@ class RootsMarker extends RecursiveVisitor {
@override
visitTypedefReference(Typedef node) {
- return internalError('not implemented');
+ return deprecated_internalProblem('not implemented');
}
}

Powered by Google App Engine
This is Rietveld 408576698