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

Unified Diff: pkg/front_end/lib/src/fasta/modifier.dart

Issue 2974933002: Remove deprecated_internalProblem. (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/modifier.dart
diff --git a/pkg/front_end/lib/src/fasta/modifier.dart b/pkg/front_end/lib/src/fasta/modifier.dart
index 7554576ab1a1d97bf10ffd569f009deaf1d5c07a..15ff7056904a80287703fe4422ba402fd8480ffc 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 'deprecated_problems.dart' show deprecated_internalProblem;
+import 'problems.dart' show unhandled;
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 deprecated_internalProblem("Unhandled modifier: $string");
+ return unhandled(string, "Modifier.fromString", -1, null);
}
toString() => "modifier(${'$kind'.substring('ModifierEnum.'.length)})";

Powered by Google App Engine
This is Rietveld 408576698