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

Unified Diff: pkg/compiler/lib/src/kernel/element_map_mixins.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/kernel/element_map_impl.dart ('k') | pkg/compiler/lib/src/kernel/env.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/kernel/element_map_mixins.dart
diff --git a/pkg/compiler/lib/src/kernel/element_map_mixins.dart b/pkg/compiler/lib/src/kernel/element_map_mixins.dart
index 14b3b827f3c8220f456c0ef44b88886bab9e6089..8b30d0b68711fabe254fd7cb694aadfa10427d87 100644
--- a/pkg/compiler/lib/src/kernel/element_map_mixins.dart
+++ b/pkg/compiler/lib/src/kernel/element_map_mixins.dart
@@ -65,7 +65,7 @@ abstract class KernelToElementMapBaseMixin implements KernelToElementMap {
if (node is ir.InvocationExpression) {
return getInvocationSelector(node);
}
- throw new SpannableAssertionFailure(
+ throw failedAt(
CURRENT_ELEMENT_SPANNABLE,
"Can only get the selector for a property get or an invocation: "
"${node}");
@@ -280,7 +280,7 @@ abstract class KernelToElementMapBaseMixin implements KernelToElementMap {
ConstantExpression constant;
if (node == null) {
if (!implicitNull) {
- throw new SpannableAssertionFailure(
+ throw failedAt(
CURRENT_ELEMENT_SPANNABLE, 'No expression for constant.');
}
constant = new NullConstantExpression();
« no previous file with comments | « pkg/compiler/lib/src/kernel/element_map_impl.dart ('k') | pkg/compiler/lib/src/kernel/env.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698