Index: pkg/compiler/lib/src/constant_system_dart.dart |
diff --git a/pkg/compiler/lib/src/constant_system_dart.dart b/pkg/compiler/lib/src/constant_system_dart.dart |
index a827d59b1ae033fba71eeb22fac5fcb6958d978c..bcbfd307410bfe4e25b71fe7e1f5168c3146e5eb 100644 |
--- a/pkg/compiler/lib/src/constant_system_dart.dart |
+++ b/pkg/compiler/lib/src/constant_system_dart.dart |
@@ -394,13 +394,31 @@ class DartConstantSystem extends ConstantSystem { |
const DartConstantSystem(); |
+ |
+ @override |
IntConstantValue createInt(int i) => new IntConstantValue(i); |
+ |
+ @override |
DoubleConstantValue createDouble(double d) => new DoubleConstantValue(d); |
+ |
+ @override |
StringConstantValue createString(DartString string) { |
return new StringConstantValue(string); |
} |
+ |
+ @override |
BoolConstantValue createBool(bool value) => new BoolConstantValue(value); |
+ |
+ @override |
NullConstantValue createNull() => new NullConstantValue(); |
+ |
+ @override |
+ ListConstantValue createList(InterfaceType type, |
+ List<ConstantValue> values) { |
+ return new ListConstantValue(type, values); |
+ } |
+ |
+ @override |
MapConstantValue createMap(Compiler compiler, |
InterfaceType type, |
List<ConstantValue> keys, |
@@ -408,6 +426,11 @@ class DartConstantSystem extends ConstantSystem { |
return new MapConstantValue(type, keys, values); |
} |
+ @override |
+ ConstantValue createType(Compiler compiler, DartType type) { |
+ return new TypeConstantValue(type, compiler.coreTypes.typeType); |
+ } |
+ |
bool isInt(ConstantValue constant) => constant.isInt; |
bool isDouble(ConstantValue constant) => constant.isDouble; |
bool isString(ConstantValue constant) => constant.isString; |