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

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

Issue 1038583004: Rationalize coercions (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Rebase Created 5 years, 9 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
OLDNEW
1 part of dart._internal; 1 part of dart._internal;
2 abstract class EfficientLength {int get length; 2 abstract class EfficientLength {int get length;
3 } 3 }
4 abstract class ListIterable<E> extends IterableBase<E> implements EfficientLeng th {int get length; 4 abstract class ListIterable<E> extends IterableBase<E> implements EfficientLeng th {int get length;
5 E elementAt(int i); 5 E elementAt(int i);
6 const ListIterable(); 6 const ListIterable();
7 Iterator<E> get iterator => new ListIterator<E>(this); 7 Iterator<E> get iterator => new ListIterator<E>(this);
8 void forEach(void action(E element)) { 8 void forEach(void action(E element)) {
9 int length = this.length; 9 int length = this.length;
10 for (int i = 0; i < length; i++) { 10 for (int i = 0; i < length; i++) {
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 if (length < 0) length = 0; 253 if (length < 0) length = 0;
254 List result = growable ? (new List<E>()..length = length) : new List<E>(length) ; 254 List result = growable ? (new List<E>()..length = length) : new List<E>(length) ;
255 for (int i = 0; i < length; i++) { 255 for (int i = 0; i < length; i++) {
256 result[i] = _iterable.elementAt(start + i); 256 result[i] = _iterable.elementAt(start + i);
257 if (_iterable.length < end) throw new ConcurrentModificationError(this); 257 if (_iterable.length < end) throw new ConcurrentModificationError(this);
258 } 258 }
259 return DEVC$RT.cast(result, DEVC$RT.type((List<dynamic> _) { 259 return DEVC$RT.cast(result, DEVC$RT.type((List<dynamic> _) {
260 } 260 }
261 ), DEVC$RT.type((List<E> _) { 261 ), DEVC$RT.type((List<E> _) {
262 } 262 }
263 ), "CastDynamic", """line 310, column 12 of dart:_internal/iterable.dart: """, r esult is List<E>, false); 263 ), "CompositeCast", """line 310, column 12 of dart:_internal/iterable.dart: """, result is List<E>, false);
264 } 264 }
265 } 265 }
266 class ListIterator<E> implements Iterator<E> {final Iterable<E> _iterable; 266 class ListIterator<E> implements Iterator<E> {final Iterable<E> _iterable;
267 final int _length; 267 final int _length;
268 int _index; 268 int _index;
269 E _current; 269 E _current;
270 ListIterator(Iterable<E> iterable) : _iterable = iterable, _length = iterable.l ength, _index = 0; 270 ListIterator(Iterable<E> iterable) : _iterable = iterable, _length = iterable.l ength, _index = 0;
271 E get current => _current; 271 E get current => _current;
272 bool moveNext() { 272 bool moveNext() {
273 int length = _iterable.length; 273 int length = _iterable.length;
(...skipping 13 matching lines...) Expand all
287 class MappedIterable<S, T> extends IterableBase<T> {final Iterable<S> _iterable ; 287 class MappedIterable<S, T> extends IterableBase<T> {final Iterable<S> _iterable ;
288 final _Transformation<S, T> _f; 288 final _Transformation<S, T> _f;
289 factory MappedIterable(Iterable iterable, T function(S value)) { 289 factory MappedIterable(Iterable iterable, T function(S value)) {
290 if (iterable is EfficientLength) { 290 if (iterable is EfficientLength) {
291 return new EfficientLengthMappedIterable<S, T>(iterable, function); 291 return new EfficientLengthMappedIterable<S, T>(iterable, function);
292 } 292 }
293 return new MappedIterable<S, T>._(DEVC$RT.cast(iterable, DEVC$RT.type((Iterable <dynamic> _) { 293 return new MappedIterable<S, T>._(DEVC$RT.cast(iterable, DEVC$RT.type((Iterable <dynamic> _) {
294 } 294 }
295 ), DEVC$RT.type((Iterable<S> _) { 295 ), DEVC$RT.type((Iterable<S> _) {
296 } 296 }
297 ), "CastDynamic", """line 357, column 39 of dart:_internal/iterable.dart: """, i terable is Iterable<S>, false), function); 297 ), "CompositeCast", """line 357, column 39 of dart:_internal/iterable.dart: """, iterable is Iterable<S>, false), function);
298 } 298 }
299 MappedIterable._(this._iterable, T this._f(S element)); 299 MappedIterable._(this._iterable, T this._f(S element));
300 Iterator<T> get iterator => new MappedIterator<S, T>(_iterable.iterator, _f); 300 Iterator<T> get iterator => new MappedIterator<S, T>(_iterable.iterator, _f);
301 int get length => _iterable.length; 301 int get length => _iterable.length;
302 bool get isEmpty => _iterable.isEmpty; 302 bool get isEmpty => _iterable.isEmpty;
303 T get first => _f(_iterable.first); 303 T get first => _f(_iterable.first);
304 T get last => _f(_iterable.last); 304 T get last => _f(_iterable.last);
305 T get single => _f(_iterable.single); 305 T get single => _f(_iterable.single);
306 T elementAt(int index) => _f(_iterable.elementAt(index)); 306 T elementAt(int index) => _f(_iterable.elementAt(index));
307 } 307 }
308 class EfficientLengthMappedIterable<S, T> extends MappedIterable<S, T> implemen ts EfficientLength {EfficientLengthMappedIterable(Iterable iterable, T function( S value)) : super._(DEVC$RT.cast(iterable, DEVC$RT.type((Iterable<dynamic> _) { 308 class EfficientLengthMappedIterable<S, T> extends MappedIterable<S, T> implemen ts EfficientLength {EfficientLengthMappedIterable(Iterable iterable, T function( S value)) : super._(DEVC$RT.cast(iterable, DEVC$RT.type((Iterable<dynamic> _) {
309 } 309 }
310 ), DEVC$RT.type((Iterable<S> _) { 310 ), DEVC$RT.type((Iterable<S> _) {
311 } 311 }
312 ), "CastDynamic", """line 378, column 17 of dart:_internal/iterable.dart: """, i terable is Iterable<S>, false), function); 312 ), "CompositeCast", """line 378, column 17 of dart:_internal/iterable.dart: """, iterable is Iterable<S>, false), function);
313 } 313 }
314 class MappedIterator<S, T> extends Iterator<T> {T _current; 314 class MappedIterator<S, T> extends Iterator<T> {T _current;
315 final Iterator<S> _iterator; 315 final Iterator<S> _iterator;
316 final _Transformation<S, T> _f; 316 final _Transformation<S, T> _f;
317 MappedIterator(this._iterator, T this._f(S element)); 317 MappedIterator(this._iterator, T this._f(S element));
318 bool moveNext() { 318 bool moveNext() {
319 if (_iterator.moveNext()) { 319 if (_iterator.moveNext()) {
320 _current = _f(_iterator.current); 320 _current = _f(_iterator.current);
321 return true; 321 return true;
322 } 322 }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 return f == null ? null : c; 363 return f == null ? null : c;
364 } 364 }
365 , _f, null, DEVC$RT.type((__t2<S, T> _) { 365 , _f, null, DEVC$RT.type((__t2<S, T> _) {
366 } 366 }
367 ), "Wrap", """line 454, column 76 of dart:_internal/iterable.dart: """, _f is __ t2<S, T>)); 367 ), "Wrap", """line 454, column 76 of dart:_internal/iterable.dart: """, _f is __ t2<S, T>));
368 } 368 }
369 class ExpandIterator<S, T> implements Iterator<T> {final Iterator<S> _iterator; 369 class ExpandIterator<S, T> implements Iterator<T> {final Iterator<S> _iterator;
370 final _ExpandFunction _f; 370 final _ExpandFunction _f;
371 Iterator<T> _currentExpansion = ((__x6) => DEVC$RT.cast(__x6, null, DEVC$RT.typ e((Iterator<T> _) { 371 Iterator<T> _currentExpansion = ((__x6) => DEVC$RT.cast(__x6, null, DEVC$RT.typ e((Iterator<T> _) {
372 } 372 }
373 ), "CastExact", """line 463, column 35 of dart:_internal/iterable.dart: """, __x 6 is Iterator<T>, false))(const EmptyIterator()); 373 ), "InferableAllocation", """line 463, column 35 of dart:_internal/iterable.dart : """, __x6 is Iterator<T>, false))(const EmptyIterator());
374 T _current; 374 T _current;
375 ExpandIterator(this._iterator, Iterable<T> this._f(S element)); 375 ExpandIterator(this._iterator, Iterable<T> this._f(S element));
376 void _nextExpansion() { 376 void _nextExpansion() {
377 } 377 }
378 T get current => _current; 378 T get current => _current;
379 bool moveNext() { 379 bool moveNext() {
380 if (_currentExpansion == null) return false; 380 if (_currentExpansion == null) return false;
381 while (!_currentExpansion.moveNext()) { 381 while (!_currentExpansion.moveNext()) {
382 _current = null; 382 _current = null;
383 if (_iterator.moveNext()) { 383 if (_iterator.moveNext()) {
384 _currentExpansion = null; 384 _currentExpansion = null;
385 _currentExpansion = ((__x7) => DEVC$RT.cast(__x7, DEVC$RT.type((Iterator<dynami c> _) { 385 _currentExpansion = ((__x7) => DEVC$RT.cast(__x7, DEVC$RT.type((Iterator<dynami c> _) {
386 } 386 }
387 ), DEVC$RT.type((Iterator<T> _) { 387 ), DEVC$RT.type((Iterator<T> _) {
388 } 388 }
389 ), "CastDynamic", """line 481, column 29 of dart:_internal/iterable.dart: """, _ _x7 is Iterator<T>, false))(_f(_iterator.current).iterator); 389 ), "CompositeCast", """line 481, column 29 of dart:_internal/iterable.dart: """, __x7 is Iterator<T>, false))(_f(_iterator.current).iterator);
390 } 390 }
391 else { 391 else {
392 return false; 392 return false;
393 } 393 }
394 } 394 }
395 _current = _currentExpansion.current; 395 _current = _currentExpansion.current;
396 return true; 396 return true;
397 } 397 }
398 } 398 }
399 class TakeIterable<E> extends IterableBase<E> {final Iterable<E> _iterable; 399 class TakeIterable<E> extends IterableBase<E> {final Iterable<E> _iterable;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 if (!_f(_iterator.current)) return true; 533 if (!_f(_iterator.current)) return true;
534 } 534 }
535 } 535 }
536 return _iterator.moveNext(); 536 return _iterator.moveNext();
537 } 537 }
538 E get current => _iterator.current; 538 E get current => _iterator.current;
539 } 539 }
540 class EmptyIterable<E> extends IterableBase<E> implements EfficientLength {cons t EmptyIterable(); 540 class EmptyIterable<E> extends IterableBase<E> implements EfficientLength {cons t EmptyIterable();
541 Iterator<E> get iterator => ((__x16) => DEVC$RT.cast(__x16, null, DEVC$RT.type( (Iterator<E> _) { 541 Iterator<E> get iterator => ((__x16) => DEVC$RT.cast(__x16, null, DEVC$RT.type( (Iterator<E> _) {
542 } 542 }
543 ), "CastExact", """line 678, column 31 of dart:_internal/iterable.dart: """, __x 16 is Iterator<E>, false))(const EmptyIterator()); 543 ), "InferableAllocation", """line 678, column 31 of dart:_internal/iterable.dart : """, __x16 is Iterator<E>, false))(const EmptyIterator());
544 void forEach(void action(E element)) { 544 void forEach(void action(E element)) {
545 } 545 }
546 bool get isEmpty => true; 546 bool get isEmpty => true;
547 int get length => 0; 547 int get length => 0;
548 E get first { 548 E get first {
549 throw IterableElementError.noElement(); 549 throw IterableElementError.noElement();
550 } 550 }
551 E get last { 551 E get last {
552 throw IterableElementError.noElement(); 552 throw IterableElementError.noElement();
553 } 553 }
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 buffer.write(list[i]); 765 buffer.write(list[i]);
766 } 766 }
767 } 767 }
768 return buffer.toString(); 768 return buffer.toString();
769 } 769 }
770 Iterable<T> where(Iterable iterable, bool f(var element)) { 770 Iterable<T> where(Iterable iterable, bool f(var element)) {
771 return new WhereIterable<T>(DEVC$RT.cast(iterable, DEVC$RT.type((Iterable<dynami c> _) { 771 return new WhereIterable<T>(DEVC$RT.cast(iterable, DEVC$RT.type((Iterable<dynami c> _) {
772 } 772 }
773 ), DEVC$RT.type((Iterable<T> _) { 773 ), DEVC$RT.type((Iterable<T> _) {
774 } 774 }
775 ), "CastDynamic", """line 961, column 33 of dart:_internal/iterable.dart: """, i terable is Iterable<T>, false), DEVC$RT.wrap((bool f(dynamic __u17)) { 775 ), "CompositeCast", """line 961, column 33 of dart:_internal/iterable.dart: """, iterable is Iterable<T>, false), DEVC$RT.wrap((bool f(dynamic __u17)) {
776 bool c(dynamic x0) => f(x0); 776 bool c(dynamic x0) => f(x0);
777 return f == null ? null : c; 777 return f == null ? null : c;
778 } 778 }
779 , f, null, DEVC$RT.type((__t18<T> _) { 779 , f, null, DEVC$RT.type((__t18<T> _) {
780 } 780 }
781 ), "Wrap", """line 961, column 43 of dart:_internal/iterable.dart: """, f is __t 18<T>)); 781 ), "Wrap", """line 961, column 43 of dart:_internal/iterable.dart: """, f is __t 18<T>));
782 } 782 }
783 static Iterable map(Iterable iterable, f(var element)) { 783 static Iterable map(Iterable iterable, f(var element)) {
784 return new MappedIterable(iterable, f); 784 return new MappedIterable(iterable, f);
785 } 785 }
786 static Iterable mapList(List list, f(var element)) { 786 static Iterable mapList(List list, f(var element)) {
787 return new MappedListIterable(list, f); 787 return new MappedListIterable(list, f);
788 } 788 }
789 static Iterable expand(Iterable iterable, Iterable f(var element)) { 789 static Iterable expand(Iterable iterable, Iterable f(var element)) {
790 return new ExpandIterable(iterable, f); 790 return new ExpandIterable(iterable, f);
791 } 791 }
792 Iterable<T> takeList(List list, int n) { 792 Iterable<T> takeList(List list, int n) {
793 return new SubListIterable<T>(DEVC$RT.cast(list, DEVC$RT.type((List<dynamic> _) { 793 return new SubListIterable<T>(DEVC$RT.cast(list, DEVC$RT.type((List<dynamic> _) {
794 } 794 }
795 ), DEVC$RT.type((Iterable<T> _) { 795 ), DEVC$RT.type((Iterable<T> _) {
796 } 796 }
797 ), "CastDynamic", """line 978, column 35 of dart:_internal/iterable.dart: """, l ist is Iterable<T>, false), 0, n); 797 ), "CompositeCast", """line 978, column 35 of dart:_internal/iterable.dart: """, list is Iterable<T>, false), 0, n);
798 } 798 }
799 Iterable<T> takeWhile(Iterable iterable, bool test(var value)) { 799 Iterable<T> takeWhile(Iterable iterable, bool test(var value)) {
800 return new TakeWhileIterable<T>(DEVC$RT.cast(iterable, DEVC$RT.type((Iterable<dy namic> _) { 800 return new TakeWhileIterable<T>(DEVC$RT.cast(iterable, DEVC$RT.type((Iterable<dy namic> _) {
801 } 801 }
802 ), DEVC$RT.type((Iterable<T> _) { 802 ), DEVC$RT.type((Iterable<T> _) {
803 } 803 }
804 ), "CastDynamic", """line 983, column 37 of dart:_internal/iterable.dart: """, i terable is Iterable<T>, false), DEVC$RT.wrap((bool f(dynamic __u20)) { 804 ), "CompositeCast", """line 983, column 37 of dart:_internal/iterable.dart: """, iterable is Iterable<T>, false), DEVC$RT.wrap((bool f(dynamic __u20)) {
805 bool c(dynamic x0) => f(x0); 805 bool c(dynamic x0) => f(x0);
806 return f == null ? null : c; 806 return f == null ? null : c;
807 } 807 }
808 , test, null, DEVC$RT.type((__t18<T> _) { 808 , test, null, DEVC$RT.type((__t18<T> _) {
809 } 809 }
810 ), "Wrap", """line 983, column 47 of dart:_internal/iterable.dart: """, test is __t18<T>)); 810 ), "Wrap", """line 983, column 47 of dart:_internal/iterable.dart: """, test is __t18<T>));
811 } 811 }
812 Iterable<T> skipList(List list, int n) { 812 Iterable<T> skipList(List list, int n) {
813 return new SubListIterable<T>(DEVC$RT.cast(list, DEVC$RT.type((List<dynamic> _) { 813 return new SubListIterable<T>(DEVC$RT.cast(list, DEVC$RT.type((List<dynamic> _) {
814 } 814 }
815 ), DEVC$RT.type((Iterable<T> _) { 815 ), DEVC$RT.type((Iterable<T> _) {
816 } 816 }
817 ), "CastDynamic", """line 988, column 35 of dart:_internal/iterable.dart: """, l ist is Iterable<T>, false), n, null); 817 ), "CompositeCast", """line 988, column 35 of dart:_internal/iterable.dart: """, list is Iterable<T>, false), n, null);
818 } 818 }
819 Iterable<T> skipWhile(Iterable iterable, bool test(var value)) { 819 Iterable<T> skipWhile(Iterable iterable, bool test(var value)) {
820 return new SkipWhileIterable<T>(DEVC$RT.cast(iterable, DEVC$RT.type((Iterable<dy namic> _) { 820 return new SkipWhileIterable<T>(DEVC$RT.cast(iterable, DEVC$RT.type((Iterable<dy namic> _) {
821 } 821 }
822 ), DEVC$RT.type((Iterable<T> _) { 822 ), DEVC$RT.type((Iterable<T> _) {
823 } 823 }
824 ), "CastDynamic", """line 993, column 37 of dart:_internal/iterable.dart: """, i terable is Iterable<T>, false), DEVC$RT.wrap((bool f(dynamic __u21)) { 824 ), "CompositeCast", """line 993, column 37 of dart:_internal/iterable.dart: """, iterable is Iterable<T>, false), DEVC$RT.wrap((bool f(dynamic __u21)) {
825 bool c(dynamic x0) => f(x0); 825 bool c(dynamic x0) => f(x0);
826 return f == null ? null : c; 826 return f == null ? null : c;
827 } 827 }
828 , test, null, DEVC$RT.type((__t18<T> _) { 828 , test, null, DEVC$RT.type((__t18<T> _) {
829 } 829 }
830 ), "Wrap", """line 993, column 47 of dart:_internal/iterable.dart: """, test is __t18<T>)); 830 ), "Wrap", """line 993, column 47 of dart:_internal/iterable.dart: """, test is __t18<T>));
831 } 831 }
832 Iterable<T> reversedList(List list) { 832 Iterable<T> reversedList(List list) {
833 return new ReversedListIterable<T>(DEVC$RT.cast(list, DEVC$RT.type((List<dynamic > _) { 833 return new ReversedListIterable<T>(DEVC$RT.cast(list, DEVC$RT.type((List<dynamic > _) {
834 } 834 }
835 ), DEVC$RT.type((Iterable<T> _) { 835 ), DEVC$RT.type((Iterable<T> _) {
836 } 836 }
837 ), "CastDynamic", """line 997, column 40 of dart:_internal/iterable.dart: """, l ist is Iterable<T>, false)); 837 ), "CompositeCast", """line 997, column 40 of dart:_internal/iterable.dart: """, list is Iterable<T>, false));
838 } 838 }
839 static void sortList(List list, int compare(a, b)) { 839 static void sortList(List list, int compare(a, b)) {
840 if (compare == null) compare = Comparable.compare; 840 if (compare == null) compare = Comparable.compare;
841 Sort.sort(list, compare); 841 Sort.sort(list, compare);
842 } 842 }
843 static void shuffleList(List list, Random random) { 843 static void shuffleList(List list, Random random) {
844 if (random == null) random = new Random(); 844 if (random == null) random = new Random();
845 int length = list.length; 845 int length = list.length;
846 while (length > 1) { 846 while (length > 1) {
847 int pos = random.nextInt(length); 847 int pos = random.nextInt(length);
(...skipping 12 matching lines...) Expand all
860 } 860 }
861 static void _rangeCheck(List list, int start, int end) { 861 static void _rangeCheck(List list, int start, int end) {
862 RangeError.checkValidRange(start, end, list.length); 862 RangeError.checkValidRange(start, end, list.length);
863 } 863 }
864 Iterable<T> getRangeList(List list, int start, int end) { 864 Iterable<T> getRangeList(List list, int start, int end) {
865 _rangeCheck(list, start, end); 865 _rangeCheck(list, start, end);
866 return new SubListIterable<T>(DEVC$RT.cast(list, DEVC$RT.type((List<dynamic> _) { 866 return new SubListIterable<T>(DEVC$RT.cast(list, DEVC$RT.type((List<dynamic> _) {
867 } 867 }
868 ), DEVC$RT.type((Iterable<T> _) { 868 ), DEVC$RT.type((Iterable<T> _) {
869 } 869 }
870 ), "CastDynamic", """line 1033, column 35 of dart:_internal/iterable.dart: """, list is Iterable<T>, false), start, end); 870 ), "CompositeCast", """line 1033, column 35 of dart:_internal/iterable.dart: """ , list is Iterable<T>, false), start, end);
871 } 871 }
872 static void setRangeList(List list, int start, int end, Iterable from, int skip Count) { 872 static void setRangeList(List list, int start, int end, Iterable from, int skip Count) {
873 _rangeCheck(list, start, end); 873 _rangeCheck(list, start, end);
874 int length = end - start; 874 int length = end - start;
875 if (length == 0) return; if (skipCount < 0) throw new ArgumentError(skipCount); 875 if (length == 0) return; if (skipCount < 0) throw new ArgumentError(skipCount);
876 List otherList; 876 List otherList;
877 int otherStart; 877 int otherStart;
878 if (from is List) { 878 if (from is List) {
879 otherList = from; 879 otherList = from;
880 otherStart = skipCount; 880 otherStart = skipCount;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 RangeError.checkValueInInterval(index, 0, list.length, "index"); 936 RangeError.checkValueInInterval(index, 0, list.length, "index");
937 for (var element in iterable) { 937 for (var element in iterable) {
938 list[index++] = element; 938 list[index++] = element;
939 } 939 }
940 } 940 }
941 Map<int, T> asMapList(List l) { 941 Map<int, T> asMapList(List l) {
942 return new ListMapView<T>(DEVC$RT.cast(l, DEVC$RT.type((List<dynamic> _) { 942 return new ListMapView<T>(DEVC$RT.cast(l, DEVC$RT.type((List<dynamic> _) {
943 } 943 }
944 ), DEVC$RT.type((List<T> _) { 944 ), DEVC$RT.type((List<T> _) {
945 } 945 }
946 ), "CastDynamic", """line 1115, column 31 of dart:_internal/iterable.dart: """, l is List<T>, false)); 946 ), "CompositeCast", """line 1115, column 31 of dart:_internal/iterable.dart: """ , l is List<T>, false));
947 } 947 }
948 static bool setContainsAll(Set set, Iterable other) { 948 static bool setContainsAll(Set set, Iterable other) {
949 for (var element in other) { 949 for (var element in other) {
950 if (!set.contains(element)) return false; 950 if (!set.contains(element)) return false;
951 } 951 }
952 return true; 952 return true;
953 } 953 }
954 static Set setIntersection(Set set, Set other, Set result) { 954 static Set setIntersection(Set set, Set other, Set result) {
955 Set smaller; 955 Set smaller;
956 Set larger; 956 Set larger;
(...skipping 29 matching lines...) Expand all
986 abstract class IterableElementError {static StateError noElement() => new State Error("No element"); 986 abstract class IterableElementError {static StateError noElement() => new State Error("No element");
987 static StateError tooMany() => new StateError("Too many elements"); 987 static StateError tooMany() => new StateError("Too many elements");
988 static StateError tooFew() => new StateError("Too few elements"); 988 static StateError tooFew() => new StateError("Too few elements");
989 } 989 }
990 typedef Iterable<T> __t2<S, T>(S __u3); 990 typedef Iterable<T> __t2<S, T>(S __u3);
991 typedef Iterable<dynamic> __t4(dynamic __u5); 991 typedef Iterable<dynamic> __t4(dynamic __u5);
992 typedef bool __t9<E>(E __u10); 992 typedef bool __t9<E>(E __u10);
993 typedef bool __t11(dynamic __u12); 993 typedef bool __t11(dynamic __u12);
994 typedef bool __t14<E>(E __u15); 994 typedef bool __t14<E>(E __u15);
995 typedef bool __t18<T>(T __u19); 995 typedef bool __t18<T>(T __u19);
OLDNEW
« no previous file with comments | « test/codegen/expect/sunflower/sunflower.txt ('k') | test/dart_codegen/expect/async/async_error.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698