| Index: lib/compiler/implementation/compile_time_constants.dart
|
| ===================================================================
|
| --- lib/compiler/implementation/compile_time_constants.dart (revision 11386)
|
| +++ lib/compiler/implementation/compile_time_constants.dart (working copy)
|
| @@ -57,7 +57,7 @@
|
|
|
| class NullConstant extends PrimitiveConstant {
|
| /** The value a Dart null is compiled to in JavaScript. */
|
| - static final String JsNull = "null";
|
| + static const String JsNull = "null";
|
|
|
| factory NullConstant() => const NullConstant._internal();
|
| const NullConstant._internal();
|
| @@ -322,16 +322,16 @@
|
| * The [PROTO_PROPERTY] must not be used as normal property in any JavaScript
|
| * object. It would change the prototype chain.
|
| */
|
| - static final String PROTO_PROPERTY = "__proto__";
|
| + static const String PROTO_PROPERTY = "__proto__";
|
|
|
| /** The dart class implementing constant map literals. */
|
| - static final SourceString DART_CLASS = const SourceString("ConstantMap");
|
| - static final SourceString DART_PROTO_CLASS =
|
| + static const SourceString DART_CLASS = const SourceString("ConstantMap");
|
| + static const SourceString DART_PROTO_CLASS =
|
| const SourceString("ConstantProtoMap");
|
| - static final SourceString LENGTH_NAME = const SourceString("length");
|
| - static final SourceString JS_OBJECT_NAME = const SourceString("_jsObject");
|
| - static final SourceString KEYS_NAME = const SourceString("_keys");
|
| - static final SourceString PROTO_VALUE = const SourceString("_protoValue");
|
| + static const SourceString LENGTH_NAME = const SourceString("length");
|
| + static const SourceString JS_OBJECT_NAME = const SourceString("_jsObject");
|
| + static const SourceString KEYS_NAME = const SourceString("_keys");
|
| + static const SourceString PROTO_VALUE = const SourceString("_protoValue");
|
|
|
| final ListConstant keys;
|
| final List<Constant> values;
|
| @@ -598,7 +598,7 @@
|
| }
|
|
|
| /**
|
| - * Returns a [List] of static final fields that need to be initialized. The
|
| + * Returns a [List] of static const fields that need to be initialized. The
|
| * list must be evaluated in order since the fields might depend on each
|
| * other.
|
| */
|
|
|