| Index: pkg/compiler/lib/src/common/names.dart
|
| diff --git a/pkg/compiler/lib/src/common/names.dart b/pkg/compiler/lib/src/common/names.dart
|
| index 45c7b1f45e8a090f16e01a2ed8fb01d2ade8ed13..fa1812ced1dfde40040c03606acad5628de0be05 100644
|
| --- a/pkg/compiler/lib/src/common/names.dart
|
| +++ b/pkg/compiler/lib/src/common/names.dart
|
| @@ -38,6 +38,9 @@ class Identifiers {
|
|
|
| /// The name of the runtime type property on 'Object'.
|
| static const String runtimeType_ = 'runtimeType';
|
| +
|
| + /// The name of the getter returning the size of containers and strings.
|
| + static const String length = 'length';
|
| }
|
|
|
| /// [Name]s commonly used.
|
| @@ -67,6 +70,8 @@ class Names {
|
| static const Name INDEX_NAME = const PublicName("[]");
|
| static const Name INDEX_SET_NAME = const PublicName("[]=");
|
| static const Name CALL_NAME = Names.call;
|
| +
|
| + static const Name length = const PublicName(Identifiers.length);
|
| }
|
|
|
| /// [Selector]s commonly used.
|
| @@ -101,6 +106,8 @@ class Selectors {
|
| new Selector.call(const PublicName("compareTo"), CallStructure.ONE_ARG);
|
|
|
| static final Selector equals = new Selector.binaryOperator('==');
|
| +
|
| + static final Selector length = new Selector.getter(Names.length);
|
| }
|
|
|
| /// [Uri]s commonly used.
|
| @@ -123,4 +130,4 @@ class Uris {
|
| /// The URI for 'dart:_native_typed_data'.
|
| static final Uri dart__native_typed_data =
|
| new Uri(scheme: 'dart', path: '_native_typed_data');
|
| -}
|
| +}
|
|
|