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

Side by Side Diff: test/dart_codegen/expect/core/iterable.dart

Issue 961493003: don't run dart gen on JS patch code (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « test/dart_codegen/expect/core/int.dart ('k') | test/dart_codegen/expect/core/list.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 part of dart.core; 1 part of dart.core;
2 2
3 abstract class Iterable<E> { 3 abstract class Iterable<E> {
4 const Iterable(); 4 const Iterable();
5 factory Iterable.generate(int count, [E generator(int index)]) { 5 factory Iterable.generate(int count, [E generator(int index)]) {
6 if (count <= 0) return new EmptyIterable<E>(); 6 if (count <= 0) return new EmptyIterable<E>();
7 return new _GeneratorIterable<E>(count, generator); 7 return new _GeneratorIterable<E>(count, generator);
8 } 8 }
9 Iterator<E> get iterator; 9 Iterator<E> get iterator;
10 Iterable map(f(E element)); 10 Iterable map(f(E element));
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 final _Generator<E> _generator; 71 final _Generator<E> _generator;
72 int _index; 72 int _index;
73 E _current; 73 E _current;
74 _GeneratorIterator(this._index, this._end, this._generator); 74 _GeneratorIterator(this._index, this._end, this._generator);
75 bool moveNext() { 75 bool moveNext() {
76 if (_index < _end) { 76 if (_index < _end) {
77 _current = _generator(_index); 77 _current = _generator(_index);
78 _index++; 78 _index++;
79 return true; 79 return true;
80 } else { 80 } else {
81 _current = ((__x25) => DDC$RT.cast(__x25, Null, E, "CastLiteral", 81 _current = ((__x7) => DDC$RT.cast(__x7, Null, E, "CastLiteral",
82 """line 360, column 18 of dart:core/iterable.dart: """, __x25 is E, 82 """line 360, column 18 of dart:core/iterable.dart: """, __x7 is E,
83 false))(null); 83 false))(null);
84 return false; 84 return false;
85 } 85 }
86 } 86 }
87 E get current => _current; 87 E get current => _current;
88 } 88 }
89 abstract class BidirectionalIterator<E> implements Iterator<E> { 89 abstract class BidirectionalIterator<E> implements Iterator<E> {
90 bool movePrevious(); 90 bool movePrevious();
91 } 91 }
OLDNEW
« no previous file with comments | « test/dart_codegen/expect/core/int.dart ('k') | test/dart_codegen/expect/core/list.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698