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

Unified Diff: pkg/compiler/lib/src/enqueue.dart

Issue 2982783003: Use failedAt in more places (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
« no previous file with comments | « pkg/compiler/lib/src/elements/modelx.dart ('k') | pkg/compiler/lib/src/inferrer/inferrer_engine.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/enqueue.dart
diff --git a/pkg/compiler/lib/src/enqueue.dart b/pkg/compiler/lib/src/enqueue.dart
index 8347f352f79255fcf33e512e9c9309d858f871a4..ce019515969cbbe8dc33c7498148fd94831f19c1 100644
--- a/pkg/compiler/lib/src/enqueue.dart
+++ b/pkg/compiler/lib/src/enqueue.dart
@@ -230,8 +230,7 @@ class ResolutionEnqueuer extends EnqueuerImpl {
@override
void checkQueueIsEmpty() {
if (_queue.isNotEmpty) {
- throw new SpannableAssertionFailure(
- _queue.first.element, "$name queue is not empty.");
+ failedAt(_queue.first.element, "$name queue is not empty.");
}
}
@@ -435,7 +434,7 @@ class ResolutionEnqueuer extends EnqueuerImpl {
if (workItem == null) return;
if (queueIsClosed) {
- throw new SpannableAssertionFailure(
+ failedAt(
entity, "Resolution work list is closed. Trying to add $entity.");
}
@@ -452,7 +451,7 @@ class ResolutionEnqueuer extends EnqueuerImpl {
/// The queue is processed in FIFO order.
void addDeferredAction(DeferredAction deferredAction) {
if (queueIsClosed) {
- throw new SpannableAssertionFailure(
+ failedAt(
deferredAction.element,
"Resolution work list is closed. "
"Trying to add deferred action for ${deferredAction.element}");
« no previous file with comments | « pkg/compiler/lib/src/elements/modelx.dart ('k') | pkg/compiler/lib/src/inferrer/inferrer_engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698