Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(626)

Unified Diff: test/codegen/expect/collection/iterable_zip.js

Issue 1642903004: Regen tests (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/codegen/expect/collection/equality.txt ('k') | test/codegen/expect/collection/iterable_zip.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/collection/iterable_zip.js
diff --git a/test/codegen/expect/collection/iterable_zip.js b/test/codegen/expect/collection/iterable_zip.js
deleted file mode 100644
index 1b35439ff8594997b0d38abc28969591a518bcbe..0000000000000000000000000000000000000000
--- a/test/codegen/expect/collection/iterable_zip.js
+++ /dev/null
@@ -1,56 +0,0 @@
-dart_library.library('collection/iterable_zip', null, /* Imports */[
- 'dart/_runtime',
- 'dart/collection',
- 'dart/core'
-], /* Lazy imports */[
-], function(exports, dart, collection, core) {
- 'use strict';
- let dartx = dart.dartx;
- const _iterables = Symbol('_iterables');
- class IterableZip extends collection.IterableBase$(core.List) {
- IterableZip(iterables) {
- this[_iterables] = iterables;
- super.IterableBase();
- }
- get iterator() {
- let iterators = this[_iterables][dartx.map](dart.fn(x => x[dartx.iterator], core.Iterator, [core.Iterable]))[dartx.toList]({growable: false});
- return new _IteratorZip(iterators);
- }
- }
- dart.setSignature(IterableZip, {
- constructors: () => ({IterableZip: [IterableZip, [core.Iterable$(core.Iterable)]]})
- });
- dart.defineExtensionMembers(IterableZip, ['iterator']);
- const _iterators = Symbol('_iterators');
- const _current = Symbol('_current');
- class _IteratorZip extends core.Object {
- _IteratorZip(iterators) {
- this[_iterators] = dart.as(iterators, core.List$(core.Iterator));
- this[_current] = null;
- }
- moveNext() {
- if (dart.notNull(this[_iterators][dartx.isEmpty])) return false;
- for (let i = 0; i < dart.notNull(this[_iterators][dartx.length]); i++) {
- if (!dart.notNull(this[_iterators][dartx.get](i).moveNext())) {
- this[_current] = null;
- return false;
- }
- }
- this[_current] = core.List.new(this[_iterators][dartx.length]);
- for (let i = 0; i < dart.notNull(this[_iterators][dartx.length]); i++) {
- this[_current][dartx.set](i, this[_iterators][dartx.get](i).current);
- }
- return true;
- }
- get current() {
- return this[_current];
- }
- }
- _IteratorZip[dart.implements] = () => [core.Iterator$(core.List)];
- dart.setSignature(_IteratorZip, {
- constructors: () => ({_IteratorZip: [_IteratorZip, [core.List]]}),
- methods: () => ({moveNext: [core.bool, []]})
- });
- // Exports:
- exports.IterableZip = IterableZip;
-});
« no previous file with comments | « test/codegen/expect/collection/equality.txt ('k') | test/codegen/expect/collection/iterable_zip.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698