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:_utils'; |
14 | 15 |
15 part 'annotations.dart'; | 16 part 'annotations.dart'; |
16 part 'native_helper.dart'; | 17 part 'native_helper.dart'; |
17 part 'regexp_helper.dart'; | 18 part 'regexp_helper.dart'; |
18 part 'string_helper.dart'; | 19 part 'string_helper.dart'; |
19 part 'js_rti.dart'; | 20 part 'js_rti.dart'; |
20 | 21 |
21 class _Patch { | 22 class _Patch { |
22 const _Patch(); | 23 const _Patch(); |
23 } | 24 } |
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
787 | 788 |
788 SyncIterable(this._generator, this._args); | 789 SyncIterable(this._generator, this._args); |
789 | 790 |
790 // TODO(jmesserly): this should be [Symbol.iterator]() method. Unfortunately | 791 // TODO(jmesserly): this should be [Symbol.iterator]() method. Unfortunately |
791 // we have no way of telling the compiler yet, so it will generate an extra | 792 // we have no way of telling the compiler yet, so it will generate an extra |
792 // layer of indirection that wraps the SyncIterator. | 793 // layer of indirection that wraps the SyncIterator. |
793 _jsIterator() => JS('', '#(...#)', _generator, _args); | 794 _jsIterator() => JS('', '#(...#)', _generator, _args); |
794 | 795 |
795 Iterator<E> get iterator => new SyncIterator<E>(_jsIterator()); | 796 Iterator<E> get iterator => new SyncIterator<E>(_jsIterator()); |
796 } | 797 } |
OLD | NEW |