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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/frontend_accessors.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/frontend_accessors.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/frontend_accessors.dart b/pkg/front_end/lib/src/fasta/kernel/frontend_accessors.dart
index 002e0970df0f6e0c7b4b2a628270a42b2c59ca9d..5f952a790f0530559d7c87980c05074c90632444 100644
--- a/pkg/front_end/lib/src/fasta/kernel/frontend_accessors.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/frontend_accessors.dart
@@ -32,7 +32,7 @@ import 'package:kernel/ast.dart' hide MethodInvocation, InvalidExpression;
import '../names.dart' show equalsName, indexGetName, indexSetName;
-import '../errors.dart' show internalError;
+import '../deprecated_problems.dart' show deprecated_internalProblem;
/// An [Accessor] represents a subexpression for which we can't yet build a
/// kernel [Expression] because we don't yet know the context in which it is
@@ -178,7 +178,7 @@ abstract class Accessor {
///
/// At runtime, an exception will be thrown.
makeInvalidRead() {
- return internalError(
+ return deprecated_internalProblem(
"Unhandled compile-time error.", null, offsetForToken(token));
}
@@ -187,7 +187,7 @@ abstract class Accessor {
///
/// At runtime, [value] will be evaluated before throwing an exception.
makeInvalidWrite(Expression value) {
- return internalError(
+ return deprecated_internalProblem(
"Unhandled compile-time error.", null, offsetForToken(token));
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart ('k') | pkg/front_end/lib/src/fasta/kernel/kernel_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698