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

Unified Diff: pkg/compiler/lib/src/js_emitter/type_test_registry.dart

Issue 2903753002: Use failedAt in more places (js_emitter) (Closed)
Patch Set: 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
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_emitter/type_test_registry.dart
diff --git a/pkg/compiler/lib/src/js_emitter/type_test_registry.dart b/pkg/compiler/lib/src/js_emitter/type_test_registry.dart
index b6dc0d0ed70a5c3239274c20041ede5ce26c8ade..2377a5541b8abbe51c2111e174b6355fcf42ce3c 100644
--- a/pkg/compiler/lib/src/js_emitter/type_test_registry.dart
+++ b/pkg/compiler/lib/src/js_emitter/type_test_registry.dart
@@ -69,14 +69,18 @@ class TypeTestRegistry {
this._codegenWorldBuilder, this._closedWorld, this._elementEnvironment);
RuntimeTypesChecks get rtiChecks {
- assert(invariant(NO_LOCATION_SPANNABLE, _rtiChecks != null,
- message: "RuntimeTypesChecks has not been computed yet."));
+ assert(
+ _rtiChecks != null,
+ failedAt(NO_LOCATION_SPANNABLE,
+ "RuntimeTypesChecks has not been computed yet."));
return _rtiChecks;
}
Iterable<ClassEntity> get rtiNeededClasses {
- assert(invariant(NO_LOCATION_SPANNABLE, _rtiNeededClasses != null,
- message: "rtiNeededClasses has not been computed yet."));
+ assert(
+ _rtiNeededClasses != null,
+ failedAt(NO_LOCATION_SPANNABLE,
+ "rtiNeededClasses has not been computed yet."));
return _rtiNeededClasses;
}
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698