| Index: dart/lib/compiler/implementation/tree/nodes.dart
|
| diff --git a/dart/lib/compiler/implementation/tree/nodes.dart b/dart/lib/compiler/implementation/tree/nodes.dart
|
| index 3c261ec29d294c8a07ebc72dea3ff820db3425b4..0d593a1c87762571f040596127c33ee826d2f987 100644
|
| --- a/dart/lib/compiler/implementation/tree/nodes.dart
|
| +++ b/dart/lib/compiler/implementation/tree/nodes.dart
|
| @@ -93,12 +93,6 @@ Token firstBeginToken(Node first, Node second) {
|
| return token;
|
| }
|
|
|
| -class NodeAssertionFailure implements Exception {
|
| - final Node node;
|
| - final String message;
|
| - NodeAssertionFailure(this.node, this.message);
|
| -}
|
| -
|
| /**
|
| * A node in a syntax tree.
|
| *
|
| @@ -1304,8 +1298,8 @@ class StringJuxtaposition extends StringNode {
|
| */
|
| DartString get dartString {
|
| if (isInterpolation) {
|
| - throw new NodeAssertionFailure(this,
|
| - "Getting dartString on interpolation;");
|
| + throw new SpannableAssertionFailure(
|
| + this, "Getting dartString on interpolation;");
|
| }
|
| if (dartStringCache == null) {
|
| DartString firstString = first.accept(const GetDartStringVisitor());
|
|
|