Index: pkg/compiler/lib/src/resolution/send_structure.dart |
diff --git a/pkg/compiler/lib/src/resolution/send_structure.dart b/pkg/compiler/lib/src/resolution/send_structure.dart |
index 53c0356fe00de98b12ca8ca6b80500d093651550..4b6d1870317655c03d2ded9f17db552c18f4d290 100644 |
--- a/pkg/compiler/lib/src/resolution/send_structure.dart |
+++ b/pkg/compiler/lib/src/resolution/send_structure.dart |
@@ -2263,7 +2263,7 @@ class LateConstInvokeStructure<R, A> extends NewStructure<R, A> { |
break; |
default: |
throw new SpannableAssertionFailure( |
- node, "Unexpected constant kind $kind: ${constant.getText()}"); |
+ node, "Unexpected constant kind $kind: ${constant.toDartText()}"); |
} |
return new ConstInvokeStructure(kind, constant); |
} |
@@ -2297,7 +2297,7 @@ class LateConstInvokeStructure<R, A> extends NewStructure<R, A> { |
node, constant, arg); |
default: |
throw new SpannableAssertionFailure( |
- node, "Unexpected constant kind $kind: ${constant.getText()}"); |
+ node, "Unexpected constant kind $kind: ${constant.toDartText()}"); |
} |
} |
} |