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

Unified Diff: pkg/front_end/lib/src/fasta/deprecated_problems.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/deprecated_problems.dart
diff --git a/pkg/front_end/lib/src/fasta/deprecated_problems.dart b/pkg/front_end/lib/src/fasta/deprecated_problems.dart
index 084b837e921a95693d295b31a1479e3e389794e3..b7a6453705bb1fdf29537a5e4318d61cc2aa26c6 100644
--- a/pkg/front_end/lib/src/fasta/deprecated_problems.dart
+++ b/pkg/front_end/lib/src/fasta/deprecated_problems.dart
@@ -26,23 +26,6 @@ bool hasCrashed = false;
/// [resetCrashReporting].
Uri firstSourceUri;
-/// Used to report an internal error.
-///
-/// Internal errors should be avoided as best as possible, but are preferred
-/// over assertion failures. Favor error messages that starts with "Internal
-/// error: " and a short description that may help a developer debug the issue.
-/// This method should be called instead of using `throw`, as this allows us to
-/// ensure that there are no throws anywhere in the codebase.
-dynamic deprecated_internalProblem(Object error,
- [Uri uri, int charOffset = -1]) {
- if (uri == null && charOffset == -1) {
- throw error;
- } else {
- throw deprecated_format(
- uri, charOffset, "Internal error: ${safeToString(error)}");
- }
-}
-
/// Used to report an error in input.
///
/// Avoid using this for reporting compile-time errors, instead use

Powered by Google App Engine
This is Rietveld 408576698