| OLD | NEW |
| 1 library html; | 1 library html; |
| 2 | 2 |
| 3 import 'dart:async'; | 3 import 'dart:async'; |
| 4 import 'dart:isolate'; | 4 import 'dart:isolate'; |
| 5 import 'dart:json'; | 5 import 'dart:json' as json; |
| 6 import 'dart:svg' as svg; | 6 import 'dart:svg' as svg; |
| 7 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 8 // for details. All rights reserved. Use of this source code is governed by a | 8 // for details. All rights reserved. Use of this source code is governed by a |
| 9 // BSD-style license that can be found in the LICENSE file. | 9 // BSD-style license that can be found in the LICENSE file. |
| 10 | 10 |
| 11 // DO NOT EDIT | 11 // DO NOT EDIT |
| 12 // Auto-generated dart:html library. | 12 // Auto-generated dart:html library. |
| 13 | 13 |
| 14 | 14 |
| 15 | 15 |
| (...skipping 5313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5329 } | 5329 } |
| 5330 | 5330 |
| 5331 void addAll(Collection<DOMMimeType> collection) { | 5331 void addAll(Collection<DOMMimeType> collection) { |
| 5332 throw new UnsupportedError("Cannot add to immutable List."); | 5332 throw new UnsupportedError("Cannot add to immutable List."); |
| 5333 } | 5333 } |
| 5334 | 5334 |
| 5335 bool contains(DOMMimeType element) => _Collections.contains(this, element); | 5335 bool contains(DOMMimeType element) => _Collections.contains(this, element); |
| 5336 | 5336 |
| 5337 void forEach(void f(DOMMimeType element)) => _Collections.forEach(this, f); | 5337 void forEach(void f(DOMMimeType element)) => _Collections.forEach(this, f); |
| 5338 | 5338 |
| 5339 Collection mappedBy(f(DOMMimeType element)) => _Collections.mappedBy(this, [],
f); | 5339 Iterable mappedBy(f(DOMMimeType element)) => new MappedIterable(this, f); |
| 5340 | 5340 |
| 5341 Collection<DOMMimeType> where(bool f(DOMMimeType element)) => | 5341 Collection<DOMMimeType> where(bool f(DOMMimeType element)) => |
| 5342 _Collections.where(this, <DOMMimeType>[], f); | 5342 _Collections.where(this, <DOMMimeType>[], f); |
| 5343 | 5343 |
| 5344 bool every(bool f(DOMMimeType element)) => _Collections.every(this, f); | 5344 bool every(bool f(DOMMimeType element)) => _Collections.every(this, f); |
| 5345 | 5345 |
| 5346 bool some(bool f(DOMMimeType element)) => _Collections.some(this, f); | 5346 bool some(bool f(DOMMimeType element)) => _Collections.some(this, f); |
| 5347 | 5347 |
| 5348 bool get isEmpty => this.length == 0; | 5348 bool get isEmpty => this.length == 0; |
| 5349 | 5349 |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5468 } | 5468 } |
| 5469 | 5469 |
| 5470 void addAll(Collection<DOMPlugin> collection) { | 5470 void addAll(Collection<DOMPlugin> collection) { |
| 5471 throw new UnsupportedError("Cannot add to immutable List."); | 5471 throw new UnsupportedError("Cannot add to immutable List."); |
| 5472 } | 5472 } |
| 5473 | 5473 |
| 5474 bool contains(DOMPlugin element) => _Collections.contains(this, element); | 5474 bool contains(DOMPlugin element) => _Collections.contains(this, element); |
| 5475 | 5475 |
| 5476 void forEach(void f(DOMPlugin element)) => _Collections.forEach(this, f); | 5476 void forEach(void f(DOMPlugin element)) => _Collections.forEach(this, f); |
| 5477 | 5477 |
| 5478 Collection mappedBy(f(DOMPlugin element)) => _Collections.mappedBy(this, [], f
); | 5478 Iterable mappedBy(f(DOMPlugin element)) => new MappedIterable(this, f); |
| 5479 | 5479 |
| 5480 Collection<DOMPlugin> where(bool f(DOMPlugin element)) => | 5480 Collection<DOMPlugin> where(bool f(DOMPlugin element)) => |
| 5481 _Collections.where(this, <DOMPlugin>[], f); | 5481 _Collections.where(this, <DOMPlugin>[], f); |
| 5482 | 5482 |
| 5483 bool every(bool f(DOMPlugin element)) => _Collections.every(this, f); | 5483 bool every(bool f(DOMPlugin element)) => _Collections.every(this, f); |
| 5484 | 5484 |
| 5485 bool some(bool f(DOMPlugin element)) => _Collections.some(this, f); | 5485 bool some(bool f(DOMPlugin element)) => _Collections.some(this, f); |
| 5486 | 5486 |
| 5487 bool get isEmpty => this.length == 0; | 5487 bool get isEmpty => this.length == 0; |
| 5488 | 5488 |
| (...skipping 1270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6759 | 6759 |
| 6760 bool some(bool f(Element element)) { | 6760 bool some(bool f(Element element)) { |
| 6761 for (Element element in this) { | 6761 for (Element element in this) { |
| 6762 if (f(element)) { | 6762 if (f(element)) { |
| 6763 return true; | 6763 return true; |
| 6764 } | 6764 } |
| 6765 }; | 6765 }; |
| 6766 return false; | 6766 return false; |
| 6767 } | 6767 } |
| 6768 | 6768 |
| 6769 Collection mappedBy(f(Element element)) { | 6769 Iterable mappedBy(f(Element element)) => new MappedIterable(this, f); |
| 6770 final out = []; | |
| 6771 for (Element el in this) { | |
| 6772 out.add(f(el)); | |
| 6773 } | |
| 6774 return out; | |
| 6775 } | |
| 6776 | 6770 |
| 6777 bool get isEmpty { | 6771 bool get isEmpty { |
| 6778 return _element.$dom_firstElementChild == null; | 6772 return _element.$dom_firstElementChild == null; |
| 6779 } | 6773 } |
| 6780 | 6774 |
| 6781 int get length { | 6775 int get length { |
| 6782 return _childElements.length; | 6776 return _childElements.length; |
| 6783 } | 6777 } |
| 6784 | 6778 |
| 6785 Element operator [](int index) { | 6779 Element operator [](int index) { |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6876 } | 6870 } |
| 6877 return false; | 6871 return false; |
| 6878 } | 6872 } |
| 6879 | 6873 |
| 6880 void forEach(void f(Element element)) { | 6874 void forEach(void f(Element element)) { |
| 6881 for (Element el in this) { | 6875 for (Element el in this) { |
| 6882 f(el); | 6876 f(el); |
| 6883 } | 6877 } |
| 6884 } | 6878 } |
| 6885 | 6879 |
| 6886 Collection mappedBy(f(Element element)) { | 6880 Iterable mappedBy(f(Element element)) => new MappedIterable(this, f); |
| 6887 final out = []; | |
| 6888 for (Element el in this) { | |
| 6889 out.add(f(el)); | |
| 6890 } | |
| 6891 return out; | |
| 6892 } | |
| 6893 | 6881 |
| 6894 List<Element> where(bool f(Element element)) { | 6882 List<Element> where(bool f(Element element)) { |
| 6895 final out = []; | 6883 final out = []; |
| 6896 for (Element el in this) { | 6884 for (Element el in this) { |
| 6897 if (f(el)) out.add(el); | 6885 if (f(el)) out.add(el); |
| 6898 } | 6886 } |
| 6899 return out; | 6887 return out; |
| 6900 } | 6888 } |
| 6901 | 6889 |
| 6902 bool every(bool f(Element element)) { | 6890 bool every(bool f(Element element)) { |
| (...skipping 1718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8621 } | 8609 } |
| 8622 | 8610 |
| 8623 void addAll(Collection<num> collection) { | 8611 void addAll(Collection<num> collection) { |
| 8624 throw new UnsupportedError("Cannot add to immutable List."); | 8612 throw new UnsupportedError("Cannot add to immutable List."); |
| 8625 } | 8613 } |
| 8626 | 8614 |
| 8627 bool contains(num element) => _Collections.contains(this, element); | 8615 bool contains(num element) => _Collections.contains(this, element); |
| 8628 | 8616 |
| 8629 void forEach(void f(num element)) => _Collections.forEach(this, f); | 8617 void forEach(void f(num element)) => _Collections.forEach(this, f); |
| 8630 | 8618 |
| 8631 Collection mappedBy(f(num element)) => _Collections.mappedBy(this, [], f); | 8619 Iterable mappedBy(f(num element)) => new MappedIterable(this, f); |
| 8632 | 8620 |
| 8633 Collection<num> where(bool f(num element)) => | 8621 Collection<num> where(bool f(num element)) => |
| 8634 _Collections.where(this, <num>[], f); | 8622 _Collections.where(this, <num>[], f); |
| 8635 | 8623 |
| 8636 bool every(bool f(num element)) => _Collections.every(this, f); | 8624 bool every(bool f(num element)) => _Collections.every(this, f); |
| 8637 | 8625 |
| 8638 bool some(bool f(num element)) => _Collections.some(this, f); | 8626 bool some(bool f(num element)) => _Collections.some(this, f); |
| 8639 | 8627 |
| 8640 bool get isEmpty => this.length == 0; | 8628 bool get isEmpty => this.length == 0; |
| 8641 | 8629 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8730 } | 8718 } |
| 8731 | 8719 |
| 8732 void addAll(Collection<num> collection) { | 8720 void addAll(Collection<num> collection) { |
| 8733 throw new UnsupportedError("Cannot add to immutable List."); | 8721 throw new UnsupportedError("Cannot add to immutable List."); |
| 8734 } | 8722 } |
| 8735 | 8723 |
| 8736 bool contains(num element) => _Collections.contains(this, element); | 8724 bool contains(num element) => _Collections.contains(this, element); |
| 8737 | 8725 |
| 8738 void forEach(void f(num element)) => _Collections.forEach(this, f); | 8726 void forEach(void f(num element)) => _Collections.forEach(this, f); |
| 8739 | 8727 |
| 8740 Collection mappedBy(f(num element)) => _Collections.mappedBy(this, [], f); | 8728 Iterable mappedBy(f(num element)) => new MappedIterable(this, f); |
| 8741 | 8729 |
| 8742 Collection<num> where(bool f(num element)) => | 8730 Collection<num> where(bool f(num element)) => |
| 8743 _Collections.where(this, <num>[], f); | 8731 _Collections.where(this, <num>[], f); |
| 8744 | 8732 |
| 8745 bool every(bool f(num element)) => _Collections.every(this, f); | 8733 bool every(bool f(num element)) => _Collections.every(this, f); |
| 8746 | 8734 |
| 8747 bool some(bool f(num element)) => _Collections.some(this, f); | 8735 bool some(bool f(num element)) => _Collections.some(this, f); |
| 8748 | 8736 |
| 8749 bool get isEmpty => this.length == 0; | 8737 bool get isEmpty => this.length == 0; |
| 8750 | 8738 |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9096 } | 9084 } |
| 9097 | 9085 |
| 9098 void addAll(Collection<Node> collection) { | 9086 void addAll(Collection<Node> collection) { |
| 9099 throw new UnsupportedError("Cannot add to immutable List."); | 9087 throw new UnsupportedError("Cannot add to immutable List."); |
| 9100 } | 9088 } |
| 9101 | 9089 |
| 9102 bool contains(Node element) => _Collections.contains(this, element); | 9090 bool contains(Node element) => _Collections.contains(this, element); |
| 9103 | 9091 |
| 9104 void forEach(void f(Node element)) => _Collections.forEach(this, f); | 9092 void forEach(void f(Node element)) => _Collections.forEach(this, f); |
| 9105 | 9093 |
| 9106 Collection mappedBy(f(Node element)) => _Collections.mappedBy(this, [], f); | 9094 Iterable mappedBy(f(Node element)) => new MappedIterable(this, f); |
| 9107 | 9095 |
| 9108 Collection<Node> where(bool f(Node element)) => | 9096 Collection<Node> where(bool f(Node element)) => |
| 9109 _Collections.where(this, <Node>[], f); | 9097 _Collections.where(this, <Node>[], f); |
| 9110 | 9098 |
| 9111 bool every(bool f(Node element)) => _Collections.every(this, f); | 9099 bool every(bool f(Node element)) => _Collections.every(this, f); |
| 9112 | 9100 |
| 9113 bool some(bool f(Node element)) => _Collections.some(this, f); | 9101 bool some(bool f(Node element)) => _Collections.some(this, f); |
| 9114 | 9102 |
| 9115 bool get isEmpty => this.length == 0; | 9103 bool get isEmpty => this.length == 0; |
| 9116 | 9104 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9199 } | 9187 } |
| 9200 | 9188 |
| 9201 void addAll(Collection<Node> collection) { | 9189 void addAll(Collection<Node> collection) { |
| 9202 throw new UnsupportedError("Cannot add to immutable List."); | 9190 throw new UnsupportedError("Cannot add to immutable List."); |
| 9203 } | 9191 } |
| 9204 | 9192 |
| 9205 bool contains(Node element) => _Collections.contains(this, element); | 9193 bool contains(Node element) => _Collections.contains(this, element); |
| 9206 | 9194 |
| 9207 void forEach(void f(Node element)) => _Collections.forEach(this, f); | 9195 void forEach(void f(Node element)) => _Collections.forEach(this, f); |
| 9208 | 9196 |
| 9209 Collection mappedBy(f(Node element)) => _Collections.mappedBy(this, [], f); | 9197 Iterable mappedBy(f(Node element)) => new MappedIterable(this, f); |
| 9210 | 9198 |
| 9211 Collection<Node> where(bool f(Node element)) => | 9199 Collection<Node> where(bool f(Node element)) => |
| 9212 _Collections.where(this, <Node>[], f); | 9200 _Collections.where(this, <Node>[], f); |
| 9213 | 9201 |
| 9214 bool every(bool f(Node element)) => _Collections.every(this, f); | 9202 bool every(bool f(Node element)) => _Collections.every(this, f); |
| 9215 | 9203 |
| 9216 bool some(bool f(Node element)) => _Collections.some(this, f); | 9204 bool some(bool f(Node element)) => _Collections.some(this, f); |
| 9217 | 9205 |
| 9218 bool get isEmpty => this.length == 0; | 9206 bool get isEmpty => this.length == 0; |
| 9219 | 9207 |
| (...skipping 1547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10767 } | 10755 } |
| 10768 | 10756 |
| 10769 void addAll(Collection<int> collection) { | 10757 void addAll(Collection<int> collection) { |
| 10770 throw new UnsupportedError("Cannot add to immutable List."); | 10758 throw new UnsupportedError("Cannot add to immutable List."); |
| 10771 } | 10759 } |
| 10772 | 10760 |
| 10773 bool contains(int element) => _Collections.contains(this, element); | 10761 bool contains(int element) => _Collections.contains(this, element); |
| 10774 | 10762 |
| 10775 void forEach(void f(int element)) => _Collections.forEach(this, f); | 10763 void forEach(void f(int element)) => _Collections.forEach(this, f); |
| 10776 | 10764 |
| 10777 Collection mappedBy(f(int element)) => _Collections.mappedBy(this, [], f); | 10765 Iterable mappedBy(f(int element)) => new MappedIterable(this, f); |
| 10778 | 10766 |
| 10779 Collection<int> where(bool f(int element)) => | 10767 Collection<int> where(bool f(int element)) => |
| 10780 _Collections.where(this, <int>[], f); | 10768 _Collections.where(this, <int>[], f); |
| 10781 | 10769 |
| 10782 bool every(bool f(int element)) => _Collections.every(this, f); | 10770 bool every(bool f(int element)) => _Collections.every(this, f); |
| 10783 | 10771 |
| 10784 bool some(bool f(int element)) => _Collections.some(this, f); | 10772 bool some(bool f(int element)) => _Collections.some(this, f); |
| 10785 | 10773 |
| 10786 bool get isEmpty => this.length == 0; | 10774 bool get isEmpty => this.length == 0; |
| 10787 | 10775 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10876 } | 10864 } |
| 10877 | 10865 |
| 10878 void addAll(Collection<int> collection) { | 10866 void addAll(Collection<int> collection) { |
| 10879 throw new UnsupportedError("Cannot add to immutable List."); | 10867 throw new UnsupportedError("Cannot add to immutable List."); |
| 10880 } | 10868 } |
| 10881 | 10869 |
| 10882 bool contains(int element) => _Collections.contains(this, element); | 10870 bool contains(int element) => _Collections.contains(this, element); |
| 10883 | 10871 |
| 10884 void forEach(void f(int element)) => _Collections.forEach(this, f); | 10872 void forEach(void f(int element)) => _Collections.forEach(this, f); |
| 10885 | 10873 |
| 10886 Collection mappedBy(f(int element)) => _Collections.mappedBy(this, [], f); | 10874 Iterable mappedBy(f(int element)) => new MappedIterable(this, f); |
| 10887 | 10875 |
| 10888 Collection<int> where(bool f(int element)) => | 10876 Collection<int> where(bool f(int element)) => |
| 10889 _Collections.where(this, <int>[], f); | 10877 _Collections.where(this, <int>[], f); |
| 10890 | 10878 |
| 10891 bool every(bool f(int element)) => _Collections.every(this, f); | 10879 bool every(bool f(int element)) => _Collections.every(this, f); |
| 10892 | 10880 |
| 10893 bool some(bool f(int element)) => _Collections.some(this, f); | 10881 bool some(bool f(int element)) => _Collections.some(this, f); |
| 10894 | 10882 |
| 10895 bool get isEmpty => this.length == 0; | 10883 bool get isEmpty => this.length == 0; |
| 10896 | 10884 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10985 } | 10973 } |
| 10986 | 10974 |
| 10987 void addAll(Collection<int> collection) { | 10975 void addAll(Collection<int> collection) { |
| 10988 throw new UnsupportedError("Cannot add to immutable List."); | 10976 throw new UnsupportedError("Cannot add to immutable List."); |
| 10989 } | 10977 } |
| 10990 | 10978 |
| 10991 bool contains(int element) => _Collections.contains(this, element); | 10979 bool contains(int element) => _Collections.contains(this, element); |
| 10992 | 10980 |
| 10993 void forEach(void f(int element)) => _Collections.forEach(this, f); | 10981 void forEach(void f(int element)) => _Collections.forEach(this, f); |
| 10994 | 10982 |
| 10995 Collection mappedBy(f(int element)) => _Collections.mappedBy(this, [], f); | 10983 Iterable mappedBy(f(int element)) => new MappedIterable(this, f); |
| 10996 | 10984 |
| 10997 Collection<int> where(bool f(int element)) => | 10985 Collection<int> where(bool f(int element)) => |
| 10998 _Collections.where(this, <int>[], f); | 10986 _Collections.where(this, <int>[], f); |
| 10999 | 10987 |
| 11000 bool every(bool f(int element)) => _Collections.every(this, f); | 10988 bool every(bool f(int element)) => _Collections.every(this, f); |
| 11001 | 10989 |
| 11002 bool some(bool f(int element)) => _Collections.some(this, f); | 10990 bool some(bool f(int element)) => _Collections.some(this, f); |
| 11003 | 10991 |
| 11004 bool get isEmpty => this.length == 0; | 10992 bool get isEmpty => this.length == 0; |
| 11005 | 10993 |
| (...skipping 2129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13135 } | 13123 } |
| 13136 | 13124 |
| 13137 void addAll(Collection<Node> collection) { | 13125 void addAll(Collection<Node> collection) { |
| 13138 throw new UnsupportedError("Cannot add to immutable List."); | 13126 throw new UnsupportedError("Cannot add to immutable List."); |
| 13139 } | 13127 } |
| 13140 | 13128 |
| 13141 bool contains(Node element) => _Collections.contains(this, element); | 13129 bool contains(Node element) => _Collections.contains(this, element); |
| 13142 | 13130 |
| 13143 void forEach(void f(Node element)) => _Collections.forEach(this, f); | 13131 void forEach(void f(Node element)) => _Collections.forEach(this, f); |
| 13144 | 13132 |
| 13145 Collection mappedBy(f(Node element)) => _Collections.mappedBy(this, [], f); | 13133 Iterable mappedBy(f(Node element)) => new MappedIterable(this, f); |
| 13146 | 13134 |
| 13147 Collection<Node> where(bool f(Node element)) => | 13135 Collection<Node> where(bool f(Node element)) => |
| 13148 _Collections.where(this, <Node>[], f); | 13136 _Collections.where(this, <Node>[], f); |
| 13149 | 13137 |
| 13150 bool every(bool f(Node element)) => _Collections.every(this, f); | 13138 bool every(bool f(Node element)) => _Collections.every(this, f); |
| 13151 | 13139 |
| 13152 bool some(bool f(Node element)) => _Collections.some(this, f); | 13140 bool some(bool f(Node element)) => _Collections.some(this, f); |
| 13153 | 13141 |
| 13154 bool get isEmpty => this.length == 0; | 13142 bool get isEmpty => this.length == 0; |
| 13155 | 13143 |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13370 } | 13358 } |
| 13371 | 13359 |
| 13372 Iterator<Node> get iterator => _this.$dom_childNodes.iterator; | 13360 Iterator<Node> get iterator => _this.$dom_childNodes.iterator; |
| 13373 | 13361 |
| 13374 // TODO(jacobr): We can implement these methods much more efficiently by | 13362 // TODO(jacobr): We can implement these methods much more efficiently by |
| 13375 // looking up the nodeList only once instead of once per iteration. | 13363 // looking up the nodeList only once instead of once per iteration. |
| 13376 bool contains(Node element) => _Collections.contains(this, element); | 13364 bool contains(Node element) => _Collections.contains(this, element); |
| 13377 | 13365 |
| 13378 void forEach(void f(Node element)) => _Collections.forEach(this, f); | 13366 void forEach(void f(Node element)) => _Collections.forEach(this, f); |
| 13379 | 13367 |
| 13380 Collection mappedBy(f(Node element)) => _Collections.mappedBy(this, [], f); | 13368 Iterable mappedBy(f(Node element)) => new MappedIterable(this, f); |
| 13381 | 13369 |
| 13382 Collection<Node> where(bool f(Node element)) => | 13370 Collection<Node> where(bool f(Node element)) => |
| 13383 new _NodeListWrapper(_Collections.where(this, <Node>[], f)); | 13371 new _NodeListWrapper(_Collections.where(this, <Node>[], f)); |
| 13384 | 13372 |
| 13385 bool every(bool f(Node element)) => _Collections.every(this, f); | 13373 bool every(bool f(Node element)) => _Collections.every(this, f); |
| 13386 | 13374 |
| 13387 bool some(bool f(Node element)) => _Collections.some(this, f); | 13375 bool some(bool f(Node element)) => _Collections.some(this, f); |
| 13388 | 13376 |
| 13389 bool get isEmpty => this.length == 0; | 13377 bool get isEmpty => this.length == 0; |
| 13390 | 13378 |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13661 List _list; | 13649 List _list; |
| 13662 | 13650 |
| 13663 _ListWrapper(List this._list); | 13651 _ListWrapper(List this._list); |
| 13664 | 13652 |
| 13665 Iterator<E> get iterator => _list.iterator; | 13653 Iterator<E> get iterator => _list.iterator; |
| 13666 | 13654 |
| 13667 bool contains(E element) => _list.contains(element); | 13655 bool contains(E element) => _list.contains(element); |
| 13668 | 13656 |
| 13669 void forEach(void f(E element)) => _list.forEach(f); | 13657 void forEach(void f(E element)) => _list.forEach(f); |
| 13670 | 13658 |
| 13671 Collection mappedBy(f(E element)) => _list.mappedBy(f); | 13659 Iterable mappedBy(f(E element)) => new MappedIterable(this, f); |
| 13672 | 13660 |
| 13673 List<E> where(bool f(E element)) => _list.where(f); | 13661 List<E> where(bool f(E element)) => _list.where(f); |
| 13674 | 13662 |
| 13675 bool every(bool f(E element)) => _list.every(f); | 13663 bool every(bool f(E element)) => _list.every(f); |
| 13676 | 13664 |
| 13677 bool some(bool f(E element)) => _list.some(f); | 13665 bool some(bool f(E element)) => _list.some(f); |
| 13678 | 13666 |
| 13679 bool get isEmpty => _list.isEmpty; | 13667 bool get isEmpty => _list.isEmpty; |
| 13680 | 13668 |
| 13681 int get length => _list.length; | 13669 int get length => _list.length; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13778 } | 13766 } |
| 13779 | 13767 |
| 13780 void operator []=(int index, Node value) { | 13768 void operator []=(int index, Node value) { |
| 13781 _parent.$dom_replaceChild(value, this[index]); | 13769 _parent.$dom_replaceChild(value, this[index]); |
| 13782 } | 13770 } |
| 13783 | 13771 |
| 13784 bool contains(Node element) => _Collections.contains(this, element); | 13772 bool contains(Node element) => _Collections.contains(this, element); |
| 13785 | 13773 |
| 13786 void forEach(void f(Node element)) => _Collections.forEach(this, f); | 13774 void forEach(void f(Node element)) => _Collections.forEach(this, f); |
| 13787 | 13775 |
| 13788 Collection mappedBy(f(Node element)) => _Collections.mappedBy(this, [], f); | 13776 Iterable mappedBy(f(Node element)) => new MappedIterable(this, f); |
| 13789 | 13777 |
| 13790 Collection<Node> where(bool f(Node element)) => | 13778 Collection<Node> where(bool f(Node element)) => |
| 13791 new _NodeListWrapper(_Collections.where(this, <Node>[], f)); | 13779 new _NodeListWrapper(_Collections.where(this, <Node>[], f)); |
| 13792 | 13780 |
| 13793 bool every(bool f(Node element)) => _Collections.every(this, f); | 13781 bool every(bool f(Node element)) => _Collections.every(this, f); |
| 13794 | 13782 |
| 13795 bool some(bool f(Node element)) => _Collections.some(this, f); | 13783 bool some(bool f(Node element)) => _Collections.some(this, f); |
| 13796 | 13784 |
| 13797 bool get isEmpty => this.length == 0; | 13785 bool get isEmpty => this.length == 0; |
| 13798 | 13786 |
| (...skipping 1652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15451 } | 15439 } |
| 15452 | 15440 |
| 15453 void addAll(Collection<Map> collection) { | 15441 void addAll(Collection<Map> collection) { |
| 15454 throw new UnsupportedError("Cannot add to immutable List."); | 15442 throw new UnsupportedError("Cannot add to immutable List."); |
| 15455 } | 15443 } |
| 15456 | 15444 |
| 15457 bool contains(Map element) => _Collections.contains(this, element); | 15445 bool contains(Map element) => _Collections.contains(this, element); |
| 15458 | 15446 |
| 15459 void forEach(void f(Map element)) => _Collections.forEach(this, f); | 15447 void forEach(void f(Map element)) => _Collections.forEach(this, f); |
| 15460 | 15448 |
| 15461 Collection mappedBy(f(Map element)) => _Collections.mappedBy(this, [], f); | 15449 Iterable mappedBy(f(Map element)) => new MappedIterable(this, f); |
| 15462 | 15450 |
| 15463 Collection<Map> where(bool f(Map element)) => | 15451 Collection<Map> where(bool f(Map element)) => |
| 15464 _Collections.where(this, <Map>[], f); | 15452 _Collections.where(this, <Map>[], f); |
| 15465 | 15453 |
| 15466 bool every(bool f(Map element)) => _Collections.every(this, f); | 15454 bool every(bool f(Map element)) => _Collections.every(this, f); |
| 15467 | 15455 |
| 15468 bool some(bool f(Map element)) => _Collections.some(this, f); | 15456 bool some(bool f(Map element)) => _Collections.some(this, f); |
| 15469 | 15457 |
| 15470 bool get isEmpty => this.length == 0; | 15458 bool get isEmpty => this.length == 0; |
| 15471 | 15459 |
| (...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15965 } | 15953 } |
| 15966 | 15954 |
| 15967 void addAll(Collection<SourceBuffer> collection) { | 15955 void addAll(Collection<SourceBuffer> collection) { |
| 15968 throw new UnsupportedError("Cannot add to immutable List."); | 15956 throw new UnsupportedError("Cannot add to immutable List."); |
| 15969 } | 15957 } |
| 15970 | 15958 |
| 15971 bool contains(SourceBuffer element) => _Collections.contains(this, element); | 15959 bool contains(SourceBuffer element) => _Collections.contains(this, element); |
| 15972 | 15960 |
| 15973 void forEach(void f(SourceBuffer element)) => _Collections.forEach(this, f); | 15961 void forEach(void f(SourceBuffer element)) => _Collections.forEach(this, f); |
| 15974 | 15962 |
| 15975 Collection mappedBy(f(SourceBuffer element)) => _Collections.mappedBy(this, []
, f); | 15963 Iterable mappedBy(f(SourceBuffer element)) => new MappedIterable(this, f); |
| 15976 | 15964 |
| 15977 Collection<SourceBuffer> where(bool f(SourceBuffer element)) => | 15965 Collection<SourceBuffer> where(bool f(SourceBuffer element)) => |
| 15978 _Collections.where(this, <SourceBuffer>[], f); | 15966 _Collections.where(this, <SourceBuffer>[], f); |
| 15979 | 15967 |
| 15980 bool every(bool f(SourceBuffer element)) => _Collections.every(this, f); | 15968 bool every(bool f(SourceBuffer element)) => _Collections.every(this, f); |
| 15981 | 15969 |
| 15982 bool some(bool f(SourceBuffer element)) => _Collections.some(this, f); | 15970 bool some(bool f(SourceBuffer element)) => _Collections.some(this, f); |
| 15983 | 15971 |
| 15984 bool get isEmpty => this.length == 0; | 15972 bool get isEmpty => this.length == 0; |
| 15985 | 15973 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16118 } | 16106 } |
| 16119 | 16107 |
| 16120 void addAll(Collection<SpeechGrammar> collection) { | 16108 void addAll(Collection<SpeechGrammar> collection) { |
| 16121 throw new UnsupportedError("Cannot add to immutable List."); | 16109 throw new UnsupportedError("Cannot add to immutable List."); |
| 16122 } | 16110 } |
| 16123 | 16111 |
| 16124 bool contains(SpeechGrammar element) => _Collections.contains(this, element); | 16112 bool contains(SpeechGrammar element) => _Collections.contains(this, element); |
| 16125 | 16113 |
| 16126 void forEach(void f(SpeechGrammar element)) => _Collections.forEach(this, f); | 16114 void forEach(void f(SpeechGrammar element)) => _Collections.forEach(this, f); |
| 16127 | 16115 |
| 16128 Collection mappedBy(f(SpeechGrammar element)) => _Collections.mappedBy(this, [
], f); | 16116 Iterable mappedBy(f(SpeechGrammar element)) => new MappedIterable(this, f); |
| 16129 | 16117 |
| 16130 Collection<SpeechGrammar> where(bool f(SpeechGrammar element)) => | 16118 Collection<SpeechGrammar> where(bool f(SpeechGrammar element)) => |
| 16131 _Collections.where(this, <SpeechGrammar>[], f); | 16119 _Collections.where(this, <SpeechGrammar>[], f); |
| 16132 | 16120 |
| 16133 bool every(bool f(SpeechGrammar element)) => _Collections.every(this, f); | 16121 bool every(bool f(SpeechGrammar element)) => _Collections.every(this, f); |
| 16134 | 16122 |
| 16135 bool some(bool f(SpeechGrammar element)) => _Collections.some(this, f); | 16123 bool some(bool f(SpeechGrammar element)) => _Collections.some(this, f); |
| 16136 | 16124 |
| 16137 bool get isEmpty => this.length == 0; | 16125 bool get isEmpty => this.length == 0; |
| 16138 | 16126 |
| (...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17137 } | 17125 } |
| 17138 | 17126 |
| 17139 void addAll(Collection<TextTrackCue> collection) { | 17127 void addAll(Collection<TextTrackCue> collection) { |
| 17140 throw new UnsupportedError("Cannot add to immutable List."); | 17128 throw new UnsupportedError("Cannot add to immutable List."); |
| 17141 } | 17129 } |
| 17142 | 17130 |
| 17143 bool contains(TextTrackCue element) => _Collections.contains(this, element); | 17131 bool contains(TextTrackCue element) => _Collections.contains(this, element); |
| 17144 | 17132 |
| 17145 void forEach(void f(TextTrackCue element)) => _Collections.forEach(this, f); | 17133 void forEach(void f(TextTrackCue element)) => _Collections.forEach(this, f); |
| 17146 | 17134 |
| 17147 Collection mappedBy(f(TextTrackCue element)) => _Collections.mappedBy(this, []
, f); | 17135 Iterable mappedBy(f(TextTrackCue element)) => new MappedIterable(this, f); |
| 17148 | 17136 |
| 17149 Collection<TextTrackCue> where(bool f(TextTrackCue element)) => | 17137 Collection<TextTrackCue> where(bool f(TextTrackCue element)) => |
| 17150 _Collections.where(this, <TextTrackCue>[], f); | 17138 _Collections.where(this, <TextTrackCue>[], f); |
| 17151 | 17139 |
| 17152 bool every(bool f(TextTrackCue element)) => _Collections.every(this, f); | 17140 bool every(bool f(TextTrackCue element)) => _Collections.every(this, f); |
| 17153 | 17141 |
| 17154 bool some(bool f(TextTrackCue element)) => _Collections.some(this, f); | 17142 bool some(bool f(TextTrackCue element)) => _Collections.some(this, f); |
| 17155 | 17143 |
| 17156 bool get isEmpty => this.length == 0; | 17144 bool get isEmpty => this.length == 0; |
| 17157 | 17145 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17243 } | 17231 } |
| 17244 | 17232 |
| 17245 void addAll(Collection<TextTrack> collection) { | 17233 void addAll(Collection<TextTrack> collection) { |
| 17246 throw new UnsupportedError("Cannot add to immutable List."); | 17234 throw new UnsupportedError("Cannot add to immutable List."); |
| 17247 } | 17235 } |
| 17248 | 17236 |
| 17249 bool contains(TextTrack element) => _Collections.contains(this, element); | 17237 bool contains(TextTrack element) => _Collections.contains(this, element); |
| 17250 | 17238 |
| 17251 void forEach(void f(TextTrack element)) => _Collections.forEach(this, f); | 17239 void forEach(void f(TextTrack element)) => _Collections.forEach(this, f); |
| 17252 | 17240 |
| 17253 Collection mappedBy(f(TextTrack element)) => _Collections.mappedBy(this, [], f
); | 17241 Iterable mappedBy(f(TextTrack element)) => new MappedIterable(this, f); |
| 17254 | 17242 |
| 17255 Collection<TextTrack> where(bool f(TextTrack element)) => | 17243 Collection<TextTrack> where(bool f(TextTrack element)) => |
| 17256 _Collections.where(this, <TextTrack>[], f); | 17244 _Collections.where(this, <TextTrack>[], f); |
| 17257 | 17245 |
| 17258 bool every(bool f(TextTrack element)) => _Collections.every(this, f); | 17246 bool every(bool f(TextTrack element)) => _Collections.every(this, f); |
| 17259 | 17247 |
| 17260 bool some(bool f(TextTrack element)) => _Collections.some(this, f); | 17248 bool some(bool f(TextTrack element)) => _Collections.some(this, f); |
| 17261 | 17249 |
| 17262 bool get isEmpty => this.length == 0; | 17250 bool get isEmpty => this.length == 0; |
| 17263 | 17251 |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17467 } | 17455 } |
| 17468 | 17456 |
| 17469 void addAll(Collection<Touch> collection) { | 17457 void addAll(Collection<Touch> collection) { |
| 17470 throw new UnsupportedError("Cannot add to immutable List."); | 17458 throw new UnsupportedError("Cannot add to immutable List."); |
| 17471 } | 17459 } |
| 17472 | 17460 |
| 17473 bool contains(Touch element) => _Collections.contains(this, element); | 17461 bool contains(Touch element) => _Collections.contains(this, element); |
| 17474 | 17462 |
| 17475 void forEach(void f(Touch element)) => _Collections.forEach(this, f); | 17463 void forEach(void f(Touch element)) => _Collections.forEach(this, f); |
| 17476 | 17464 |
| 17477 Collection mappedBy(f(Touch element)) => _Collections.mappedBy(this, [], f); | 17465 Iterable mappedBy(f(Touch element)) => new MappedIterable(this, f); |
| 17478 | 17466 |
| 17479 Collection<Touch> where(bool f(Touch element)) => | 17467 Collection<Touch> where(bool f(Touch element)) => |
| 17480 _Collections.where(this, <Touch>[], f); | 17468 _Collections.where(this, <Touch>[], f); |
| 17481 | 17469 |
| 17482 bool every(bool f(Touch element)) => _Collections.every(this, f); | 17470 bool every(bool f(Touch element)) => _Collections.every(this, f); |
| 17483 | 17471 |
| 17484 bool some(bool f(Touch element)) => _Collections.some(this, f); | 17472 bool some(bool f(Touch element)) => _Collections.some(this, f); |
| 17485 | 17473 |
| 17486 bool get isEmpty => this.length == 0; | 17474 bool get isEmpty => this.length == 0; |
| 17487 | 17475 |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17741 } | 17729 } |
| 17742 | 17730 |
| 17743 void addAll(Collection<int> collection) { | 17731 void addAll(Collection<int> collection) { |
| 17744 throw new UnsupportedError("Cannot add to immutable List."); | 17732 throw new UnsupportedError("Cannot add to immutable List."); |
| 17745 } | 17733 } |
| 17746 | 17734 |
| 17747 bool contains(int element) => _Collections.contains(this, element); | 17735 bool contains(int element) => _Collections.contains(this, element); |
| 17748 | 17736 |
| 17749 void forEach(void f(int element)) => _Collections.forEach(this, f); | 17737 void forEach(void f(int element)) => _Collections.forEach(this, f); |
| 17750 | 17738 |
| 17751 Collection mappedBy(f(int element)) => _Collections.mappedBy(this, [], f); | 17739 Iterable mappedBy(f(int element)) => new MappedIterable(this, f); |
| 17752 | 17740 |
| 17753 Collection<int> where(bool f(int element)) => | 17741 Collection<int> where(bool f(int element)) => |
| 17754 _Collections.where(this, <int>[], f); | 17742 _Collections.where(this, <int>[], f); |
| 17755 | 17743 |
| 17756 bool every(bool f(int element)) => _Collections.every(this, f); | 17744 bool every(bool f(int element)) => _Collections.every(this, f); |
| 17757 | 17745 |
| 17758 bool some(bool f(int element)) => _Collections.some(this, f); | 17746 bool some(bool f(int element)) => _Collections.some(this, f); |
| 17759 | 17747 |
| 17760 bool get isEmpty => this.length == 0; | 17748 bool get isEmpty => this.length == 0; |
| 17761 | 17749 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17850 } | 17838 } |
| 17851 | 17839 |
| 17852 void addAll(Collection<int> collection) { | 17840 void addAll(Collection<int> collection) { |
| 17853 throw new UnsupportedError("Cannot add to immutable List."); | 17841 throw new UnsupportedError("Cannot add to immutable List."); |
| 17854 } | 17842 } |
| 17855 | 17843 |
| 17856 bool contains(int element) => _Collections.contains(this, element); | 17844 bool contains(int element) => _Collections.contains(this, element); |
| 17857 | 17845 |
| 17858 void forEach(void f(int element)) => _Collections.forEach(this, f); | 17846 void forEach(void f(int element)) => _Collections.forEach(this, f); |
| 17859 | 17847 |
| 17860 Collection mappedBy(f(int element)) => _Collections.mappedBy(this, [], f); | 17848 Iterable mappedBy(f(int element)) => new MappedIterable(this, f); |
| 17861 | 17849 |
| 17862 Collection<int> where(bool f(int element)) => | 17850 Collection<int> where(bool f(int element)) => |
| 17863 _Collections.where(this, <int>[], f); | 17851 _Collections.where(this, <int>[], f); |
| 17864 | 17852 |
| 17865 bool every(bool f(int element)) => _Collections.every(this, f); | 17853 bool every(bool f(int element)) => _Collections.every(this, f); |
| 17866 | 17854 |
| 17867 bool some(bool f(int element)) => _Collections.some(this, f); | 17855 bool some(bool f(int element)) => _Collections.some(this, f); |
| 17868 | 17856 |
| 17869 bool get isEmpty => this.length == 0; | 17857 bool get isEmpty => this.length == 0; |
| 17870 | 17858 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17959 } | 17947 } |
| 17960 | 17948 |
| 17961 void addAll(Collection<int> collection) { | 17949 void addAll(Collection<int> collection) { |
| 17962 throw new UnsupportedError("Cannot add to immutable List."); | 17950 throw new UnsupportedError("Cannot add to immutable List."); |
| 17963 } | 17951 } |
| 17964 | 17952 |
| 17965 bool contains(int element) => _Collections.contains(this, element); | 17953 bool contains(int element) => _Collections.contains(this, element); |
| 17966 | 17954 |
| 17967 void forEach(void f(int element)) => _Collections.forEach(this, f); | 17955 void forEach(void f(int element)) => _Collections.forEach(this, f); |
| 17968 | 17956 |
| 17969 Collection mappedBy(f(int element)) => _Collections.mappedBy(this, [], f); | 17957 Iterable mappedBy(f(int element)) => new MappedIterable(this, f); |
| 17970 | 17958 |
| 17971 Collection<int> where(bool f(int element)) => | 17959 Collection<int> where(bool f(int element)) => |
| 17972 _Collections.where(this, <int>[], f); | 17960 _Collections.where(this, <int>[], f); |
| 17973 | 17961 |
| 17974 bool every(bool f(int element)) => _Collections.every(this, f); | 17962 bool every(bool f(int element)) => _Collections.every(this, f); |
| 17975 | 17963 |
| 17976 bool some(bool f(int element)) => _Collections.some(this, f); | 17964 bool some(bool f(int element)) => _Collections.some(this, f); |
| 17977 | 17965 |
| 17978 bool get isEmpty => this.length == 0; | 17966 bool get isEmpty => this.length == 0; |
| 17979 | 17967 |
| (...skipping 2165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20145 } | 20133 } |
| 20146 | 20134 |
| 20147 void addAll(Collection<CSSRule> collection) { | 20135 void addAll(Collection<CSSRule> collection) { |
| 20148 throw new UnsupportedError("Cannot add to immutable List."); | 20136 throw new UnsupportedError("Cannot add to immutable List."); |
| 20149 } | 20137 } |
| 20150 | 20138 |
| 20151 bool contains(CSSRule element) => _Collections.contains(this, element); | 20139 bool contains(CSSRule element) => _Collections.contains(this, element); |
| 20152 | 20140 |
| 20153 void forEach(void f(CSSRule element)) => _Collections.forEach(this, f); | 20141 void forEach(void f(CSSRule element)) => _Collections.forEach(this, f); |
| 20154 | 20142 |
| 20155 Collection mappedBy(f(CSSRule element)) => _Collections.mappedBy(this, [], f); | 20143 Iterable mappedBy(f(CSSRule element)) => new MappedIterable(this, f); |
| 20156 | 20144 |
| 20157 Collection<CSSRule> where(bool f(CSSRule element)) => | 20145 Collection<CSSRule> where(bool f(CSSRule element)) => |
| 20158 _Collections.where(this, <CSSRule>[], f); | 20146 _Collections.where(this, <CSSRule>[], f); |
| 20159 | 20147 |
| 20160 bool every(bool f(CSSRule element)) => _Collections.every(this, f); | 20148 bool every(bool f(CSSRule element)) => _Collections.every(this, f); |
| 20161 | 20149 |
| 20162 bool some(bool f(CSSRule element)) => _Collections.some(this, f); | 20150 bool some(bool f(CSSRule element)) => _Collections.some(this, f); |
| 20163 | 20151 |
| 20164 bool get isEmpty => this.length == 0; | 20152 bool get isEmpty => this.length == 0; |
| 20165 | 20153 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20242 } | 20230 } |
| 20243 | 20231 |
| 20244 void addAll(Collection<CSSValue> collection) { | 20232 void addAll(Collection<CSSValue> collection) { |
| 20245 throw new UnsupportedError("Cannot add to immutable List."); | 20233 throw new UnsupportedError("Cannot add to immutable List."); |
| 20246 } | 20234 } |
| 20247 | 20235 |
| 20248 bool contains(CSSValue element) => _Collections.contains(this, element); | 20236 bool contains(CSSValue element) => _Collections.contains(this, element); |
| 20249 | 20237 |
| 20250 void forEach(void f(CSSValue element)) => _Collections.forEach(this, f); | 20238 void forEach(void f(CSSValue element)) => _Collections.forEach(this, f); |
| 20251 | 20239 |
| 20252 Collection mappedBy(f(CSSValue element)) => _Collections.mappedBy(this, [], f)
; | 20240 Iterable mappedBy(f(CSSValue element)) => new MappedIterable(this, f); |
| 20253 | 20241 |
| 20254 Collection<CSSValue> where(bool f(CSSValue element)) => | 20242 Collection<CSSValue> where(bool f(CSSValue element)) => |
| 20255 _Collections.where(this, <CSSValue>[], f); | 20243 _Collections.where(this, <CSSValue>[], f); |
| 20256 | 20244 |
| 20257 bool every(bool f(CSSValue element)) => _Collections.every(this, f); | 20245 bool every(bool f(CSSValue element)) => _Collections.every(this, f); |
| 20258 | 20246 |
| 20259 bool some(bool f(CSSValue element)) => _Collections.some(this, f); | 20247 bool some(bool f(CSSValue element)) => _Collections.some(this, f); |
| 20260 | 20248 |
| 20261 bool get isEmpty => this.length == 0; | 20249 bool get isEmpty => this.length == 0; |
| 20262 | 20250 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20339 } | 20327 } |
| 20340 | 20328 |
| 20341 void addAll(Collection<ClientRect> collection) { | 20329 void addAll(Collection<ClientRect> collection) { |
| 20342 throw new UnsupportedError("Cannot add to immutable List."); | 20330 throw new UnsupportedError("Cannot add to immutable List."); |
| 20343 } | 20331 } |
| 20344 | 20332 |
| 20345 bool contains(ClientRect element) => _Collections.contains(this, element); | 20333 bool contains(ClientRect element) => _Collections.contains(this, element); |
| 20346 | 20334 |
| 20347 void forEach(void f(ClientRect element)) => _Collections.forEach(this, f); | 20335 void forEach(void f(ClientRect element)) => _Collections.forEach(this, f); |
| 20348 | 20336 |
| 20349 Collection mappedBy(f(ClientRect element)) => _Collections.mappedBy(this, [],
f); | 20337 Iterable mappedBy(f(ClientRect element)) => new MappedIterable(this, f); |
| 20350 | 20338 |
| 20351 Collection<ClientRect> where(bool f(ClientRect element)) => | 20339 Collection<ClientRect> where(bool f(ClientRect element)) => |
| 20352 _Collections.where(this, <ClientRect>[], f); | 20340 _Collections.where(this, <ClientRect>[], f); |
| 20353 | 20341 |
| 20354 bool every(bool f(ClientRect element)) => _Collections.every(this, f); | 20342 bool every(bool f(ClientRect element)) => _Collections.every(this, f); |
| 20355 | 20343 |
| 20356 bool some(bool f(ClientRect element)) => _Collections.some(this, f); | 20344 bool some(bool f(ClientRect element)) => _Collections.some(this, f); |
| 20357 | 20345 |
| 20358 bool get isEmpty => this.length == 0; | 20346 bool get isEmpty => this.length == 0; |
| 20359 | 20347 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20445 } | 20433 } |
| 20446 | 20434 |
| 20447 void addAll(Collection<String> collection) { | 20435 void addAll(Collection<String> collection) { |
| 20448 throw new UnsupportedError("Cannot add to immutable List."); | 20436 throw new UnsupportedError("Cannot add to immutable List."); |
| 20449 } | 20437 } |
| 20450 | 20438 |
| 20451 // contains() defined by IDL. | 20439 // contains() defined by IDL. |
| 20452 | 20440 |
| 20453 void forEach(void f(String element)) => _Collections.forEach(this, f); | 20441 void forEach(void f(String element)) => _Collections.forEach(this, f); |
| 20454 | 20442 |
| 20455 Collection mappedBy(f(String element)) => _Collections.mappedBy(this, [], f); | 20443 Iterable mappedBy(f(String element)) => new MappedIterable(this, f); |
| 20456 | 20444 |
| 20457 Collection<String> where(bool f(String element)) => | 20445 Collection<String> where(bool f(String element)) => |
| 20458 _Collections.where(this, <String>[], f); | 20446 _Collections.where(this, <String>[], f); |
| 20459 | 20447 |
| 20460 bool every(bool f(String element)) => _Collections.every(this, f); | 20448 bool every(bool f(String element)) => _Collections.every(this, f); |
| 20461 | 20449 |
| 20462 bool some(bool f(String element)) => _Collections.some(this, f); | 20450 bool some(bool f(String element)) => _Collections.some(this, f); |
| 20463 | 20451 |
| 20464 bool get isEmpty => this.length == 0; | 20452 bool get isEmpty => this.length == 0; |
| 20465 | 20453 |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20867 } | 20855 } |
| 20868 | 20856 |
| 20869 void addAll(Collection<Entry> collection) { | 20857 void addAll(Collection<Entry> collection) { |
| 20870 throw new UnsupportedError("Cannot add to immutable List."); | 20858 throw new UnsupportedError("Cannot add to immutable List."); |
| 20871 } | 20859 } |
| 20872 | 20860 |
| 20873 bool contains(Entry element) => _Collections.contains(this, element); | 20861 bool contains(Entry element) => _Collections.contains(this, element); |
| 20874 | 20862 |
| 20875 void forEach(void f(Entry element)) => _Collections.forEach(this, f); | 20863 void forEach(void f(Entry element)) => _Collections.forEach(this, f); |
| 20876 | 20864 |
| 20877 Collection mappedBy(f(Entry element)) => _Collections.mappedBy(this, [], f); | 20865 Iterable mappedBy(f(Entry element)) => new MappedIterable(this, f); |
| 20878 | 20866 |
| 20879 Collection<Entry> where(bool f(Entry element)) => | 20867 Collection<Entry> where(bool f(Entry element)) => |
| 20880 _Collections.where(this, <Entry>[], f); | 20868 _Collections.where(this, <Entry>[], f); |
| 20881 | 20869 |
| 20882 bool every(bool f(Entry element)) => _Collections.every(this, f); | 20870 bool every(bool f(Entry element)) => _Collections.every(this, f); |
| 20883 | 20871 |
| 20884 bool some(bool f(Entry element)) => _Collections.some(this, f); | 20872 bool some(bool f(Entry element)) => _Collections.some(this, f); |
| 20885 | 20873 |
| 20886 bool get isEmpty => this.length == 0; | 20874 bool get isEmpty => this.length == 0; |
| 20887 | 20875 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20964 } | 20952 } |
| 20965 | 20953 |
| 20966 void addAll(Collection<EntrySync> collection) { | 20954 void addAll(Collection<EntrySync> collection) { |
| 20967 throw new UnsupportedError("Cannot add to immutable List."); | 20955 throw new UnsupportedError("Cannot add to immutable List."); |
| 20968 } | 20956 } |
| 20969 | 20957 |
| 20970 bool contains(EntrySync element) => _Collections.contains(this, element); | 20958 bool contains(EntrySync element) => _Collections.contains(this, element); |
| 20971 | 20959 |
| 20972 void forEach(void f(EntrySync element)) => _Collections.forEach(this, f); | 20960 void forEach(void f(EntrySync element)) => _Collections.forEach(this, f); |
| 20973 | 20961 |
| 20974 Collection mappedBy(f(EntrySync element)) => _Collections.mappedBy(this, [], f
); | 20962 Iterable mappedBy(f(EntrySync element)) => new MappedIterable(this, f); |
| 20975 | 20963 |
| 20976 Collection<EntrySync> where(bool f(EntrySync element)) => | 20964 Collection<EntrySync> where(bool f(EntrySync element)) => |
| 20977 _Collections.where(this, <EntrySync>[], f); | 20965 _Collections.where(this, <EntrySync>[], f); |
| 20978 | 20966 |
| 20979 bool every(bool f(EntrySync element)) => _Collections.every(this, f); | 20967 bool every(bool f(EntrySync element)) => _Collections.every(this, f); |
| 20980 | 20968 |
| 20981 bool some(bool f(EntrySync element)) => _Collections.some(this, f); | 20969 bool some(bool f(EntrySync element)) => _Collections.some(this, f); |
| 20982 | 20970 |
| 20983 bool get isEmpty => this.length == 0; | 20971 bool get isEmpty => this.length == 0; |
| 20984 | 20972 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21070 } | 21058 } |
| 21071 | 21059 |
| 21072 void addAll(Collection<File> collection) { | 21060 void addAll(Collection<File> collection) { |
| 21073 throw new UnsupportedError("Cannot add to immutable List."); | 21061 throw new UnsupportedError("Cannot add to immutable List."); |
| 21074 } | 21062 } |
| 21075 | 21063 |
| 21076 bool contains(File element) => _Collections.contains(this, element); | 21064 bool contains(File element) => _Collections.contains(this, element); |
| 21077 | 21065 |
| 21078 void forEach(void f(File element)) => _Collections.forEach(this, f); | 21066 void forEach(void f(File element)) => _Collections.forEach(this, f); |
| 21079 | 21067 |
| 21080 Collection mappedBy(f(File element)) => _Collections.mappedBy(this, [], f); | 21068 Iterable mappedBy(f(File element)) => new MappedIterable(this, f); |
| 21081 | 21069 |
| 21082 Collection<File> where(bool f(File element)) => | 21070 Collection<File> where(bool f(File element)) => |
| 21083 _Collections.where(this, <File>[], f); | 21071 _Collections.where(this, <File>[], f); |
| 21084 | 21072 |
| 21085 bool every(bool f(File element)) => _Collections.every(this, f); | 21073 bool every(bool f(File element)) => _Collections.every(this, f); |
| 21086 | 21074 |
| 21087 bool some(bool f(File element)) => _Collections.some(this, f); | 21075 bool some(bool f(File element)) => _Collections.some(this, f); |
| 21088 | 21076 |
| 21089 bool get isEmpty => this.length == 0; | 21077 bool get isEmpty => this.length == 0; |
| 21090 | 21078 |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21196 } | 21184 } |
| 21197 | 21185 |
| 21198 void addAll(Collection<Gamepad> collection) { | 21186 void addAll(Collection<Gamepad> collection) { |
| 21199 throw new UnsupportedError("Cannot add to immutable List."); | 21187 throw new UnsupportedError("Cannot add to immutable List."); |
| 21200 } | 21188 } |
| 21201 | 21189 |
| 21202 bool contains(Gamepad element) => _Collections.contains(this, element); | 21190 bool contains(Gamepad element) => _Collections.contains(this, element); |
| 21203 | 21191 |
| 21204 void forEach(void f(Gamepad element)) => _Collections.forEach(this, f); | 21192 void forEach(void f(Gamepad element)) => _Collections.forEach(this, f); |
| 21205 | 21193 |
| 21206 Collection mappedBy(f(Gamepad element)) => _Collections.mappedBy(this, [], f); | 21194 Iterable mappedBy(f(Gamepad element)) => new MappedIterable(this, f); |
| 21207 | 21195 |
| 21208 Collection<Gamepad> where(bool f(Gamepad element)) => | 21196 Collection<Gamepad> where(bool f(Gamepad element)) => |
| 21209 _Collections.where(this, <Gamepad>[], f); | 21197 _Collections.where(this, <Gamepad>[], f); |
| 21210 | 21198 |
| 21211 bool every(bool f(Gamepad element)) => _Collections.every(this, f); | 21199 bool every(bool f(Gamepad element)) => _Collections.every(this, f); |
| 21212 | 21200 |
| 21213 bool some(bool f(Gamepad element)) => _Collections.some(this, f); | 21201 bool some(bool f(Gamepad element)) => _Collections.some(this, f); |
| 21214 | 21202 |
| 21215 bool get isEmpty => this.length == 0; | 21203 bool get isEmpty => this.length == 0; |
| 21216 | 21204 |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21346 } | 21334 } |
| 21347 | 21335 |
| 21348 void addAll(Collection<MediaStream> collection) { | 21336 void addAll(Collection<MediaStream> collection) { |
| 21349 throw new UnsupportedError("Cannot add to immutable List."); | 21337 throw new UnsupportedError("Cannot add to immutable List."); |
| 21350 } | 21338 } |
| 21351 | 21339 |
| 21352 bool contains(MediaStream element) => _Collections.contains(this, element); | 21340 bool contains(MediaStream element) => _Collections.contains(this, element); |
| 21353 | 21341 |
| 21354 void forEach(void f(MediaStream element)) => _Collections.forEach(this, f); | 21342 void forEach(void f(MediaStream element)) => _Collections.forEach(this, f); |
| 21355 | 21343 |
| 21356 Collection mappedBy(f(MediaStream element)) => _Collections.mappedBy(this, [],
f); | 21344 Iterable mappedBy(f(MediaStream element)) => new MappedIterable(this, f); |
| 21357 | 21345 |
| 21358 Collection<MediaStream> where(bool f(MediaStream element)) => | 21346 Collection<MediaStream> where(bool f(MediaStream element)) => |
| 21359 _Collections.where(this, <MediaStream>[], f); | 21347 _Collections.where(this, <MediaStream>[], f); |
| 21360 | 21348 |
| 21361 bool every(bool f(MediaStream element)) => _Collections.every(this, f); | 21349 bool every(bool f(MediaStream element)) => _Collections.every(this, f); |
| 21362 | 21350 |
| 21363 bool some(bool f(MediaStream element)) => _Collections.some(this, f); | 21351 bool some(bool f(MediaStream element)) => _Collections.some(this, f); |
| 21364 | 21352 |
| 21365 bool get isEmpty => this.length == 0; | 21353 bool get isEmpty => this.length == 0; |
| 21366 | 21354 |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21606 } | 21594 } |
| 21607 | 21595 |
| 21608 void addAll(Collection<SpeechInputResult> collection) { | 21596 void addAll(Collection<SpeechInputResult> collection) { |
| 21609 throw new UnsupportedError("Cannot add to immutable List."); | 21597 throw new UnsupportedError("Cannot add to immutable List."); |
| 21610 } | 21598 } |
| 21611 | 21599 |
| 21612 bool contains(SpeechInputResult element) => _Collections.contains(this, elemen
t); | 21600 bool contains(SpeechInputResult element) => _Collections.contains(this, elemen
t); |
| 21613 | 21601 |
| 21614 void forEach(void f(SpeechInputResult element)) => _Collections.forEach(this,
f); | 21602 void forEach(void f(SpeechInputResult element)) => _Collections.forEach(this,
f); |
| 21615 | 21603 |
| 21616 Collection mappedBy(f(SpeechInputResult element)) => _Collections.mappedBy(thi
s, [], f); | 21604 Iterable mappedBy(f(SpeechInputResult element)) => new MappedIterable(this, f)
; |
| 21617 | 21605 |
| 21618 Collection<SpeechInputResult> where(bool f(SpeechInputResult element)) => | 21606 Collection<SpeechInputResult> where(bool f(SpeechInputResult element)) => |
| 21619 _Collections.where(this, <SpeechInputResult>[], f); | 21607 _Collections.where(this, <SpeechInputResult>[], f); |
| 21620 | 21608 |
| 21621 bool every(bool f(SpeechInputResult element)) => _Collections.every(this, f); | 21609 bool every(bool f(SpeechInputResult element)) => _Collections.every(this, f); |
| 21622 | 21610 |
| 21623 bool some(bool f(SpeechInputResult element)) => _Collections.some(this, f); | 21611 bool some(bool f(SpeechInputResult element)) => _Collections.some(this, f); |
| 21624 | 21612 |
| 21625 bool get isEmpty => this.length == 0; | 21613 bool get isEmpty => this.length == 0; |
| 21626 | 21614 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21712 } | 21700 } |
| 21713 | 21701 |
| 21714 void addAll(Collection<SpeechRecognitionResult> collection) { | 21702 void addAll(Collection<SpeechRecognitionResult> collection) { |
| 21715 throw new UnsupportedError("Cannot add to immutable List."); | 21703 throw new UnsupportedError("Cannot add to immutable List."); |
| 21716 } | 21704 } |
| 21717 | 21705 |
| 21718 bool contains(SpeechRecognitionResult element) => _Collections.contains(this,
element); | 21706 bool contains(SpeechRecognitionResult element) => _Collections.contains(this,
element); |
| 21719 | 21707 |
| 21720 void forEach(void f(SpeechRecognitionResult element)) => _Collections.forEach(
this, f); | 21708 void forEach(void f(SpeechRecognitionResult element)) => _Collections.forEach(
this, f); |
| 21721 | 21709 |
| 21722 Collection mappedBy(f(SpeechRecognitionResult element)) => _Collections.mapped
By(this, [], f); | 21710 Iterable mappedBy(f(SpeechRecognitionResult element)) => new MappedIterable(th
is, f); |
| 21723 | 21711 |
| 21724 Collection<SpeechRecognitionResult> where(bool f(SpeechRecognitionResult eleme
nt)) => | 21712 Collection<SpeechRecognitionResult> where(bool f(SpeechRecognitionResult eleme
nt)) => |
| 21725 _Collections.where(this, <SpeechRecognitionResult>[], f); | 21713 _Collections.where(this, <SpeechRecognitionResult>[], f); |
| 21726 | 21714 |
| 21727 bool every(bool f(SpeechRecognitionResult element)) => _Collections.every(this
, f); | 21715 bool every(bool f(SpeechRecognitionResult element)) => _Collections.every(this
, f); |
| 21728 | 21716 |
| 21729 bool some(bool f(SpeechRecognitionResult element)) => _Collections.some(this,
f); | 21717 bool some(bool f(SpeechRecognitionResult element)) => _Collections.some(this,
f); |
| 21730 | 21718 |
| 21731 bool get isEmpty => this.length == 0; | 21719 bool get isEmpty => this.length == 0; |
| 21732 | 21720 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21809 } | 21797 } |
| 21810 | 21798 |
| 21811 void addAll(Collection<StyleSheet> collection) { | 21799 void addAll(Collection<StyleSheet> collection) { |
| 21812 throw new UnsupportedError("Cannot add to immutable List."); | 21800 throw new UnsupportedError("Cannot add to immutable List."); |
| 21813 } | 21801 } |
| 21814 | 21802 |
| 21815 bool contains(StyleSheet element) => _Collections.contains(this, element); | 21803 bool contains(StyleSheet element) => _Collections.contains(this, element); |
| 21816 | 21804 |
| 21817 void forEach(void f(StyleSheet element)) => _Collections.forEach(this, f); | 21805 void forEach(void f(StyleSheet element)) => _Collections.forEach(this, f); |
| 21818 | 21806 |
| 21819 Collection mappedBy(f(StyleSheet element)) => _Collections.mappedBy(this, [],
f); | 21807 Iterable mappedBy(f(StyleSheet element)) => new MappedIterable(this, f); |
| 21820 | 21808 |
| 21821 Collection<StyleSheet> where(bool f(StyleSheet element)) => | 21809 Collection<StyleSheet> where(bool f(StyleSheet element)) => |
| 21822 _Collections.where(this, <StyleSheet>[], f); | 21810 _Collections.where(this, <StyleSheet>[], f); |
| 21823 | 21811 |
| 21824 bool every(bool f(StyleSheet element)) => _Collections.every(this, f); | 21812 bool every(bool f(StyleSheet element)) => _Collections.every(this, f); |
| 21825 | 21813 |
| 21826 bool some(bool f(StyleSheet element)) => _Collections.some(this, f); | 21814 bool some(bool f(StyleSheet element)) => _Collections.some(this, f); |
| 21827 | 21815 |
| 21828 bool get isEmpty => this.length == 0; | 21816 bool get isEmpty => this.length == 0; |
| 21829 | 21817 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21930 } | 21918 } |
| 21931 | 21919 |
| 21932 void addAll(Collection<Animation> collection) { | 21920 void addAll(Collection<Animation> collection) { |
| 21933 throw new UnsupportedError("Cannot add to immutable List."); | 21921 throw new UnsupportedError("Cannot add to immutable List."); |
| 21934 } | 21922 } |
| 21935 | 21923 |
| 21936 bool contains(Animation element) => _Collections.contains(this, element); | 21924 bool contains(Animation element) => _Collections.contains(this, element); |
| 21937 | 21925 |
| 21938 void forEach(void f(Animation element)) => _Collections.forEach(this, f); | 21926 void forEach(void f(Animation element)) => _Collections.forEach(this, f); |
| 21939 | 21927 |
| 21940 Collection mappedBy(f(Animation element)) => _Collections.mappedBy(this, [], f
); | 21928 Iterable mappedBy(f(Animation element)) => new MappedIterable(this, f); |
| 21941 | 21929 |
| 21942 Collection<Animation> where(bool f(Animation element)) => | 21930 Collection<Animation> where(bool f(Animation element)) => |
| 21943 _Collections.where(this, <Animation>[], f); | 21931 _Collections.where(this, <Animation>[], f); |
| 21944 | 21932 |
| 21945 bool every(bool f(Animation element)) => _Collections.every(this, f); | 21933 bool every(bool f(Animation element)) => _Collections.every(this, f); |
| 21946 | 21934 |
| 21947 bool some(bool f(Animation element)) => _Collections.some(this, f); | 21935 bool some(bool f(Animation element)) => _Collections.some(this, f); |
| 21948 | 21936 |
| 21949 bool get isEmpty => this.length == 0; | 21937 bool get isEmpty => this.length == 0; |
| 21950 | 21938 |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22090 | 22078 |
| 22091 // interface Iterable - BEGIN | 22079 // interface Iterable - BEGIN |
| 22092 Iterator<String> iterator() => readClasses().iterator(); | 22080 Iterator<String> iterator() => readClasses().iterator(); |
| 22093 // interface Iterable - END | 22081 // interface Iterable - END |
| 22094 | 22082 |
| 22095 // interface Collection - BEGIN | 22083 // interface Collection - BEGIN |
| 22096 void forEach(void f(String element)) { | 22084 void forEach(void f(String element)) { |
| 22097 readClasses().forEach(f); | 22085 readClasses().forEach(f); |
| 22098 } | 22086 } |
| 22099 | 22087 |
| 22100 Collection mappedBy(f(String element)) => readClasses().mappedBy(f); | 22088 Iterable mappedBy(f(String element)) => readClasses().mappedBy(f); |
| 22101 | 22089 |
| 22102 Collection<String> where(bool f(String element)) => readClasses().where(f); | 22090 Collection<String> where(bool f(String element)) => readClasses().where(f); |
| 22103 | 22091 |
| 22104 bool every(bool f(String element)) => readClasses().every(f); | 22092 bool every(bool f(String element)) => readClasses().every(f); |
| 22105 | 22093 |
| 22106 bool some(bool f(String element)) => readClasses().some(f); | 22094 bool some(bool f(String element)) => readClasses().some(f); |
| 22107 | 22095 |
| 22108 bool get isEmpty => readClasses().isEmpty; | 22096 bool get isEmpty => readClasses().isEmpty; |
| 22109 | 22097 |
| 22110 int get length =>readClasses().length; | 22098 int get length =>readClasses().length; |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22295 } | 22283 } |
| 22296 | 22284 |
| 22297 Element removeLast() { | 22285 Element removeLast() { |
| 22298 final result = this.last; | 22286 final result = this.last; |
| 22299 if (result != null) { | 22287 if (result != null) { |
| 22300 result.remove(); | 22288 result.remove(); |
| 22301 } | 22289 } |
| 22302 return result; | 22290 return result; |
| 22303 } | 22291 } |
| 22304 | 22292 |
| 22305 Collection mappedBy(f(Element element)) => _filtered.mappedBy(f); | 22293 Iterable mappedBy(f(Element element)) => _filtered.mappedBy(f); |
| 22306 Collection<Element> where(bool f(Element element)) => _filtered.where(f); | 22294 Collection<Element> where(bool f(Element element)) => _filtered.where(f); |
| 22307 bool every(bool f(Element element)) => _filtered.every(f); | 22295 bool every(bool f(Element element)) => _filtered.every(f); |
| 22308 bool some(bool f(Element element)) => _filtered.some(f); | 22296 bool some(bool f(Element element)) => _filtered.some(f); |
| 22309 bool get isEmpty => _filtered.isEmpty; | 22297 bool get isEmpty => _filtered.isEmpty; |
| 22310 int get length => _filtered.length; | 22298 int get length => _filtered.length; |
| 22311 Element operator [](int index) => _filtered[index]; | 22299 Element operator [](int index) => _filtered[index]; |
| 22312 Iterator<Element> iterator() => _filtered.iterator(); | 22300 Iterator<Element> iterator() => _filtered.iterator(); |
| 22313 List<Element> getRange(int start, int rangeLength) => | 22301 List<Element> getRange(int start, int rangeLength) => |
| 22314 _filtered.getRange(start, rangeLength); | 22302 _filtered.getRange(start, rangeLength); |
| 22315 int indexOf(Element element, [int start = 0]) => | 22303 int indexOf(Element element, [int start = 0]) => |
| (...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23130 } | 23118 } |
| 23131 return false; | 23119 return false; |
| 23132 } | 23120 } |
| 23133 | 23121 |
| 23134 static void forEach(Iterable<Object> iterable, void f(Object o)) { | 23122 static void forEach(Iterable<Object> iterable, void f(Object o)) { |
| 23135 for (final e in iterable) { | 23123 for (final e in iterable) { |
| 23136 f(e); | 23124 f(e); |
| 23137 } | 23125 } |
| 23138 } | 23126 } |
| 23139 | 23127 |
| 23140 static List mappedBy(Iterable<Object> source, | 23128 static Iterable mappedBy(Iterable<Object> source, f(o)) { |
| 23141 List<Object> destination, | 23129 return new MappedIterable(source, f); |
| 23142 f(o)) { | |
| 23143 for (final e in source) { | |
| 23144 destination.add(f(e)); | |
| 23145 } | |
| 23146 return destination; | |
| 23147 } | 23130 } |
| 23148 | 23131 |
| 23149 static bool some(Iterable<Object> iterable, bool f(Object o)) { | 23132 static bool some(Iterable<Object> iterable, bool f(Object o)) { |
| 23150 for (final e in iterable) { | 23133 for (final e in iterable) { |
| 23151 if (f(e)) return true; | 23134 if (f(e)) return true; |
| 23152 } | 23135 } |
| 23153 return false; | 23136 return false; |
| 23154 } | 23137 } |
| 23155 | 23138 |
| 23156 static bool every(Iterable<Object> iterable, bool f(Object o)) { | 23139 static bool every(Iterable<Object> iterable, bool f(Object o)) { |
| (...skipping 1696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 24853 if (length < 0) throw new ArgumentError('length'); | 24836 if (length < 0) throw new ArgumentError('length'); |
| 24854 if (start < 0) throw new RangeError.value(start); | 24837 if (start < 0) throw new RangeError.value(start); |
| 24855 int end = start + length; | 24838 int end = start + length; |
| 24856 if (end > a.length) throw new RangeError.value(end); | 24839 if (end > a.length) throw new RangeError.value(end); |
| 24857 for (int i = start; i < end; i++) { | 24840 for (int i = start; i < end; i++) { |
| 24858 accumulator.add(a[i]); | 24841 accumulator.add(a[i]); |
| 24859 } | 24842 } |
| 24860 return accumulator; | 24843 return accumulator; |
| 24861 } | 24844 } |
| 24862 } | 24845 } |
| OLD | NEW |