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

Unified Diff: pkg/compiler/lib/src/common/resolution.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
« no previous file with comments | « pkg/compiler/lib/src/closure.dart ('k') | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/common/resolution.dart
diff --git a/pkg/compiler/lib/src/common/resolution.dart b/pkg/compiler/lib/src/common/resolution.dart
index 936b7df28a347cc0248209030e794ff874cdd746..586cddc6847520aa3d572874dc207dce4f310025 100644
--- a/pkg/compiler/lib/src/common/resolution.dart
+++ b/pkg/compiler/lib/src/common/resolution.dart
@@ -55,8 +55,8 @@ class _ResolutionWorkItem extends WorkItem implements ResolutionWorkItem {
_ResolutionWorkItem(this.resolution, this.element);
WorldImpact run() {
- assert(invariant(element, !_isAnalyzed,
- message: 'Element ${element} has already been analyzed'));
+ assert(!_isAnalyzed,
+ failedAt(element, 'Element ${element} has already been analyzed'));
WorldImpact impact = resolution.computeWorldImpact(element);
_isAnalyzed = true;
return impact;
« no previous file with comments | « pkg/compiler/lib/src/closure.dart ('k') | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698