| 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' as 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 |
| (...skipping 5320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Iterable mappedBy(f(DOMMimeType element)) => new MappedIterable(this, f); | 5339 Iterable mappedBy(f(DOMMimeType element)) => new MappedIterable(this, f); |
| 5340 | 5340 |
| 5341 Collection<DOMMimeType> where(bool f(DOMMimeType element)) => | 5341 Iterable<DOMMimeType> where(bool f(DOMMimeType element)) => new FilteredIterab
le<DOMMimeType>(this, f); |
| 5342 _Collections.where(this, <DOMMimeType>[], f); | |
| 5343 | 5342 |
| 5344 bool every(bool f(DOMMimeType element)) => _Collections.every(this, f); | 5343 bool every(bool f(DOMMimeType element)) => _Collections.every(this, f); |
| 5345 | 5344 |
| 5346 bool some(bool f(DOMMimeType element)) => _Collections.some(this, f); | 5345 bool some(bool f(DOMMimeType element)) => _Collections.some(this, f); |
| 5347 | 5346 |
| 5348 bool get isEmpty => this.length == 0; | 5347 bool get isEmpty => this.length == 0; |
| 5349 | 5348 |
| 5350 // From List<DOMMimeType>: | 5349 // From List<DOMMimeType>: |
| 5351 | 5350 |
| 5352 void sort([Comparator<DOMMimeType> compare = Comparable.compare]) { | 5351 void sort([Comparator<DOMMimeType> compare = Comparable.compare]) { |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5470 void addAll(Collection<DOMPlugin> collection) { | 5469 void addAll(Collection<DOMPlugin> collection) { |
| 5471 throw new UnsupportedError("Cannot add to immutable List."); | 5470 throw new UnsupportedError("Cannot add to immutable List."); |
| 5472 } | 5471 } |
| 5473 | 5472 |
| 5474 bool contains(DOMPlugin element) => _Collections.contains(this, element); | 5473 bool contains(DOMPlugin element) => _Collections.contains(this, element); |
| 5475 | 5474 |
| 5476 void forEach(void f(DOMPlugin element)) => _Collections.forEach(this, f); | 5475 void forEach(void f(DOMPlugin element)) => _Collections.forEach(this, f); |
| 5477 | 5476 |
| 5478 Iterable mappedBy(f(DOMPlugin element)) => new MappedIterable(this, f); | 5477 Iterable mappedBy(f(DOMPlugin element)) => new MappedIterable(this, f); |
| 5479 | 5478 |
| 5480 Collection<DOMPlugin> where(bool f(DOMPlugin element)) => | 5479 Iterable<DOMPlugin> where(bool f(DOMPlugin element)) => new FilteredIterable<D
OMPlugin>(this, f); |
| 5481 _Collections.where(this, <DOMPlugin>[], f); | |
| 5482 | 5480 |
| 5483 bool every(bool f(DOMPlugin element)) => _Collections.every(this, f); | 5481 bool every(bool f(DOMPlugin element)) => _Collections.every(this, f); |
| 5484 | 5482 |
| 5485 bool some(bool f(DOMPlugin element)) => _Collections.some(this, f); | 5483 bool some(bool f(DOMPlugin element)) => _Collections.some(this, f); |
| 5486 | 5484 |
| 5487 bool get isEmpty => this.length == 0; | 5485 bool get isEmpty => this.length == 0; |
| 5488 | 5486 |
| 5489 // From List<DOMPlugin>: | 5487 // From List<DOMPlugin>: |
| 5490 | 5488 |
| 5491 void sort([Comparator<DOMPlugin> compare = Comparable.compare]) { | 5489 void sort([Comparator<DOMPlugin> compare = Comparable.compare]) { |
| (...skipping 1239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6731 } | 6729 } |
| 6732 | 6730 |
| 6733 bool contains(Element element) => _childElements.contains(element); | 6731 bool contains(Element element) => _childElements.contains(element); |
| 6734 | 6732 |
| 6735 void forEach(void f(Element element)) { | 6733 void forEach(void f(Element element)) { |
| 6736 for (Element element in _childElements) { | 6734 for (Element element in _childElements) { |
| 6737 f(element); | 6735 f(element); |
| 6738 } | 6736 } |
| 6739 } | 6737 } |
| 6740 | 6738 |
| 6741 List<Element> where(bool f(Element element)) { | 6739 Iterable<Element> where(bool f(Element element)) |
| 6742 final output = []; | 6740 => new FilteredIterable<Element>(this, f); |
| 6743 forEach((Element element) { | |
| 6744 if (f(element)) { | |
| 6745 output.add(element); | |
| 6746 } | |
| 6747 }); | |
| 6748 return new _FrozenElementList._wrap(output); | |
| 6749 } | |
| 6750 | 6741 |
| 6751 bool every(bool f(Element element)) { | 6742 bool every(bool f(Element element)) { |
| 6752 for (Element element in this) { | 6743 for (Element element in this) { |
| 6753 if (!f(element)) { | 6744 if (!f(element)) { |
| 6754 return false; | 6745 return false; |
| 6755 } | 6746 } |
| 6756 }; | 6747 }; |
| 6757 return true; | 6748 return true; |
| 6758 } | 6749 } |
| 6759 | 6750 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6872 } | 6863 } |
| 6873 | 6864 |
| 6874 void forEach(void f(Element element)) { | 6865 void forEach(void f(Element element)) { |
| 6875 for (Element el in this) { | 6866 for (Element el in this) { |
| 6876 f(el); | 6867 f(el); |
| 6877 } | 6868 } |
| 6878 } | 6869 } |
| 6879 | 6870 |
| 6880 Iterable mappedBy(f(Element element)) => new MappedIterable(this, f); | 6871 Iterable mappedBy(f(Element element)) => new MappedIterable(this, f); |
| 6881 | 6872 |
| 6882 List<Element> where(bool f(Element element)) { | 6873 Iterable<Element> where(bool f(Element element)) |
| 6883 final out = []; | 6874 => new FilteredIterable<Element>(this, f); |
| 6884 for (Element el in this) { | |
| 6885 if (f(el)) out.add(el); | |
| 6886 } | |
| 6887 return out; | |
| 6888 } | |
| 6889 | 6875 |
| 6890 bool every(bool f(Element element)) { | 6876 bool every(bool f(Element element)) { |
| 6891 for(Element element in this) { | 6877 for(Element element in this) { |
| 6892 if (!f(element)) { | 6878 if (!f(element)) { |
| 6893 return false; | 6879 return false; |
| 6894 } | 6880 } |
| 6895 }; | 6881 }; |
| 6896 return true; | 6882 return true; |
| 6897 } | 6883 } |
| 6898 | 6884 |
| (...skipping 1712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8611 void addAll(Collection<num> collection) { | 8597 void addAll(Collection<num> collection) { |
| 8612 throw new UnsupportedError("Cannot add to immutable List."); | 8598 throw new UnsupportedError("Cannot add to immutable List."); |
| 8613 } | 8599 } |
| 8614 | 8600 |
| 8615 bool contains(num element) => _Collections.contains(this, element); | 8601 bool contains(num element) => _Collections.contains(this, element); |
| 8616 | 8602 |
| 8617 void forEach(void f(num element)) => _Collections.forEach(this, f); | 8603 void forEach(void f(num element)) => _Collections.forEach(this, f); |
| 8618 | 8604 |
| 8619 Iterable mappedBy(f(num element)) => new MappedIterable(this, f); | 8605 Iterable mappedBy(f(num element)) => new MappedIterable(this, f); |
| 8620 | 8606 |
| 8621 Collection<num> where(bool f(num element)) => | 8607 Iterable<num> where(bool f(num element)) => new FilteredIterable<num>(this, f)
; |
| 8622 _Collections.where(this, <num>[], f); | |
| 8623 | 8608 |
| 8624 bool every(bool f(num element)) => _Collections.every(this, f); | 8609 bool every(bool f(num element)) => _Collections.every(this, f); |
| 8625 | 8610 |
| 8626 bool some(bool f(num element)) => _Collections.some(this, f); | 8611 bool some(bool f(num element)) => _Collections.some(this, f); |
| 8627 | 8612 |
| 8628 bool get isEmpty => this.length == 0; | 8613 bool get isEmpty => this.length == 0; |
| 8629 | 8614 |
| 8630 // From List<num>: | 8615 // From List<num>: |
| 8631 | 8616 |
| 8632 void sort([Comparator<num> compare = Comparable.compare]) { | 8617 void sort([Comparator<num> compare = Comparable.compare]) { |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8720 void addAll(Collection<num> collection) { | 8705 void addAll(Collection<num> collection) { |
| 8721 throw new UnsupportedError("Cannot add to immutable List."); | 8706 throw new UnsupportedError("Cannot add to immutable List."); |
| 8722 } | 8707 } |
| 8723 | 8708 |
| 8724 bool contains(num element) => _Collections.contains(this, element); | 8709 bool contains(num element) => _Collections.contains(this, element); |
| 8725 | 8710 |
| 8726 void forEach(void f(num element)) => _Collections.forEach(this, f); | 8711 void forEach(void f(num element)) => _Collections.forEach(this, f); |
| 8727 | 8712 |
| 8728 Iterable mappedBy(f(num element)) => new MappedIterable(this, f); | 8713 Iterable mappedBy(f(num element)) => new MappedIterable(this, f); |
| 8729 | 8714 |
| 8730 Collection<num> where(bool f(num element)) => | 8715 Iterable<num> where(bool f(num element)) => new FilteredIterable<num>(this, f)
; |
| 8731 _Collections.where(this, <num>[], f); | |
| 8732 | 8716 |
| 8733 bool every(bool f(num element)) => _Collections.every(this, f); | 8717 bool every(bool f(num element)) => _Collections.every(this, f); |
| 8734 | 8718 |
| 8735 bool some(bool f(num element)) => _Collections.some(this, f); | 8719 bool some(bool f(num element)) => _Collections.some(this, f); |
| 8736 | 8720 |
| 8737 bool get isEmpty => this.length == 0; | 8721 bool get isEmpty => this.length == 0; |
| 8738 | 8722 |
| 8739 // From List<num>: | 8723 // From List<num>: |
| 8740 | 8724 |
| 8741 void sort([Comparator<num> compare = Comparable.compare]) { | 8725 void sort([Comparator<num> compare = Comparable.compare]) { |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9086 void addAll(Collection<Node> collection) { | 9070 void addAll(Collection<Node> collection) { |
| 9087 throw new UnsupportedError("Cannot add to immutable List."); | 9071 throw new UnsupportedError("Cannot add to immutable List."); |
| 9088 } | 9072 } |
| 9089 | 9073 |
| 9090 bool contains(Node element) => _Collections.contains(this, element); | 9074 bool contains(Node element) => _Collections.contains(this, element); |
| 9091 | 9075 |
| 9092 void forEach(void f(Node element)) => _Collections.forEach(this, f); | 9076 void forEach(void f(Node element)) => _Collections.forEach(this, f); |
| 9093 | 9077 |
| 9094 Iterable mappedBy(f(Node element)) => new MappedIterable(this, f); | 9078 Iterable mappedBy(f(Node element)) => new MappedIterable(this, f); |
| 9095 | 9079 |
| 9096 Collection<Node> where(bool f(Node element)) => | 9080 Iterable<Node> where(bool f(Node element)) => new FilteredIterable<Node>(this,
f); |
| 9097 _Collections.where(this, <Node>[], f); | |
| 9098 | 9081 |
| 9099 bool every(bool f(Node element)) => _Collections.every(this, f); | 9082 bool every(bool f(Node element)) => _Collections.every(this, f); |
| 9100 | 9083 |
| 9101 bool some(bool f(Node element)) => _Collections.some(this, f); | 9084 bool some(bool f(Node element)) => _Collections.some(this, f); |
| 9102 | 9085 |
| 9103 bool get isEmpty => this.length == 0; | 9086 bool get isEmpty => this.length == 0; |
| 9104 | 9087 |
| 9105 // From List<Node>: | 9088 // From List<Node>: |
| 9106 | 9089 |
| 9107 void sort([Comparator<Node> compare = Comparable.compare]) { | 9090 void sort([Comparator<Node> compare = Comparable.compare]) { |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9189 void addAll(Collection<Node> collection) { | 9172 void addAll(Collection<Node> collection) { |
| 9190 throw new UnsupportedError("Cannot add to immutable List."); | 9173 throw new UnsupportedError("Cannot add to immutable List."); |
| 9191 } | 9174 } |
| 9192 | 9175 |
| 9193 bool contains(Node element) => _Collections.contains(this, element); | 9176 bool contains(Node element) => _Collections.contains(this, element); |
| 9194 | 9177 |
| 9195 void forEach(void f(Node element)) => _Collections.forEach(this, f); | 9178 void forEach(void f(Node element)) => _Collections.forEach(this, f); |
| 9196 | 9179 |
| 9197 Iterable mappedBy(f(Node element)) => new MappedIterable(this, f); | 9180 Iterable mappedBy(f(Node element)) => new MappedIterable(this, f); |
| 9198 | 9181 |
| 9199 Collection<Node> where(bool f(Node element)) => | 9182 Iterable<Node> where(bool f(Node element)) => new FilteredIterable<Node>(this,
f); |
| 9200 _Collections.where(this, <Node>[], f); | |
| 9201 | 9183 |
| 9202 bool every(bool f(Node element)) => _Collections.every(this, f); | 9184 bool every(bool f(Node element)) => _Collections.every(this, f); |
| 9203 | 9185 |
| 9204 bool some(bool f(Node element)) => _Collections.some(this, f); | 9186 bool some(bool f(Node element)) => _Collections.some(this, f); |
| 9205 | 9187 |
| 9206 bool get isEmpty => this.length == 0; | 9188 bool get isEmpty => this.length == 0; |
| 9207 | 9189 |
| 9208 // From List<Node>: | 9190 // From List<Node>: |
| 9209 | 9191 |
| 9210 void sort([Comparator<Node> compare = Comparable.compare]) { | 9192 void sort([Comparator<Node> compare = Comparable.compare]) { |
| (...skipping 1546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10757 void addAll(Collection<int> collection) { | 10739 void addAll(Collection<int> collection) { |
| 10758 throw new UnsupportedError("Cannot add to immutable List."); | 10740 throw new UnsupportedError("Cannot add to immutable List."); |
| 10759 } | 10741 } |
| 10760 | 10742 |
| 10761 bool contains(int element) => _Collections.contains(this, element); | 10743 bool contains(int element) => _Collections.contains(this, element); |
| 10762 | 10744 |
| 10763 void forEach(void f(int element)) => _Collections.forEach(this, f); | 10745 void forEach(void f(int element)) => _Collections.forEach(this, f); |
| 10764 | 10746 |
| 10765 Iterable mappedBy(f(int element)) => new MappedIterable(this, f); | 10747 Iterable mappedBy(f(int element)) => new MappedIterable(this, f); |
| 10766 | 10748 |
| 10767 Collection<int> where(bool f(int element)) => | 10749 Iterable<int> where(bool f(int element)) => new FilteredIterable<int>(this, f)
; |
| 10768 _Collections.where(this, <int>[], f); | |
| 10769 | 10750 |
| 10770 bool every(bool f(int element)) => _Collections.every(this, f); | 10751 bool every(bool f(int element)) => _Collections.every(this, f); |
| 10771 | 10752 |
| 10772 bool some(bool f(int element)) => _Collections.some(this, f); | 10753 bool some(bool f(int element)) => _Collections.some(this, f); |
| 10773 | 10754 |
| 10774 bool get isEmpty => this.length == 0; | 10755 bool get isEmpty => this.length == 0; |
| 10775 | 10756 |
| 10776 // From List<int>: | 10757 // From List<int>: |
| 10777 | 10758 |
| 10778 void sort([Comparator<int> compare = Comparable.compare]) { | 10759 void sort([Comparator<int> compare = Comparable.compare]) { |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10866 void addAll(Collection<int> collection) { | 10847 void addAll(Collection<int> collection) { |
| 10867 throw new UnsupportedError("Cannot add to immutable List."); | 10848 throw new UnsupportedError("Cannot add to immutable List."); |
| 10868 } | 10849 } |
| 10869 | 10850 |
| 10870 bool contains(int element) => _Collections.contains(this, element); | 10851 bool contains(int element) => _Collections.contains(this, element); |
| 10871 | 10852 |
| 10872 void forEach(void f(int element)) => _Collections.forEach(this, f); | 10853 void forEach(void f(int element)) => _Collections.forEach(this, f); |
| 10873 | 10854 |
| 10874 Iterable mappedBy(f(int element)) => new MappedIterable(this, f); | 10855 Iterable mappedBy(f(int element)) => new MappedIterable(this, f); |
| 10875 | 10856 |
| 10876 Collection<int> where(bool f(int element)) => | 10857 Iterable<int> where(bool f(int element)) => new FilteredIterable<int>(this, f)
; |
| 10877 _Collections.where(this, <int>[], f); | |
| 10878 | 10858 |
| 10879 bool every(bool f(int element)) => _Collections.every(this, f); | 10859 bool every(bool f(int element)) => _Collections.every(this, f); |
| 10880 | 10860 |
| 10881 bool some(bool f(int element)) => _Collections.some(this, f); | 10861 bool some(bool f(int element)) => _Collections.some(this, f); |
| 10882 | 10862 |
| 10883 bool get isEmpty => this.length == 0; | 10863 bool get isEmpty => this.length == 0; |
| 10884 | 10864 |
| 10885 // From List<int>: | 10865 // From List<int>: |
| 10886 | 10866 |
| 10887 void sort([Comparator<int> compare = Comparable.compare]) { | 10867 void sort([Comparator<int> compare = Comparable.compare]) { |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10975 void addAll(Collection<int> collection) { | 10955 void addAll(Collection<int> collection) { |
| 10976 throw new UnsupportedError("Cannot add to immutable List."); | 10956 throw new UnsupportedError("Cannot add to immutable List."); |
| 10977 } | 10957 } |
| 10978 | 10958 |
| 10979 bool contains(int element) => _Collections.contains(this, element); | 10959 bool contains(int element) => _Collections.contains(this, element); |
| 10980 | 10960 |
| 10981 void forEach(void f(int element)) => _Collections.forEach(this, f); | 10961 void forEach(void f(int element)) => _Collections.forEach(this, f); |
| 10982 | 10962 |
| 10983 Iterable mappedBy(f(int element)) => new MappedIterable(this, f); | 10963 Iterable mappedBy(f(int element)) => new MappedIterable(this, f); |
| 10984 | 10964 |
| 10985 Collection<int> where(bool f(int element)) => | 10965 Iterable<int> where(bool f(int element)) => new FilteredIterable<int>(this, f)
; |
| 10986 _Collections.where(this, <int>[], f); | |
| 10987 | 10966 |
| 10988 bool every(bool f(int element)) => _Collections.every(this, f); | 10967 bool every(bool f(int element)) => _Collections.every(this, f); |
| 10989 | 10968 |
| 10990 bool some(bool f(int element)) => _Collections.some(this, f); | 10969 bool some(bool f(int element)) => _Collections.some(this, f); |
| 10991 | 10970 |
| 10992 bool get isEmpty => this.length == 0; | 10971 bool get isEmpty => this.length == 0; |
| 10993 | 10972 |
| 10994 // From List<int>: | 10973 // From List<int>: |
| 10995 | 10974 |
| 10996 void sort([Comparator<int> compare = Comparable.compare]) { | 10975 void sort([Comparator<int> compare = Comparable.compare]) { |
| (...skipping 2128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13125 void addAll(Collection<Node> collection) { | 13104 void addAll(Collection<Node> collection) { |
| 13126 throw new UnsupportedError("Cannot add to immutable List."); | 13105 throw new UnsupportedError("Cannot add to immutable List."); |
| 13127 } | 13106 } |
| 13128 | 13107 |
| 13129 bool contains(Node element) => _Collections.contains(this, element); | 13108 bool contains(Node element) => _Collections.contains(this, element); |
| 13130 | 13109 |
| 13131 void forEach(void f(Node element)) => _Collections.forEach(this, f); | 13110 void forEach(void f(Node element)) => _Collections.forEach(this, f); |
| 13132 | 13111 |
| 13133 Iterable mappedBy(f(Node element)) => new MappedIterable(this, f); | 13112 Iterable mappedBy(f(Node element)) => new MappedIterable(this, f); |
| 13134 | 13113 |
| 13135 Collection<Node> where(bool f(Node element)) => | 13114 Iterable<Node> where(bool f(Node element)) => new FilteredIterable<Node>(this,
f); |
| 13136 _Collections.where(this, <Node>[], f); | |
| 13137 | 13115 |
| 13138 bool every(bool f(Node element)) => _Collections.every(this, f); | 13116 bool every(bool f(Node element)) => _Collections.every(this, f); |
| 13139 | 13117 |
| 13140 bool some(bool f(Node element)) => _Collections.some(this, f); | 13118 bool some(bool f(Node element)) => _Collections.some(this, f); |
| 13141 | 13119 |
| 13142 bool get isEmpty => this.length == 0; | 13120 bool get isEmpty => this.length == 0; |
| 13143 | 13121 |
| 13144 // From List<Node>: | 13122 // From List<Node>: |
| 13145 | 13123 |
| 13146 void sort([Comparator<Node> compare = Comparable.compare]) { | 13124 void sort([Comparator<Node> compare = Comparable.compare]) { |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13360 Iterator<Node> get iterator => _this.$dom_childNodes.iterator; | 13338 Iterator<Node> get iterator => _this.$dom_childNodes.iterator; |
| 13361 | 13339 |
| 13362 // TODO(jacobr): We can implement these methods much more efficiently by | 13340 // TODO(jacobr): We can implement these methods much more efficiently by |
| 13363 // looking up the nodeList only once instead of once per iteration. | 13341 // looking up the nodeList only once instead of once per iteration. |
| 13364 bool contains(Node element) => _Collections.contains(this, element); | 13342 bool contains(Node element) => _Collections.contains(this, element); |
| 13365 | 13343 |
| 13366 void forEach(void f(Node element)) => _Collections.forEach(this, f); | 13344 void forEach(void f(Node element)) => _Collections.forEach(this, f); |
| 13367 | 13345 |
| 13368 Iterable mappedBy(f(Node element)) => new MappedIterable(this, f); | 13346 Iterable mappedBy(f(Node element)) => new MappedIterable(this, f); |
| 13369 | 13347 |
| 13370 Collection<Node> where(bool f(Node element)) => | 13348 Iterable<Node> where(bool f(Node element)) => |
| 13371 new _NodeListWrapper(_Collections.where(this, <Node>[], f)); | 13349 new FilteredIterable<Node>(this, f); |
| 13372 | 13350 |
| 13373 bool every(bool f(Node element)) => _Collections.every(this, f); | 13351 bool every(bool f(Node element)) => _Collections.every(this, f); |
| 13374 | 13352 |
| 13375 bool some(bool f(Node element)) => _Collections.some(this, f); | 13353 bool some(bool f(Node element)) => _Collections.some(this, f); |
| 13376 | 13354 |
| 13377 bool get isEmpty => this.length == 0; | 13355 bool get isEmpty => this.length == 0; |
| 13378 | 13356 |
| 13379 // From List<Node>: | 13357 // From List<Node>: |
| 13380 | 13358 |
| 13381 // TODO(jacobr): this could be implemented for child node lists. | 13359 // TODO(jacobr): this could be implemented for child node lists. |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13651 _ListWrapper(List this._list); | 13629 _ListWrapper(List this._list); |
| 13652 | 13630 |
| 13653 Iterator<E> get iterator => _list.iterator; | 13631 Iterator<E> get iterator => _list.iterator; |
| 13654 | 13632 |
| 13655 bool contains(E element) => _list.contains(element); | 13633 bool contains(E element) => _list.contains(element); |
| 13656 | 13634 |
| 13657 void forEach(void f(E element)) => _list.forEach(f); | 13635 void forEach(void f(E element)) => _list.forEach(f); |
| 13658 | 13636 |
| 13659 Iterable mappedBy(f(E element)) => new MappedIterable(this, f); | 13637 Iterable mappedBy(f(E element)) => new MappedIterable(this, f); |
| 13660 | 13638 |
| 13661 List<E> where(bool f(E element)) => _list.where(f); | 13639 Iterable<E> where(bool f(E element)) => _list.where(f); |
| 13662 | 13640 |
| 13663 bool every(bool f(E element)) => _list.every(f); | 13641 bool every(bool f(E element)) => _list.every(f); |
| 13664 | 13642 |
| 13665 bool some(bool f(E element)) => _list.some(f); | 13643 bool some(bool f(E element)) => _list.some(f); |
| 13666 | 13644 |
| 13667 bool get isEmpty => _list.isEmpty; | 13645 bool get isEmpty => _list.isEmpty; |
| 13668 | 13646 |
| 13669 int get length => _list.length; | 13647 int get length => _list.length; |
| 13670 | 13648 |
| 13671 E operator [](int index) => _list[index]; | 13649 E operator [](int index) => _list[index]; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13708 E get first => _list[0]; | 13686 E get first => _list[0]; |
| 13709 } | 13687 } |
| 13710 | 13688 |
| 13711 /** | 13689 /** |
| 13712 * This class is used to insure the results of list operations are NodeLists | 13690 * This class is used to insure the results of list operations are NodeLists |
| 13713 * instead of lists. | 13691 * instead of lists. |
| 13714 */ | 13692 */ |
| 13715 class _NodeListWrapper extends _ListWrapper<Node> implements List { | 13693 class _NodeListWrapper extends _ListWrapper<Node> implements List { |
| 13716 _NodeListWrapper(List list) : super(list); | 13694 _NodeListWrapper(List list) : super(list); |
| 13717 | 13695 |
| 13718 List<Node> where(bool f(Node element)) => | 13696 Iterable<Node> where(bool f(Node element)) => new FilteredIterable(this, f); |
| 13719 new _NodeListWrapper(_list.where(f)); | |
| 13720 | 13697 |
| 13721 List<Node> getRange(int start, int rangeLength) => | 13698 List<Node> getRange(int start, int rangeLength) => |
| 13722 new _NodeListWrapper(_list.getRange(start, rangeLength)); | 13699 new _NodeListWrapper(_list.getRange(start, rangeLength)); |
| 13723 } | 13700 } |
| 13724 | 13701 |
| 13725 class NodeList implements JavaScriptIndexingBehavior, List<Node> native "*NodeLi
st" { | 13702 class NodeList implements JavaScriptIndexingBehavior, List<Node> native "*NodeLi
st" { |
| 13726 Node _parent; | 13703 Node _parent; |
| 13727 | 13704 |
| 13728 // -- start List<Node> mixins. | 13705 // -- start List<Node> mixins. |
| 13729 // Node is the element type. | 13706 // Node is the element type. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13768 void operator []=(int index, Node value) { | 13745 void operator []=(int index, Node value) { |
| 13769 _parent.$dom_replaceChild(value, this[index]); | 13746 _parent.$dom_replaceChild(value, this[index]); |
| 13770 } | 13747 } |
| 13771 | 13748 |
| 13772 bool contains(Node element) => _Collections.contains(this, element); | 13749 bool contains(Node element) => _Collections.contains(this, element); |
| 13773 | 13750 |
| 13774 void forEach(void f(Node element)) => _Collections.forEach(this, f); | 13751 void forEach(void f(Node element)) => _Collections.forEach(this, f); |
| 13775 | 13752 |
| 13776 Iterable mappedBy(f(Node element)) => new MappedIterable(this, f); | 13753 Iterable mappedBy(f(Node element)) => new MappedIterable(this, f); |
| 13777 | 13754 |
| 13778 Collection<Node> where(bool f(Node element)) => | 13755 Iterable<Node> where(bool f(Node element)) => new FilteredIterable(this, f); |
| 13779 new _NodeListWrapper(_Collections.where(this, <Node>[], f)); | |
| 13780 | 13756 |
| 13781 bool every(bool f(Node element)) => _Collections.every(this, f); | 13757 bool every(bool f(Node element)) => _Collections.every(this, f); |
| 13782 | 13758 |
| 13783 bool some(bool f(Node element)) => _Collections.some(this, f); | 13759 bool some(bool f(Node element)) => _Collections.some(this, f); |
| 13784 | 13760 |
| 13785 bool get isEmpty => this.length == 0; | 13761 bool get isEmpty => this.length == 0; |
| 13786 | 13762 |
| 13787 // From List<Node>: | 13763 // From List<Node>: |
| 13788 | 13764 |
| 13789 void sort([Comparator<Node> compare = Comparable.compare]) { | 13765 void sort([Comparator<Node> compare = Comparable.compare]) { |
| (...skipping 1651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15441 void addAll(Collection<Map> collection) { | 15417 void addAll(Collection<Map> collection) { |
| 15442 throw new UnsupportedError("Cannot add to immutable List."); | 15418 throw new UnsupportedError("Cannot add to immutable List."); |
| 15443 } | 15419 } |
| 15444 | 15420 |
| 15445 bool contains(Map element) => _Collections.contains(this, element); | 15421 bool contains(Map element) => _Collections.contains(this, element); |
| 15446 | 15422 |
| 15447 void forEach(void f(Map element)) => _Collections.forEach(this, f); | 15423 void forEach(void f(Map element)) => _Collections.forEach(this, f); |
| 15448 | 15424 |
| 15449 Iterable mappedBy(f(Map element)) => new MappedIterable(this, f); | 15425 Iterable mappedBy(f(Map element)) => new MappedIterable(this, f); |
| 15450 | 15426 |
| 15451 Collection<Map> where(bool f(Map element)) => | 15427 Iterable<Map> where(bool f(Map element)) => new FilteredIterable<Map>(this, f)
; |
| 15452 _Collections.where(this, <Map>[], f); | |
| 15453 | 15428 |
| 15454 bool every(bool f(Map element)) => _Collections.every(this, f); | 15429 bool every(bool f(Map element)) => _Collections.every(this, f); |
| 15455 | 15430 |
| 15456 bool some(bool f(Map element)) => _Collections.some(this, f); | 15431 bool some(bool f(Map element)) => _Collections.some(this, f); |
| 15457 | 15432 |
| 15458 bool get isEmpty => this.length == 0; | 15433 bool get isEmpty => this.length == 0; |
| 15459 | 15434 |
| 15460 // From List<Map>: | 15435 // From List<Map>: |
| 15461 | 15436 |
| 15462 void sort([Comparator<Map> compare = Comparable.compare]) { | 15437 void sort([Comparator<Map> compare = Comparable.compare]) { |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15766 /** @domName HTMLSelectElement.namedItem */ | 15741 /** @domName HTMLSelectElement.namedItem */ |
| 15767 Node namedItem(String name) native; | 15742 Node namedItem(String name) native; |
| 15768 | 15743 |
| 15769 /** @domName HTMLSelectElement.setCustomValidity */ | 15744 /** @domName HTMLSelectElement.setCustomValidity */ |
| 15770 void setCustomValidity(String error) native; | 15745 void setCustomValidity(String error) native; |
| 15771 | 15746 |
| 15772 | 15747 |
| 15773 // Override default options, since IE returns SelectElement itself and it | 15748 // Override default options, since IE returns SelectElement itself and it |
| 15774 // does not operate as a List. | 15749 // does not operate as a List. |
| 15775 List<OptionElement> get options { | 15750 List<OptionElement> get options { |
| 15776 return this.elements.where((e) => e is OptionElement); | 15751 return this.elements.where((e) => e is OptionElement).toList(); |
| 15777 } | 15752 } |
| 15778 | 15753 |
| 15779 List<OptionElement> get selectedOptions { | 15754 List<OptionElement> get selectedOptions { |
| 15780 // IE does not change the selected flag for single-selection items. | 15755 // IE does not change the selected flag for single-selection items. |
| 15781 if (this.multiple) { | 15756 if (this.multiple) { |
| 15782 return this.options.where((o) => o.selected); | 15757 return this.options.where((o) => o.selected).toList(); |
| 15783 } else { | 15758 } else { |
| 15784 return [this.options[this.selectedIndex]]; | 15759 return [this.options[this.selectedIndex]]; |
| 15785 } | 15760 } |
| 15786 } | 15761 } |
| 15787 } | 15762 } |
| 15788 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15763 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15789 // for details. All rights reserved. Use of this source code is governed by a | 15764 // for details. All rights reserved. Use of this source code is governed by a |
| 15790 // BSD-style license that can be found in the LICENSE file. | 15765 // BSD-style license that can be found in the LICENSE file. |
| 15791 | 15766 |
| 15792 | 15767 |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15955 void addAll(Collection<SourceBuffer> collection) { | 15930 void addAll(Collection<SourceBuffer> collection) { |
| 15956 throw new UnsupportedError("Cannot add to immutable List."); | 15931 throw new UnsupportedError("Cannot add to immutable List."); |
| 15957 } | 15932 } |
| 15958 | 15933 |
| 15959 bool contains(SourceBuffer element) => _Collections.contains(this, element); | 15934 bool contains(SourceBuffer element) => _Collections.contains(this, element); |
| 15960 | 15935 |
| 15961 void forEach(void f(SourceBuffer element)) => _Collections.forEach(this, f); | 15936 void forEach(void f(SourceBuffer element)) => _Collections.forEach(this, f); |
| 15962 | 15937 |
| 15963 Iterable mappedBy(f(SourceBuffer element)) => new MappedIterable(this, f); | 15938 Iterable mappedBy(f(SourceBuffer element)) => new MappedIterable(this, f); |
| 15964 | 15939 |
| 15965 Collection<SourceBuffer> where(bool f(SourceBuffer element)) => | 15940 Iterable<SourceBuffer> where(bool f(SourceBuffer element)) => new FilteredIter
able<SourceBuffer>(this, f); |
| 15966 _Collections.where(this, <SourceBuffer>[], f); | |
| 15967 | 15941 |
| 15968 bool every(bool f(SourceBuffer element)) => _Collections.every(this, f); | 15942 bool every(bool f(SourceBuffer element)) => _Collections.every(this, f); |
| 15969 | 15943 |
| 15970 bool some(bool f(SourceBuffer element)) => _Collections.some(this, f); | 15944 bool some(bool f(SourceBuffer element)) => _Collections.some(this, f); |
| 15971 | 15945 |
| 15972 bool get isEmpty => this.length == 0; | 15946 bool get isEmpty => this.length == 0; |
| 15973 | 15947 |
| 15974 // From List<SourceBuffer>: | 15948 // From List<SourceBuffer>: |
| 15975 | 15949 |
| 15976 void sort([Comparator<SourceBuffer> compare = Comparable.compare]) { | 15950 void sort([Comparator<SourceBuffer> compare = Comparable.compare]) { |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16108 void addAll(Collection<SpeechGrammar> collection) { | 16082 void addAll(Collection<SpeechGrammar> collection) { |
| 16109 throw new UnsupportedError("Cannot add to immutable List."); | 16083 throw new UnsupportedError("Cannot add to immutable List."); |
| 16110 } | 16084 } |
| 16111 | 16085 |
| 16112 bool contains(SpeechGrammar element) => _Collections.contains(this, element); | 16086 bool contains(SpeechGrammar element) => _Collections.contains(this, element); |
| 16113 | 16087 |
| 16114 void forEach(void f(SpeechGrammar element)) => _Collections.forEach(this, f); | 16088 void forEach(void f(SpeechGrammar element)) => _Collections.forEach(this, f); |
| 16115 | 16089 |
| 16116 Iterable mappedBy(f(SpeechGrammar element)) => new MappedIterable(this, f); | 16090 Iterable mappedBy(f(SpeechGrammar element)) => new MappedIterable(this, f); |
| 16117 | 16091 |
| 16118 Collection<SpeechGrammar> where(bool f(SpeechGrammar element)) => | 16092 Iterable<SpeechGrammar> where(bool f(SpeechGrammar element)) => new FilteredIt
erable<SpeechGrammar>(this, f); |
| 16119 _Collections.where(this, <SpeechGrammar>[], f); | |
| 16120 | 16093 |
| 16121 bool every(bool f(SpeechGrammar element)) => _Collections.every(this, f); | 16094 bool every(bool f(SpeechGrammar element)) => _Collections.every(this, f); |
| 16122 | 16095 |
| 16123 bool some(bool f(SpeechGrammar element)) => _Collections.some(this, f); | 16096 bool some(bool f(SpeechGrammar element)) => _Collections.some(this, f); |
| 16124 | 16097 |
| 16125 bool get isEmpty => this.length == 0; | 16098 bool get isEmpty => this.length == 0; |
| 16126 | 16099 |
| 16127 // From List<SpeechGrammar>: | 16100 // From List<SpeechGrammar>: |
| 16128 | 16101 |
| 16129 void sort([Comparator<SpeechGrammar> compare = Comparable.compare]) { | 16102 void sort([Comparator<SpeechGrammar> compare = Comparable.compare]) { |
| (...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17127 void addAll(Collection<TextTrackCue> collection) { | 17100 void addAll(Collection<TextTrackCue> collection) { |
| 17128 throw new UnsupportedError("Cannot add to immutable List."); | 17101 throw new UnsupportedError("Cannot add to immutable List."); |
| 17129 } | 17102 } |
| 17130 | 17103 |
| 17131 bool contains(TextTrackCue element) => _Collections.contains(this, element); | 17104 bool contains(TextTrackCue element) => _Collections.contains(this, element); |
| 17132 | 17105 |
| 17133 void forEach(void f(TextTrackCue element)) => _Collections.forEach(this, f); | 17106 void forEach(void f(TextTrackCue element)) => _Collections.forEach(this, f); |
| 17134 | 17107 |
| 17135 Iterable mappedBy(f(TextTrackCue element)) => new MappedIterable(this, f); | 17108 Iterable mappedBy(f(TextTrackCue element)) => new MappedIterable(this, f); |
| 17136 | 17109 |
| 17137 Collection<TextTrackCue> where(bool f(TextTrackCue element)) => | 17110 Iterable<TextTrackCue> where(bool f(TextTrackCue element)) => new FilteredIter
able<TextTrackCue>(this, f); |
| 17138 _Collections.where(this, <TextTrackCue>[], f); | |
| 17139 | 17111 |
| 17140 bool every(bool f(TextTrackCue element)) => _Collections.every(this, f); | 17112 bool every(bool f(TextTrackCue element)) => _Collections.every(this, f); |
| 17141 | 17113 |
| 17142 bool some(bool f(TextTrackCue element)) => _Collections.some(this, f); | 17114 bool some(bool f(TextTrackCue element)) => _Collections.some(this, f); |
| 17143 | 17115 |
| 17144 bool get isEmpty => this.length == 0; | 17116 bool get isEmpty => this.length == 0; |
| 17145 | 17117 |
| 17146 // From List<TextTrackCue>: | 17118 // From List<TextTrackCue>: |
| 17147 | 17119 |
| 17148 void sort([Comparator<TextTrackCue> compare = Comparable.compare]) { | 17120 void sort([Comparator<TextTrackCue> compare = Comparable.compare]) { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17233 void addAll(Collection<TextTrack> collection) { | 17205 void addAll(Collection<TextTrack> collection) { |
| 17234 throw new UnsupportedError("Cannot add to immutable List."); | 17206 throw new UnsupportedError("Cannot add to immutable List."); |
| 17235 } | 17207 } |
| 17236 | 17208 |
| 17237 bool contains(TextTrack element) => _Collections.contains(this, element); | 17209 bool contains(TextTrack element) => _Collections.contains(this, element); |
| 17238 | 17210 |
| 17239 void forEach(void f(TextTrack element)) => _Collections.forEach(this, f); | 17211 void forEach(void f(TextTrack element)) => _Collections.forEach(this, f); |
| 17240 | 17212 |
| 17241 Iterable mappedBy(f(TextTrack element)) => new MappedIterable(this, f); | 17213 Iterable mappedBy(f(TextTrack element)) => new MappedIterable(this, f); |
| 17242 | 17214 |
| 17243 Collection<TextTrack> where(bool f(TextTrack element)) => | 17215 Iterable<TextTrack> where(bool f(TextTrack element)) => new FilteredIterable<T
extTrack>(this, f); |
| 17244 _Collections.where(this, <TextTrack>[], f); | |
| 17245 | 17216 |
| 17246 bool every(bool f(TextTrack element)) => _Collections.every(this, f); | 17217 bool every(bool f(TextTrack element)) => _Collections.every(this, f); |
| 17247 | 17218 |
| 17248 bool some(bool f(TextTrack element)) => _Collections.some(this, f); | 17219 bool some(bool f(TextTrack element)) => _Collections.some(this, f); |
| 17249 | 17220 |
| 17250 bool get isEmpty => this.length == 0; | 17221 bool get isEmpty => this.length == 0; |
| 17251 | 17222 |
| 17252 // From List<TextTrack>: | 17223 // From List<TextTrack>: |
| 17253 | 17224 |
| 17254 void sort([Comparator<TextTrack> compare = Comparable.compare]) { | 17225 void sort([Comparator<TextTrack> compare = Comparable.compare]) { |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17457 void addAll(Collection<Touch> collection) { | 17428 void addAll(Collection<Touch> collection) { |
| 17458 throw new UnsupportedError("Cannot add to immutable List."); | 17429 throw new UnsupportedError("Cannot add to immutable List."); |
| 17459 } | 17430 } |
| 17460 | 17431 |
| 17461 bool contains(Touch element) => _Collections.contains(this, element); | 17432 bool contains(Touch element) => _Collections.contains(this, element); |
| 17462 | 17433 |
| 17463 void forEach(void f(Touch element)) => _Collections.forEach(this, f); | 17434 void forEach(void f(Touch element)) => _Collections.forEach(this, f); |
| 17464 | 17435 |
| 17465 Iterable mappedBy(f(Touch element)) => new MappedIterable(this, f); | 17436 Iterable mappedBy(f(Touch element)) => new MappedIterable(this, f); |
| 17466 | 17437 |
| 17467 Collection<Touch> where(bool f(Touch element)) => | 17438 Iterable<Touch> where(bool f(Touch element)) => new FilteredIterable<Touch>(th
is, f); |
| 17468 _Collections.where(this, <Touch>[], f); | |
| 17469 | 17439 |
| 17470 bool every(bool f(Touch element)) => _Collections.every(this, f); | 17440 bool every(bool f(Touch element)) => _Collections.every(this, f); |
| 17471 | 17441 |
| 17472 bool some(bool f(Touch element)) => _Collections.some(this, f); | 17442 bool some(bool f(Touch element)) => _Collections.some(this, f); |
| 17473 | 17443 |
| 17474 bool get isEmpty => this.length == 0; | 17444 bool get isEmpty => this.length == 0; |
| 17475 | 17445 |
| 17476 // From List<Touch>: | 17446 // From List<Touch>: |
| 17477 | 17447 |
| 17478 void sort([Comparator<Touch> compare = Comparable.compare]) { | 17448 void sort([Comparator<Touch> compare = Comparable.compare]) { |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17731 void addAll(Collection<int> collection) { | 17701 void addAll(Collection<int> collection) { |
| 17732 throw new UnsupportedError("Cannot add to immutable List."); | 17702 throw new UnsupportedError("Cannot add to immutable List."); |
| 17733 } | 17703 } |
| 17734 | 17704 |
| 17735 bool contains(int element) => _Collections.contains(this, element); | 17705 bool contains(int element) => _Collections.contains(this, element); |
| 17736 | 17706 |
| 17737 void forEach(void f(int element)) => _Collections.forEach(this, f); | 17707 void forEach(void f(int element)) => _Collections.forEach(this, f); |
| 17738 | 17708 |
| 17739 Iterable mappedBy(f(int element)) => new MappedIterable(this, f); | 17709 Iterable mappedBy(f(int element)) => new MappedIterable(this, f); |
| 17740 | 17710 |
| 17741 Collection<int> where(bool f(int element)) => | 17711 Iterable<int> where(bool f(int element)) => new FilteredIterable<int>(this, f)
; |
| 17742 _Collections.where(this, <int>[], f); | |
| 17743 | 17712 |
| 17744 bool every(bool f(int element)) => _Collections.every(this, f); | 17713 bool every(bool f(int element)) => _Collections.every(this, f); |
| 17745 | 17714 |
| 17746 bool some(bool f(int element)) => _Collections.some(this, f); | 17715 bool some(bool f(int element)) => _Collections.some(this, f); |
| 17747 | 17716 |
| 17748 bool get isEmpty => this.length == 0; | 17717 bool get isEmpty => this.length == 0; |
| 17749 | 17718 |
| 17750 // From List<int>: | 17719 // From List<int>: |
| 17751 | 17720 |
| 17752 void sort([Comparator<int> compare = Comparable.compare]) { | 17721 void sort([Comparator<int> compare = Comparable.compare]) { |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17840 void addAll(Collection<int> collection) { | 17809 void addAll(Collection<int> collection) { |
| 17841 throw new UnsupportedError("Cannot add to immutable List."); | 17810 throw new UnsupportedError("Cannot add to immutable List."); |
| 17842 } | 17811 } |
| 17843 | 17812 |
| 17844 bool contains(int element) => _Collections.contains(this, element); | 17813 bool contains(int element) => _Collections.contains(this, element); |
| 17845 | 17814 |
| 17846 void forEach(void f(int element)) => _Collections.forEach(this, f); | 17815 void forEach(void f(int element)) => _Collections.forEach(this, f); |
| 17847 | 17816 |
| 17848 Iterable mappedBy(f(int element)) => new MappedIterable(this, f); | 17817 Iterable mappedBy(f(int element)) => new MappedIterable(this, f); |
| 17849 | 17818 |
| 17850 Collection<int> where(bool f(int element)) => | 17819 Iterable<int> where(bool f(int element)) => new FilteredIterable<int>(this, f)
; |
| 17851 _Collections.where(this, <int>[], f); | |
| 17852 | 17820 |
| 17853 bool every(bool f(int element)) => _Collections.every(this, f); | 17821 bool every(bool f(int element)) => _Collections.every(this, f); |
| 17854 | 17822 |
| 17855 bool some(bool f(int element)) => _Collections.some(this, f); | 17823 bool some(bool f(int element)) => _Collections.some(this, f); |
| 17856 | 17824 |
| 17857 bool get isEmpty => this.length == 0; | 17825 bool get isEmpty => this.length == 0; |
| 17858 | 17826 |
| 17859 // From List<int>: | 17827 // From List<int>: |
| 17860 | 17828 |
| 17861 void sort([Comparator<int> compare = Comparable.compare]) { | 17829 void sort([Comparator<int> compare = Comparable.compare]) { |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17949 void addAll(Collection<int> collection) { | 17917 void addAll(Collection<int> collection) { |
| 17950 throw new UnsupportedError("Cannot add to immutable List."); | 17918 throw new UnsupportedError("Cannot add to immutable List."); |
| 17951 } | 17919 } |
| 17952 | 17920 |
| 17953 bool contains(int element) => _Collections.contains(this, element); | 17921 bool contains(int element) => _Collections.contains(this, element); |
| 17954 | 17922 |
| 17955 void forEach(void f(int element)) => _Collections.forEach(this, f); | 17923 void forEach(void f(int element)) => _Collections.forEach(this, f); |
| 17956 | 17924 |
| 17957 Iterable mappedBy(f(int element)) => new MappedIterable(this, f); | 17925 Iterable mappedBy(f(int element)) => new MappedIterable(this, f); |
| 17958 | 17926 |
| 17959 Collection<int> where(bool f(int element)) => | 17927 Iterable<int> where(bool f(int element)) => new FilteredIterable<int>(this, f)
; |
| 17960 _Collections.where(this, <int>[], f); | |
| 17961 | 17928 |
| 17962 bool every(bool f(int element)) => _Collections.every(this, f); | 17929 bool every(bool f(int element)) => _Collections.every(this, f); |
| 17963 | 17930 |
| 17964 bool some(bool f(int element)) => _Collections.some(this, f); | 17931 bool some(bool f(int element)) => _Collections.some(this, f); |
| 17965 | 17932 |
| 17966 bool get isEmpty => this.length == 0; | 17933 bool get isEmpty => this.length == 0; |
| 17967 | 17934 |
| 17968 // From List<int>: | 17935 // From List<int>: |
| 17969 | 17936 |
| 17970 void sort([Comparator<int> compare = Comparable.compare]) { | 17937 void sort([Comparator<int> compare = Comparable.compare]) { |
| (...skipping 2164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20135 void addAll(Collection<CSSRule> collection) { | 20102 void addAll(Collection<CSSRule> collection) { |
| 20136 throw new UnsupportedError("Cannot add to immutable List."); | 20103 throw new UnsupportedError("Cannot add to immutable List."); |
| 20137 } | 20104 } |
| 20138 | 20105 |
| 20139 bool contains(CSSRule element) => _Collections.contains(this, element); | 20106 bool contains(CSSRule element) => _Collections.contains(this, element); |
| 20140 | 20107 |
| 20141 void forEach(void f(CSSRule element)) => _Collections.forEach(this, f); | 20108 void forEach(void f(CSSRule element)) => _Collections.forEach(this, f); |
| 20142 | 20109 |
| 20143 Iterable mappedBy(f(CSSRule element)) => new MappedIterable(this, f); | 20110 Iterable mappedBy(f(CSSRule element)) => new MappedIterable(this, f); |
| 20144 | 20111 |
| 20145 Collection<CSSRule> where(bool f(CSSRule element)) => | 20112 Iterable<CSSRule> where(bool f(CSSRule element)) => new FilteredIterable<CSSRu
le>(this, f); |
| 20146 _Collections.where(this, <CSSRule>[], f); | |
| 20147 | 20113 |
| 20148 bool every(bool f(CSSRule element)) => _Collections.every(this, f); | 20114 bool every(bool f(CSSRule element)) => _Collections.every(this, f); |
| 20149 | 20115 |
| 20150 bool some(bool f(CSSRule element)) => _Collections.some(this, f); | 20116 bool some(bool f(CSSRule element)) => _Collections.some(this, f); |
| 20151 | 20117 |
| 20152 bool get isEmpty => this.length == 0; | 20118 bool get isEmpty => this.length == 0; |
| 20153 | 20119 |
| 20154 // From List<CSSRule>: | 20120 // From List<CSSRule>: |
| 20155 | 20121 |
| 20156 void sort([Comparator<CSSRule> compare = Comparable.compare]) { | 20122 void sort([Comparator<CSSRule> compare = Comparable.compare]) { |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20232 void addAll(Collection<CSSValue> collection) { | 20198 void addAll(Collection<CSSValue> collection) { |
| 20233 throw new UnsupportedError("Cannot add to immutable List."); | 20199 throw new UnsupportedError("Cannot add to immutable List."); |
| 20234 } | 20200 } |
| 20235 | 20201 |
| 20236 bool contains(CSSValue element) => _Collections.contains(this, element); | 20202 bool contains(CSSValue element) => _Collections.contains(this, element); |
| 20237 | 20203 |
| 20238 void forEach(void f(CSSValue element)) => _Collections.forEach(this, f); | 20204 void forEach(void f(CSSValue element)) => _Collections.forEach(this, f); |
| 20239 | 20205 |
| 20240 Iterable mappedBy(f(CSSValue element)) => new MappedIterable(this, f); | 20206 Iterable mappedBy(f(CSSValue element)) => new MappedIterable(this, f); |
| 20241 | 20207 |
| 20242 Collection<CSSValue> where(bool f(CSSValue element)) => | 20208 Iterable<CSSValue> where(bool f(CSSValue element)) => new FilteredIterable<CSS
Value>(this, f); |
| 20243 _Collections.where(this, <CSSValue>[], f); | |
| 20244 | 20209 |
| 20245 bool every(bool f(CSSValue element)) => _Collections.every(this, f); | 20210 bool every(bool f(CSSValue element)) => _Collections.every(this, f); |
| 20246 | 20211 |
| 20247 bool some(bool f(CSSValue element)) => _Collections.some(this, f); | 20212 bool some(bool f(CSSValue element)) => _Collections.some(this, f); |
| 20248 | 20213 |
| 20249 bool get isEmpty => this.length == 0; | 20214 bool get isEmpty => this.length == 0; |
| 20250 | 20215 |
| 20251 // From List<CSSValue>: | 20216 // From List<CSSValue>: |
| 20252 | 20217 |
| 20253 void sort([Comparator<CSSValue> compare = Comparable.compare]) { | 20218 void sort([Comparator<CSSValue> compare = Comparable.compare]) { |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20329 void addAll(Collection<ClientRect> collection) { | 20294 void addAll(Collection<ClientRect> collection) { |
| 20330 throw new UnsupportedError("Cannot add to immutable List."); | 20295 throw new UnsupportedError("Cannot add to immutable List."); |
| 20331 } | 20296 } |
| 20332 | 20297 |
| 20333 bool contains(ClientRect element) => _Collections.contains(this, element); | 20298 bool contains(ClientRect element) => _Collections.contains(this, element); |
| 20334 | 20299 |
| 20335 void forEach(void f(ClientRect element)) => _Collections.forEach(this, f); | 20300 void forEach(void f(ClientRect element)) => _Collections.forEach(this, f); |
| 20336 | 20301 |
| 20337 Iterable mappedBy(f(ClientRect element)) => new MappedIterable(this, f); | 20302 Iterable mappedBy(f(ClientRect element)) => new MappedIterable(this, f); |
| 20338 | 20303 |
| 20339 Collection<ClientRect> where(bool f(ClientRect element)) => | 20304 Iterable<ClientRect> where(bool f(ClientRect element)) => new FilteredIterable
<ClientRect>(this, f); |
| 20340 _Collections.where(this, <ClientRect>[], f); | |
| 20341 | 20305 |
| 20342 bool every(bool f(ClientRect element)) => _Collections.every(this, f); | 20306 bool every(bool f(ClientRect element)) => _Collections.every(this, f); |
| 20343 | 20307 |
| 20344 bool some(bool f(ClientRect element)) => _Collections.some(this, f); | 20308 bool some(bool f(ClientRect element)) => _Collections.some(this, f); |
| 20345 | 20309 |
| 20346 bool get isEmpty => this.length == 0; | 20310 bool get isEmpty => this.length == 0; |
| 20347 | 20311 |
| 20348 // From List<ClientRect>: | 20312 // From List<ClientRect>: |
| 20349 | 20313 |
| 20350 void sort([Comparator<ClientRect> compare = Comparable.compare]) { | 20314 void sort([Comparator<ClientRect> compare = Comparable.compare]) { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20435 void addAll(Collection<String> collection) { | 20399 void addAll(Collection<String> collection) { |
| 20436 throw new UnsupportedError("Cannot add to immutable List."); | 20400 throw new UnsupportedError("Cannot add to immutable List."); |
| 20437 } | 20401 } |
| 20438 | 20402 |
| 20439 // contains() defined by IDL. | 20403 // contains() defined by IDL. |
| 20440 | 20404 |
| 20441 void forEach(void f(String element)) => _Collections.forEach(this, f); | 20405 void forEach(void f(String element)) => _Collections.forEach(this, f); |
| 20442 | 20406 |
| 20443 Iterable mappedBy(f(String element)) => new MappedIterable(this, f); | 20407 Iterable mappedBy(f(String element)) => new MappedIterable(this, f); |
| 20444 | 20408 |
| 20445 Collection<String> where(bool f(String element)) => | 20409 Iterable<String> where(bool f(String element)) => new FilteredIterable<String>
(this, f); |
| 20446 _Collections.where(this, <String>[], f); | |
| 20447 | 20410 |
| 20448 bool every(bool f(String element)) => _Collections.every(this, f); | 20411 bool every(bool f(String element)) => _Collections.every(this, f); |
| 20449 | 20412 |
| 20450 bool some(bool f(String element)) => _Collections.some(this, f); | 20413 bool some(bool f(String element)) => _Collections.some(this, f); |
| 20451 | 20414 |
| 20452 bool get isEmpty => this.length == 0; | 20415 bool get isEmpty => this.length == 0; |
| 20453 | 20416 |
| 20454 // From List<String>: | 20417 // From List<String>: |
| 20455 | 20418 |
| 20456 void sort([Comparator<String> compare = Comparable.compare]) { | 20419 void sort([Comparator<String> compare = Comparable.compare]) { |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20857 void addAll(Collection<Entry> collection) { | 20820 void addAll(Collection<Entry> collection) { |
| 20858 throw new UnsupportedError("Cannot add to immutable List."); | 20821 throw new UnsupportedError("Cannot add to immutable List."); |
| 20859 } | 20822 } |
| 20860 | 20823 |
| 20861 bool contains(Entry element) => _Collections.contains(this, element); | 20824 bool contains(Entry element) => _Collections.contains(this, element); |
| 20862 | 20825 |
| 20863 void forEach(void f(Entry element)) => _Collections.forEach(this, f); | 20826 void forEach(void f(Entry element)) => _Collections.forEach(this, f); |
| 20864 | 20827 |
| 20865 Iterable mappedBy(f(Entry element)) => new MappedIterable(this, f); | 20828 Iterable mappedBy(f(Entry element)) => new MappedIterable(this, f); |
| 20866 | 20829 |
| 20867 Collection<Entry> where(bool f(Entry element)) => | 20830 Iterable<Entry> where(bool f(Entry element)) => new FilteredIterable<Entry>(th
is, f); |
| 20868 _Collections.where(this, <Entry>[], f); | |
| 20869 | 20831 |
| 20870 bool every(bool f(Entry element)) => _Collections.every(this, f); | 20832 bool every(bool f(Entry element)) => _Collections.every(this, f); |
| 20871 | 20833 |
| 20872 bool some(bool f(Entry element)) => _Collections.some(this, f); | 20834 bool some(bool f(Entry element)) => _Collections.some(this, f); |
| 20873 | 20835 |
| 20874 bool get isEmpty => this.length == 0; | 20836 bool get isEmpty => this.length == 0; |
| 20875 | 20837 |
| 20876 // From List<Entry>: | 20838 // From List<Entry>: |
| 20877 | 20839 |
| 20878 void sort([Comparator<Entry> compare = Comparable.compare]) { | 20840 void sort([Comparator<Entry> compare = Comparable.compare]) { |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20954 void addAll(Collection<EntrySync> collection) { | 20916 void addAll(Collection<EntrySync> collection) { |
| 20955 throw new UnsupportedError("Cannot add to immutable List."); | 20917 throw new UnsupportedError("Cannot add to immutable List."); |
| 20956 } | 20918 } |
| 20957 | 20919 |
| 20958 bool contains(EntrySync element) => _Collections.contains(this, element); | 20920 bool contains(EntrySync element) => _Collections.contains(this, element); |
| 20959 | 20921 |
| 20960 void forEach(void f(EntrySync element)) => _Collections.forEach(this, f); | 20922 void forEach(void f(EntrySync element)) => _Collections.forEach(this, f); |
| 20961 | 20923 |
| 20962 Iterable mappedBy(f(EntrySync element)) => new MappedIterable(this, f); | 20924 Iterable mappedBy(f(EntrySync element)) => new MappedIterable(this, f); |
| 20963 | 20925 |
| 20964 Collection<EntrySync> where(bool f(EntrySync element)) => | 20926 Iterable<EntrySync> where(bool f(EntrySync element)) => new FilteredIterable<E
ntrySync>(this, f); |
| 20965 _Collections.where(this, <EntrySync>[], f); | |
| 20966 | 20927 |
| 20967 bool every(bool f(EntrySync element)) => _Collections.every(this, f); | 20928 bool every(bool f(EntrySync element)) => _Collections.every(this, f); |
| 20968 | 20929 |
| 20969 bool some(bool f(EntrySync element)) => _Collections.some(this, f); | 20930 bool some(bool f(EntrySync element)) => _Collections.some(this, f); |
| 20970 | 20931 |
| 20971 bool get isEmpty => this.length == 0; | 20932 bool get isEmpty => this.length == 0; |
| 20972 | 20933 |
| 20973 // From List<EntrySync>: | 20934 // From List<EntrySync>: |
| 20974 | 20935 |
| 20975 void sort([Comparator<EntrySync> compare = Comparable.compare]) { | 20936 void sort([Comparator<EntrySync> compare = Comparable.compare]) { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21060 void addAll(Collection<File> collection) { | 21021 void addAll(Collection<File> collection) { |
| 21061 throw new UnsupportedError("Cannot add to immutable List."); | 21022 throw new UnsupportedError("Cannot add to immutable List."); |
| 21062 } | 21023 } |
| 21063 | 21024 |
| 21064 bool contains(File element) => _Collections.contains(this, element); | 21025 bool contains(File element) => _Collections.contains(this, element); |
| 21065 | 21026 |
| 21066 void forEach(void f(File element)) => _Collections.forEach(this, f); | 21027 void forEach(void f(File element)) => _Collections.forEach(this, f); |
| 21067 | 21028 |
| 21068 Iterable mappedBy(f(File element)) => new MappedIterable(this, f); | 21029 Iterable mappedBy(f(File element)) => new MappedIterable(this, f); |
| 21069 | 21030 |
| 21070 Collection<File> where(bool f(File element)) => | 21031 Iterable<File> where(bool f(File element)) => new FilteredIterable<File>(this,
f); |
| 21071 _Collections.where(this, <File>[], f); | |
| 21072 | 21032 |
| 21073 bool every(bool f(File element)) => _Collections.every(this, f); | 21033 bool every(bool f(File element)) => _Collections.every(this, f); |
| 21074 | 21034 |
| 21075 bool some(bool f(File element)) => _Collections.some(this, f); | 21035 bool some(bool f(File element)) => _Collections.some(this, f); |
| 21076 | 21036 |
| 21077 bool get isEmpty => this.length == 0; | 21037 bool get isEmpty => this.length == 0; |
| 21078 | 21038 |
| 21079 // From List<File>: | 21039 // From List<File>: |
| 21080 | 21040 |
| 21081 void sort([Comparator<File> compare = Comparable.compare]) { | 21041 void sort([Comparator<File> compare = Comparable.compare]) { |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21186 void addAll(Collection<Gamepad> collection) { | 21146 void addAll(Collection<Gamepad> collection) { |
| 21187 throw new UnsupportedError("Cannot add to immutable List."); | 21147 throw new UnsupportedError("Cannot add to immutable List."); |
| 21188 } | 21148 } |
| 21189 | 21149 |
| 21190 bool contains(Gamepad element) => _Collections.contains(this, element); | 21150 bool contains(Gamepad element) => _Collections.contains(this, element); |
| 21191 | 21151 |
| 21192 void forEach(void f(Gamepad element)) => _Collections.forEach(this, f); | 21152 void forEach(void f(Gamepad element)) => _Collections.forEach(this, f); |
| 21193 | 21153 |
| 21194 Iterable mappedBy(f(Gamepad element)) => new MappedIterable(this, f); | 21154 Iterable mappedBy(f(Gamepad element)) => new MappedIterable(this, f); |
| 21195 | 21155 |
| 21196 Collection<Gamepad> where(bool f(Gamepad element)) => | 21156 Iterable<Gamepad> where(bool f(Gamepad element)) => new FilteredIterable<Gamep
ad>(this, f); |
| 21197 _Collections.where(this, <Gamepad>[], f); | |
| 21198 | 21157 |
| 21199 bool every(bool f(Gamepad element)) => _Collections.every(this, f); | 21158 bool every(bool f(Gamepad element)) => _Collections.every(this, f); |
| 21200 | 21159 |
| 21201 bool some(bool f(Gamepad element)) => _Collections.some(this, f); | 21160 bool some(bool f(Gamepad element)) => _Collections.some(this, f); |
| 21202 | 21161 |
| 21203 bool get isEmpty => this.length == 0; | 21162 bool get isEmpty => this.length == 0; |
| 21204 | 21163 |
| 21205 // From List<Gamepad>: | 21164 // From List<Gamepad>: |
| 21206 | 21165 |
| 21207 void sort([Comparator<Gamepad> compare = Comparable.compare]) { | 21166 void sort([Comparator<Gamepad> compare = Comparable.compare]) { |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21336 void addAll(Collection<MediaStream> collection) { | 21295 void addAll(Collection<MediaStream> collection) { |
| 21337 throw new UnsupportedError("Cannot add to immutable List."); | 21296 throw new UnsupportedError("Cannot add to immutable List."); |
| 21338 } | 21297 } |
| 21339 | 21298 |
| 21340 bool contains(MediaStream element) => _Collections.contains(this, element); | 21299 bool contains(MediaStream element) => _Collections.contains(this, element); |
| 21341 | 21300 |
| 21342 void forEach(void f(MediaStream element)) => _Collections.forEach(this, f); | 21301 void forEach(void f(MediaStream element)) => _Collections.forEach(this, f); |
| 21343 | 21302 |
| 21344 Iterable mappedBy(f(MediaStream element)) => new MappedIterable(this, f); | 21303 Iterable mappedBy(f(MediaStream element)) => new MappedIterable(this, f); |
| 21345 | 21304 |
| 21346 Collection<MediaStream> where(bool f(MediaStream element)) => | 21305 Iterable<MediaStream> where(bool f(MediaStream element)) => new FilteredIterab
le<MediaStream>(this, f); |
| 21347 _Collections.where(this, <MediaStream>[], f); | |
| 21348 | 21306 |
| 21349 bool every(bool f(MediaStream element)) => _Collections.every(this, f); | 21307 bool every(bool f(MediaStream element)) => _Collections.every(this, f); |
| 21350 | 21308 |
| 21351 bool some(bool f(MediaStream element)) => _Collections.some(this, f); | 21309 bool some(bool f(MediaStream element)) => _Collections.some(this, f); |
| 21352 | 21310 |
| 21353 bool get isEmpty => this.length == 0; | 21311 bool get isEmpty => this.length == 0; |
| 21354 | 21312 |
| 21355 // From List<MediaStream>: | 21313 // From List<MediaStream>: |
| 21356 | 21314 |
| 21357 void sort([Comparator<MediaStream> compare = Comparable.compare]) { | 21315 void sort([Comparator<MediaStream> compare = Comparable.compare]) { |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21596 void addAll(Collection<SpeechInputResult> collection) { | 21554 void addAll(Collection<SpeechInputResult> collection) { |
| 21597 throw new UnsupportedError("Cannot add to immutable List."); | 21555 throw new UnsupportedError("Cannot add to immutable List."); |
| 21598 } | 21556 } |
| 21599 | 21557 |
| 21600 bool contains(SpeechInputResult element) => _Collections.contains(this, elemen
t); | 21558 bool contains(SpeechInputResult element) => _Collections.contains(this, elemen
t); |
| 21601 | 21559 |
| 21602 void forEach(void f(SpeechInputResult element)) => _Collections.forEach(this,
f); | 21560 void forEach(void f(SpeechInputResult element)) => _Collections.forEach(this,
f); |
| 21603 | 21561 |
| 21604 Iterable mappedBy(f(SpeechInputResult element)) => new MappedIterable(this, f)
; | 21562 Iterable mappedBy(f(SpeechInputResult element)) => new MappedIterable(this, f)
; |
| 21605 | 21563 |
| 21606 Collection<SpeechInputResult> where(bool f(SpeechInputResult element)) => | 21564 Iterable<SpeechInputResult> where(bool f(SpeechInputResult element)) => new Fi
lteredIterable<SpeechInputResult>(this, f); |
| 21607 _Collections.where(this, <SpeechInputResult>[], f); | |
| 21608 | 21565 |
| 21609 bool every(bool f(SpeechInputResult element)) => _Collections.every(this, f); | 21566 bool every(bool f(SpeechInputResult element)) => _Collections.every(this, f); |
| 21610 | 21567 |
| 21611 bool some(bool f(SpeechInputResult element)) => _Collections.some(this, f); | 21568 bool some(bool f(SpeechInputResult element)) => _Collections.some(this, f); |
| 21612 | 21569 |
| 21613 bool get isEmpty => this.length == 0; | 21570 bool get isEmpty => this.length == 0; |
| 21614 | 21571 |
| 21615 // From List<SpeechInputResult>: | 21572 // From List<SpeechInputResult>: |
| 21616 | 21573 |
| 21617 void sort([Comparator<SpeechInputResult> compare = Comparable.compare]) { | 21574 void sort([Comparator<SpeechInputResult> compare = Comparable.compare]) { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21702 void addAll(Collection<SpeechRecognitionResult> collection) { | 21659 void addAll(Collection<SpeechRecognitionResult> collection) { |
| 21703 throw new UnsupportedError("Cannot add to immutable List."); | 21660 throw new UnsupportedError("Cannot add to immutable List."); |
| 21704 } | 21661 } |
| 21705 | 21662 |
| 21706 bool contains(SpeechRecognitionResult element) => _Collections.contains(this,
element); | 21663 bool contains(SpeechRecognitionResult element) => _Collections.contains(this,
element); |
| 21707 | 21664 |
| 21708 void forEach(void f(SpeechRecognitionResult element)) => _Collections.forEach(
this, f); | 21665 void forEach(void f(SpeechRecognitionResult element)) => _Collections.forEach(
this, f); |
| 21709 | 21666 |
| 21710 Iterable mappedBy(f(SpeechRecognitionResult element)) => new MappedIterable(th
is, f); | 21667 Iterable mappedBy(f(SpeechRecognitionResult element)) => new MappedIterable(th
is, f); |
| 21711 | 21668 |
| 21712 Collection<SpeechRecognitionResult> where(bool f(SpeechRecognitionResult eleme
nt)) => | 21669 Iterable<SpeechRecognitionResult> where(bool f(SpeechRecognitionResult element
)) => new FilteredIterable<SpeechRecognitionResult>(this, f); |
| 21713 _Collections.where(this, <SpeechRecognitionResult>[], f); | |
| 21714 | 21670 |
| 21715 bool every(bool f(SpeechRecognitionResult element)) => _Collections.every(this
, f); | 21671 bool every(bool f(SpeechRecognitionResult element)) => _Collections.every(this
, f); |
| 21716 | 21672 |
| 21717 bool some(bool f(SpeechRecognitionResult element)) => _Collections.some(this,
f); | 21673 bool some(bool f(SpeechRecognitionResult element)) => _Collections.some(this,
f); |
| 21718 | 21674 |
| 21719 bool get isEmpty => this.length == 0; | 21675 bool get isEmpty => this.length == 0; |
| 21720 | 21676 |
| 21721 // From List<SpeechRecognitionResult>: | 21677 // From List<SpeechRecognitionResult>: |
| 21722 | 21678 |
| 21723 void sort([Comparator<SpeechRecognitionResult> compare = Comparable.compare])
{ | 21679 void sort([Comparator<SpeechRecognitionResult> compare = Comparable.compare])
{ |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21799 void addAll(Collection<StyleSheet> collection) { | 21755 void addAll(Collection<StyleSheet> collection) { |
| 21800 throw new UnsupportedError("Cannot add to immutable List."); | 21756 throw new UnsupportedError("Cannot add to immutable List."); |
| 21801 } | 21757 } |
| 21802 | 21758 |
| 21803 bool contains(StyleSheet element) => _Collections.contains(this, element); | 21759 bool contains(StyleSheet element) => _Collections.contains(this, element); |
| 21804 | 21760 |
| 21805 void forEach(void f(StyleSheet element)) => _Collections.forEach(this, f); | 21761 void forEach(void f(StyleSheet element)) => _Collections.forEach(this, f); |
| 21806 | 21762 |
| 21807 Iterable mappedBy(f(StyleSheet element)) => new MappedIterable(this, f); | 21763 Iterable mappedBy(f(StyleSheet element)) => new MappedIterable(this, f); |
| 21808 | 21764 |
| 21809 Collection<StyleSheet> where(bool f(StyleSheet element)) => | 21765 Iterable<StyleSheet> where(bool f(StyleSheet element)) => new FilteredIterable
<StyleSheet>(this, f); |
| 21810 _Collections.where(this, <StyleSheet>[], f); | |
| 21811 | 21766 |
| 21812 bool every(bool f(StyleSheet element)) => _Collections.every(this, f); | 21767 bool every(bool f(StyleSheet element)) => _Collections.every(this, f); |
| 21813 | 21768 |
| 21814 bool some(bool f(StyleSheet element)) => _Collections.some(this, f); | 21769 bool some(bool f(StyleSheet element)) => _Collections.some(this, f); |
| 21815 | 21770 |
| 21816 bool get isEmpty => this.length == 0; | 21771 bool get isEmpty => this.length == 0; |
| 21817 | 21772 |
| 21818 // From List<StyleSheet>: | 21773 // From List<StyleSheet>: |
| 21819 | 21774 |
| 21820 void sort([Comparator<StyleSheet> compare = Comparable.compare]) { | 21775 void sort([Comparator<StyleSheet> compare = Comparable.compare]) { |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21920 void addAll(Collection<Animation> collection) { | 21875 void addAll(Collection<Animation> collection) { |
| 21921 throw new UnsupportedError("Cannot add to immutable List."); | 21876 throw new UnsupportedError("Cannot add to immutable List."); |
| 21922 } | 21877 } |
| 21923 | 21878 |
| 21924 bool contains(Animation element) => _Collections.contains(this, element); | 21879 bool contains(Animation element) => _Collections.contains(this, element); |
| 21925 | 21880 |
| 21926 void forEach(void f(Animation element)) => _Collections.forEach(this, f); | 21881 void forEach(void f(Animation element)) => _Collections.forEach(this, f); |
| 21927 | 21882 |
| 21928 Iterable mappedBy(f(Animation element)) => new MappedIterable(this, f); | 21883 Iterable mappedBy(f(Animation element)) => new MappedIterable(this, f); |
| 21929 | 21884 |
| 21930 Collection<Animation> where(bool f(Animation element)) => | 21885 Iterable<Animation> where(bool f(Animation element)) => new FilteredIterable<A
nimation>(this, f); |
| 21931 _Collections.where(this, <Animation>[], f); | |
| 21932 | 21886 |
| 21933 bool every(bool f(Animation element)) => _Collections.every(this, f); | 21887 bool every(bool f(Animation element)) => _Collections.every(this, f); |
| 21934 | 21888 |
| 21935 bool some(bool f(Animation element)) => _Collections.some(this, f); | 21889 bool some(bool f(Animation element)) => _Collections.some(this, f); |
| 21936 | 21890 |
| 21937 bool get isEmpty => this.length == 0; | 21891 bool get isEmpty => this.length == 0; |
| 21938 | 21892 |
| 21939 // From List<Animation>: | 21893 // From List<Animation>: |
| 21940 | 21894 |
| 21941 void sort([Comparator<Animation> compare = Comparable.compare]) { | 21895 void sort([Comparator<Animation> compare = Comparable.compare]) { |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22080 Iterator<String> iterator() => readClasses().iterator(); | 22034 Iterator<String> iterator() => readClasses().iterator(); |
| 22081 // interface Iterable - END | 22035 // interface Iterable - END |
| 22082 | 22036 |
| 22083 // interface Collection - BEGIN | 22037 // interface Collection - BEGIN |
| 22084 void forEach(void f(String element)) { | 22038 void forEach(void f(String element)) { |
| 22085 readClasses().forEach(f); | 22039 readClasses().forEach(f); |
| 22086 } | 22040 } |
| 22087 | 22041 |
| 22088 Iterable mappedBy(f(String element)) => readClasses().mappedBy(f); | 22042 Iterable mappedBy(f(String element)) => readClasses().mappedBy(f); |
| 22089 | 22043 |
| 22090 Collection<String> where(bool f(String element)) => readClasses().where(f); | 22044 Iterable<String> where(bool f(String element)) => readClasses().where(f); |
| 22091 | 22045 |
| 22092 bool every(bool f(String element)) => readClasses().every(f); | 22046 bool every(bool f(String element)) => readClasses().every(f); |
| 22093 | 22047 |
| 22094 bool some(bool f(String element)) => readClasses().some(f); | 22048 bool some(bool f(String element)) => readClasses().some(f); |
| 22095 | 22049 |
| 22096 bool get isEmpty => readClasses().isEmpty; | 22050 bool get isEmpty => readClasses().isEmpty; |
| 22097 | 22051 |
| 22098 int get length =>readClasses().length; | 22052 int get length =>readClasses().length; |
| 22099 // interface Collection - END | 22053 // interface Collection - END |
| 22100 | 22054 |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22284 | 22238 |
| 22285 Element removeLast() { | 22239 Element removeLast() { |
| 22286 final result = this.last; | 22240 final result = this.last; |
| 22287 if (result != null) { | 22241 if (result != null) { |
| 22288 result.remove(); | 22242 result.remove(); |
| 22289 } | 22243 } |
| 22290 return result; | 22244 return result; |
| 22291 } | 22245 } |
| 22292 | 22246 |
| 22293 Iterable mappedBy(f(Element element)) => _filtered.mappedBy(f); | 22247 Iterable mappedBy(f(Element element)) => _filtered.mappedBy(f); |
| 22294 Collection<Element> where(bool f(Element element)) => _filtered.where(f); | 22248 Iterable<Element> where(bool f(Element element)) => _filtered.where(f); |
| 22295 bool every(bool f(Element element)) => _filtered.every(f); | 22249 bool every(bool f(Element element)) => _filtered.every(f); |
| 22296 bool some(bool f(Element element)) => _filtered.some(f); | 22250 bool some(bool f(Element element)) => _filtered.some(f); |
| 22297 bool get isEmpty => _filtered.isEmpty; | 22251 bool get isEmpty => _filtered.isEmpty; |
| 22298 int get length => _filtered.length; | 22252 int get length => _filtered.length; |
| 22299 Element operator [](int index) => _filtered[index]; | 22253 Element operator [](int index) => _filtered[index]; |
| 22300 Iterator<Element> iterator() => _filtered.iterator(); | 22254 Iterator<Element> iterator() => _filtered.iterator(); |
| 22301 List<Element> getRange(int start, int rangeLength) => | 22255 List<Element> getRange(int start, int rangeLength) => |
| 22302 _filtered.getRange(start, rangeLength); | 22256 _filtered.getRange(start, rangeLength); |
| 22303 int indexOf(Element element, [int start = 0]) => | 22257 int indexOf(Element element, [int start = 0]) => |
| 22304 _filtered.indexOf(element, start); | 22258 _filtered.indexOf(element, start); |
| (...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23118 } | 23072 } |
| 23119 return false; | 23073 return false; |
| 23120 } | 23074 } |
| 23121 | 23075 |
| 23122 static void forEach(Iterable<Object> iterable, void f(Object o)) { | 23076 static void forEach(Iterable<Object> iterable, void f(Object o)) { |
| 23123 for (final e in iterable) { | 23077 for (final e in iterable) { |
| 23124 f(e); | 23078 f(e); |
| 23125 } | 23079 } |
| 23126 } | 23080 } |
| 23127 | 23081 |
| 23128 static Iterable mappedBy(Iterable<Object> source, f(o)) { | |
| 23129 return new MappedIterable(source, f); | |
| 23130 } | |
| 23131 | |
| 23132 static bool some(Iterable<Object> iterable, bool f(Object o)) { | 23082 static bool some(Iterable<Object> iterable, bool f(Object o)) { |
| 23133 for (final e in iterable) { | 23083 for (final e in iterable) { |
| 23134 if (f(e)) return true; | 23084 if (f(e)) return true; |
| 23135 } | 23085 } |
| 23136 return false; | 23086 return false; |
| 23137 } | 23087 } |
| 23138 | 23088 |
| 23139 static bool every(Iterable<Object> iterable, bool f(Object o)) { | 23089 static bool every(Iterable<Object> iterable, bool f(Object o)) { |
| 23140 for (final e in iterable) { | 23090 for (final e in iterable) { |
| 23141 if (!f(e)) return false; | 23091 if (!f(e)) return false; |
| 23142 } | 23092 } |
| 23143 return true; | 23093 return true; |
| 23144 } | 23094 } |
| 23145 | 23095 |
| 23146 static List where(Iterable<Object> source, | |
| 23147 List<Object> destination, | |
| 23148 bool f(o)) { | |
| 23149 for (final e in source) { | |
| 23150 if (f(e)) destination.add(e); | |
| 23151 } | |
| 23152 return destination; | |
| 23153 } | |
| 23154 | |
| 23155 static bool isEmpty(Iterable<Object> iterable) { | 23096 static bool isEmpty(Iterable<Object> iterable) { |
| 23156 return !iterable.iterator.moveNext(); | 23097 return !iterable.iterator.moveNext(); |
| 23157 } | 23098 } |
| 23158 } | 23099 } |
| 23159 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 23100 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 23160 // for details. All rights reserved. Use of this source code is governed by a | 23101 // for details. All rights reserved. Use of this source code is governed by a |
| 23161 // BSD-style license that can be found in the LICENSE file. | 23102 // BSD-style license that can be found in the LICENSE file. |
| 23162 | 23103 |
| 23163 | 23104 |
| 23164 class _HttpRequestUtils { | 23105 class _HttpRequestUtils { |
| (...skipping 1671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 24836 if (length < 0) throw new ArgumentError('length'); | 24777 if (length < 0) throw new ArgumentError('length'); |
| 24837 if (start < 0) throw new RangeError.value(start); | 24778 if (start < 0) throw new RangeError.value(start); |
| 24838 int end = start + length; | 24779 int end = start + length; |
| 24839 if (end > a.length) throw new RangeError.value(end); | 24780 if (end > a.length) throw new RangeError.value(end); |
| 24840 for (int i = start; i < end; i++) { | 24781 for (int i = start; i < end; i++) { |
| 24841 accumulator.add(a[i]); | 24782 accumulator.add(a[i]); |
| 24842 } | 24783 } |
| 24843 return accumulator; | 24784 return accumulator; |
| 24844 } | 24785 } |
| 24845 } | 24786 } |
| OLD | NEW |