| OLD | NEW |
| 1 dart_library.library('collection/iterable_zip', null, /* Imports */[ | 1 dart_library.library('collection/iterable_zip', null, /* Imports */[ |
| 2 "dart/_runtime", | 2 "dart/_runtime", |
| 3 'dart/collection', | 3 'dart/collection', |
| 4 'dart/core' | 4 'dart/core' |
| 5 ], /* Lazy imports */[ | 5 ], /* Lazy imports */[ |
| 6 ], function(exports, dart, collection, core) { | 6 ], function(exports, dart, collection, core) { |
| 7 'use strict'; | 7 'use strict'; |
| 8 let dartx = dart.dartx; | 8 let dartx = dart.dartx; |
| 9 const _iterables = Symbol('_iterables'); | 9 const _iterables = Symbol('_iterables'); |
| 10 class IterableZip extends collection.IterableBase$(core.List) { | 10 class IterableZip extends collection.IterableBase$(core.List) { |
| 11 IterableZip(iterables) { | 11 IterableZip(iterables) { |
| 12 this[_iterables] = iterables; | 12 this[_iterables] = iterables; |
| 13 super.IterableBase(); | 13 super.IterableBase(); |
| 14 } | 14 } |
| 15 get iterator() { | 15 get iterator() { |
| 16 let iterators = this[_iterables][dartx.map](dart.fn(x => dart.dload(x, 'it
erator')))[dartx.toList]({growable: false}); | 16 let iterators = this[_iterables][dartx.map](dart.fn(x => x[dartx.iterator]
, core.Iterator, [core.Iterable]))[dartx.toList]({growable: false}); |
| 17 return new _IteratorZip(iterators); | 17 return new _IteratorZip(iterators); |
| 18 } | 18 } |
| 19 } | 19 } |
| 20 dart.setSignature(IterableZip, { | 20 dart.setSignature(IterableZip, { |
| 21 constructors: () => ({IterableZip: [IterableZip, [core.Iterable$(core.Iterab
le)]]}) | 21 constructors: () => ({IterableZip: [IterableZip, [core.Iterable$(core.Iterab
le)]]}) |
| 22 }); | 22 }); |
| 23 dart.defineExtensionMembers(IterableZip, ['iterator']); | 23 dart.defineExtensionMembers(IterableZip, ['iterator']); |
| 24 const _iterators = Symbol('_iterators'); | 24 const _iterators = Symbol('_iterators'); |
| 25 const _current = Symbol('_current'); | 25 const _current = Symbol('_current'); |
| 26 class _IteratorZip extends core.Object { | 26 class _IteratorZip extends core.Object { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 47 } | 47 } |
| 48 } | 48 } |
| 49 _IteratorZip[dart.implements] = () => [core.Iterator$(core.List)]; | 49 _IteratorZip[dart.implements] = () => [core.Iterator$(core.List)]; |
| 50 dart.setSignature(_IteratorZip, { | 50 dart.setSignature(_IteratorZip, { |
| 51 constructors: () => ({_IteratorZip: [_IteratorZip, [core.List]]}), | 51 constructors: () => ({_IteratorZip: [_IteratorZip, [core.List]]}), |
| 52 methods: () => ({moveNext: [core.bool, []]}) | 52 methods: () => ({moveNext: [core.bool, []]}) |
| 53 }); | 53 }); |
| 54 // Exports: | 54 // Exports: |
| 55 exports.IterableZip = IterableZip; | 55 exports.IterableZip = IterableZip; |
| 56 }); | 56 }); |
| OLD | NEW |