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

Unified Diff: pkg/compiler/lib/src/closure.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 | « no previous file | 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/closure.dart
diff --git a/pkg/compiler/lib/src/closure.dart b/pkg/compiler/lib/src/closure.dart
index 5a94e8555e84cbaea0837a59250cff47b674f400..f9e5b33adf91eb26c4c84bafab4cfbb9fb0f9171 100644
--- a/pkg/compiler/lib/src/closure.dart
+++ b/pkg/compiler/lib/src/closure.dart
@@ -405,8 +405,7 @@ class ClosureFieldElement extends ElementX
bool get hasNode => false;
VariableDefinitions get node {
- throw new SpannableAssertionFailure(
- local, 'Should not access node of ClosureFieldElement.');
+ throw failedAt(local, 'Should not access node of ClosureFieldElement.');
}
bool get hasResolvedAst => hasTreeElements;
@@ -417,7 +416,7 @@ class ClosureFieldElement extends ElementX
}
Expression get initializer {
- throw new SpannableAssertionFailure(
+ throw failedAt(
local, 'Should not access initializer of ClosureFieldElement.');
}
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698