| 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();
|
|
|