Index: pkg/compiler/lib/src/constants/expressions.dart |
diff --git a/pkg/compiler/lib/src/constants/expressions.dart b/pkg/compiler/lib/src/constants/expressions.dart |
index 3b4317f11c62ce31fe9813c428d7ae8bcbdfcc9b..2deb866175d19f5a9d5adf3fd87a243db8db4a12 100644 |
--- a/pkg/compiler/lib/src/constants/expressions.dart |
+++ b/pkg/compiler/lib/src/constants/expressions.dart |
@@ -549,7 +549,7 @@ class ConstructedConstantExpression extends ConstantExpression { |
@override |
void _createStructuredText(StringBuffer sb) { |
- sb.write('Constructored(type=$type,constructor=$target,' |
+ sb.write('Constructed(type=$type,constructor=$target,' |
'callStructure=$callStructure,arguments=['); |
String delimiter = ''; |
for (ConstantExpression value in arguments) { |
@@ -561,6 +561,8 @@ class ConstructedConstantExpression extends ConstantExpression { |
} |
Map<FieldElement, ConstantExpression> computeInstanceFields() { |
+ assert(invariant(target, target.constantConstructor != null, |
+ message: "No constant constructor computed for $target.")); |
return target.constantConstructor |
.computeInstanceFields(arguments, callStructure); |
} |