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

Unified Diff: pkg/front_end/lib/src/fasta/modifier.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/modifier.dart
diff --git a/pkg/front_end/lib/src/fasta/modifier.dart b/pkg/front_end/lib/src/fasta/modifier.dart
index 4b2f5c6e18898939581b59165c63dd4138b38931..7554576ab1a1d97bf10ffd569f009deaf1d5c07a 100644
--- a/pkg/front_end/lib/src/fasta/modifier.dart
+++ b/pkg/front_end/lib/src/fasta/modifier.dart
@@ -4,7 +4,7 @@
library fasta.modifier;
-import 'errors.dart' show internalError;
+import 'deprecated_problems.dart' show deprecated_internalProblem;
enum ModifierEnum {
Abstract,
@@ -67,7 +67,7 @@ class Modifier {
if (identical('final', string)) return Final;
if (identical('static', string)) return Static;
if (identical('var', string)) return Var;
- return internalError("Unhandled modifier: $string");
+ return deprecated_internalProblem("Unhandled modifier: $string");
}
toString() => "modifier(${'$kind'.substring('ModifierEnum.'.length)})";
« no previous file with comments | « pkg/front_end/lib/src/fasta/messages.dart ('k') | pkg/front_end/lib/src/fasta/parser/token_stream_rewriter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698