| OLD | NEW |
| 1 part of dart.core; | 1 part of dart.core; |
| 2 | 2 |
| 3 abstract class List<E> implements Iterable<E>, EfficientLength { | 3 abstract class List<E> implements Iterable<E>, EfficientLength { |
| 4 @patch factory List([int length = const _ListConstructorSentinel()]) { | 4 factory List([int length = const _ListConstructorSentinel()]) { |
| 5 if (length == const _ListConstructorSentinel()) { | 5 if (length == const _ListConstructorSentinel()) { |
| 6 return ((__x26) => DDC$RT.cast(__x26, dynamic, | 6 return ((__x26) => DDC$RT.cast(__x26, dynamic, |
| 7 DDC$RT.type((List<E> _) {}), "CastExact", | 7 DDC$RT.type((List<E> _) {}), "CastExact", |
| 8 """line 58, column 14 of dart:core/list.dart: """, __x26 is List<E>, | 8 """line 79, column 14 of dart:core/list.dart: """, __x26 is List<E>, |
| 9 false))(new JSArray<E>.emptyGrowable()); | 9 false))(new JSArray<E>.emptyGrowable()); |
| 10 } | 10 } |
| 11 return ((__x27) => DDC$RT.cast(__x27, dynamic, DDC$RT.type((List<E> _) {}), | 11 return ((__x27) => DDC$RT.cast(__x27, dynamic, DDC$RT.type((List<E> _) {}), |
| 12 "CastExact", """line 60, column 12 of dart:core/list.dart: """, | 12 "CastExact", """line 81, column 12 of dart:core/list.dart: """, |
| 13 __x27 is List<E>, false))(new JSArray<E>.fixed(length)); | 13 __x27 is List<E>, false))(new JSArray<E>.fixed(length)); |
| 14 } | 14 } |
| 15 @patch factory List.filled(int length, E fill) { | 15 factory List.filled(int length, E fill) { |
| 16 List result = ((__x28) => DDC$RT.cast(__x28, dynamic, | 16 List result = ((__x28) => DDC$RT.cast(__x28, dynamic, |
| 17 DDC$RT.type((List<dynamic> _) {}), "CastExact", | 17 DDC$RT.type((List<dynamic> _) {}), "CastExact", |
| 18 """line 65, column 19 of dart:core/list.dart: """, | 18 """line 93, column 19 of dart:core/list.dart: """, |
| 19 __x28 is List<dynamic>, true))(new JSArray<E>.fixed(length)); | 19 __x28 is List<dynamic>, true))(new JSArray<E>.fixed(length)); |
| 20 if (length != 0 && fill != null) { | 20 if (length != 0 && fill != null) { |
| 21 for (int i = 0; i < result.length; i++) { | 21 for (int i = 0; i < result.length; i++) { |
| 22 result[i] = fill; | 22 result[i] = fill; |
| 23 } | 23 } |
| 24 } | 24 } |
| 25 return DDC$RT.cast(result, DDC$RT.type((List<dynamic> _) {}), | 25 return DDC$RT.cast(result, DDC$RT.type((List<dynamic> _) {}), |
| 26 DDC$RT.type((List<E> _) {}), "CastDynamic", | 26 DDC$RT.type((List<E> _) {}), "CastDynamic", |
| 27 """line 71, column 12 of dart:core/list.dart: """, result is List<E>, | 27 """line 99, column 12 of dart:core/list.dart: """, result is List<E>, |
| 28 false); | 28 false); |
| 29 } | 29 } |
| 30 @patch factory List.from(Iterable elements, {bool growable: true}) { | 30 factory List.from(Iterable elements, {bool growable: true}) { |
| 31 List<E> list = new List<E>(); | 31 List<E> list = new List<E>(); |
| 32 for (E e in elements) { | 32 for (E e in elements) { |
| 33 list.add(e); | 33 list.add(e); |
| 34 } | 34 } |
| 35 if (growable) return list; | 35 if (growable) return list; |
| 36 return ((__x29) => DDC$RT.cast(__x29, DDC$RT.type((List<dynamic> _) {}), | 36 return ((__x29) => DDC$RT.cast(__x29, DDC$RT.type((List<dynamic> _) {}), |
| 37 DDC$RT.type((List<E> _) {}), "CastDynamic", | 37 DDC$RT.type((List<E> _) {}), "CastDynamic", |
| 38 """line 81, column 12 of dart:core/list.dart: """, __x29 is List<E>, | 38 """line 116, column 12 of dart:core/list.dart: """, __x29 is List<E>, |
| 39 false))(makeListFixedLength(list)); | 39 false))(makeListFixedLength(list)); |
| 40 } | 40 } |
| 41 factory List.generate(int length, E generator(int index), | 41 factory List.generate(int length, E generator(int index), |
| 42 {bool growable: true}) { | 42 {bool growable: true}) { |
| 43 List<E> result; | 43 List<E> result; |
| 44 if (growable) { | 44 if (growable) { |
| 45 result = <E>[]..length = length; | 45 result = <E>[]..length = length; |
| 46 } else { | 46 } else { |
| 47 result = new List<E>(length); | 47 result = new List<E>(length); |
| 48 } | 48 } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 72 void removeWhere(bool test(E element)); | 72 void removeWhere(bool test(E element)); |
| 73 void retainWhere(bool test(E element)); | 73 void retainWhere(bool test(E element)); |
| 74 List<E> sublist(int start, [int end]); | 74 List<E> sublist(int start, [int end]); |
| 75 Iterable<E> getRange(int start, int end); | 75 Iterable<E> getRange(int start, int end); |
| 76 void setRange(int start, int end, Iterable<E> iterable, [int skipCount = 0]); | 76 void setRange(int start, int end, Iterable<E> iterable, [int skipCount = 0]); |
| 77 void removeRange(int start, int end); | 77 void removeRange(int start, int end); |
| 78 void fillRange(int start, int end, [E fillValue]); | 78 void fillRange(int start, int end, [E fillValue]); |
| 79 void replaceRange(int start, int end, Iterable<E> replacement); | 79 void replaceRange(int start, int end, Iterable<E> replacement); |
| 80 Map<int, E> asMap(); | 80 Map<int, E> asMap(); |
| 81 } | 81 } |
| OLD | NEW |