OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library dart._js_helper; | 5 library dart._js_helper; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 | 8 |
9 import 'dart:_foreign_helper' show | 9 import 'dart:_foreign_helper' show |
10 JS, | 10 JS, |
11 JS_STRING_CONCAT; | 11 JS_STRING_CONCAT; |
12 | 12 |
13 import 'dart:_interceptors'; | 13 import 'dart:_interceptors'; |
14 import 'dart:_internal' show | 14 import 'dart:_internal' show |
15 EfficientLength, | 15 EfficientLength, |
16 MappedIterable, | 16 MappedIterable, |
17 IterableElementError; | 17 IterableElementError; |
18 | 18 |
19 import 'dart:_native_typed_data'; | 19 import 'dart:_native_typed_data'; |
20 | 20 |
21 part 'annotations.dart'; | 21 part 'annotations.dart'; |
| 22 part 'constant_map.dart'; |
| 23 part 'linked_hash_map.dart'; |
22 part 'native_helper.dart'; | 24 part 'native_helper.dart'; |
23 part 'regexp_helper.dart'; | 25 part 'regexp_helper.dart'; |
24 part 'string_helper.dart'; | 26 part 'string_helper.dart'; |
25 part 'js_rti.dart'; | 27 part 'js_rti.dart'; |
26 | 28 |
27 class _Patch { | 29 class _Patch { |
28 const _Patch(); | 30 const _Patch(); |
29 } | 31 } |
30 | 32 |
31 const _Patch patch = const _Patch(); | 33 const _Patch patch = const _Patch(); |
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
861 | 863 |
862 SyncIterable(this._generator, this._args); | 864 SyncIterable(this._generator, this._args); |
863 | 865 |
864 // TODO(jmesserly): this should be [Symbol.iterator]() method. Unfortunately | 866 // TODO(jmesserly): this should be [Symbol.iterator]() method. Unfortunately |
865 // we have no way of telling the compiler yet, so it will generate an extra | 867 // we have no way of telling the compiler yet, so it will generate an extra |
866 // layer of indirection that wraps the SyncIterator. | 868 // layer of indirection that wraps the SyncIterator. |
867 _jsIterator() => JS('', '#(...#)', _generator, _args); | 869 _jsIterator() => JS('', '#(...#)', _generator, _args); |
868 | 870 |
869 Iterator<E> get iterator => new SyncIterator<E>(_jsIterator()); | 871 Iterator<E> get iterator => new SyncIterator<E>(_jsIterator()); |
870 } | 872 } |
OLD | NEW |