| 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 _js_helper; | 5 library _js_helper; |
| 6 | 6 |
| 7 import 'dart:_async_await_error_codes' as async_error_codes; | 7 import 'dart:_async_await_error_codes' as async_error_codes; |
| 8 | 8 |
| 9 import 'dart:_js_embedded_names' show | 9 import 'dart:_js_embedded_names' show |
| 10 DEFERRED_LIBRARY_URIS, | 10 DEFERRED_LIBRARY_URIS, |
| (...skipping 4067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4078 return moveNext(); | 4078 return moveNext(); |
| 4079 } | 4079 } |
| 4080 } | 4080 } |
| 4081 return true; | 4081 return true; |
| 4082 } | 4082 } |
| 4083 } | 4083 } |
| 4084 | 4084 |
| 4085 /// An Iterable corresponding to a sync* method. | 4085 /// An Iterable corresponding to a sync* method. |
| 4086 /// | 4086 /// |
| 4087 /// Each invocation of a sync* method will return a new instance of this class. | 4087 /// Each invocation of a sync* method will return a new instance of this class. |
| 4088 class SyncStarIterable extends Iterable { | 4088 class SyncStarIterable extends IterableBase { |
| 4089 // This is a function that will return a helper function that does the | 4089 // This is a function that will return a helper function that does the |
| 4090 // iteration of the sync*. | 4090 // iteration of the sync*. |
| 4091 // | 4091 // |
| 4092 // Each invocation should give a body with fresh state. | 4092 // Each invocation should give a body with fresh state. |
| 4093 final dynamic /* js function */ _outerHelper; | 4093 final dynamic /* js function */ _outerHelper; |
| 4094 | 4094 |
| 4095 SyncStarIterable(this._outerHelper); | 4095 SyncStarIterable(this._outerHelper); |
| 4096 | 4096 |
| 4097 Iterator get iterator => new SyncStarIterator(JS('', '#()', _outerHelper)); | 4097 Iterator get iterator => new SyncStarIterator(JS('', '#()', _outerHelper)); |
| 4098 } | 4098 } |
| OLD | NEW |