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

Unified Diff: pkg/compiler/lib/src/js_backend/impact_transformer.dart

Issue 2898403002: Use failedAt in more places (Closed)
Patch Set: merge; address comments Created 3 years, 7 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/compiler/lib/src/js_backend/impact_transformer.dart
diff --git a/pkg/compiler/lib/src/js_backend/impact_transformer.dart b/pkg/compiler/lib/src/js_backend/impact_transformer.dart
index 6703c9fe3c8ac55797ae3664d32edb0ec96abfcd..94d4190b5a026b9344cc2fb1de174698fc76e7b6 100644
--- a/pkg/compiler/lib/src/js_backend/impact_transformer.dart
+++ b/pkg/compiler/lib/src/js_backend/impact_transformer.dart
@@ -263,8 +263,10 @@ class JavaScriptImpactTransformer extends ImpactTransformer {
registerImpact(_impacts.stringLiteral);
break;
default:
- assert(invariant(NO_LOCATION_SPANNABLE, false,
- message: "Unexpected constant literal: ${constant.kind}."));
+ assert(
+ false,
+ failedAt(NO_LOCATION_SPANNABLE,
+ "Unexpected constant literal: ${constant.kind}."));
}
}
« no previous file with comments | « pkg/compiler/lib/src/js_backend/field_naming_mixin.dart ('k') | pkg/compiler/lib/src/js_backend/minify_namer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698