OLD | NEW |
1 library html; | 1 library html; |
2 | 2 |
3 import 'dart:async'; | 3 import 'dart:async'; |
4 import 'dart:collection'; | 4 import 'dart:collection'; |
5 import 'dart:html_common'; | 5 import 'dart:html_common'; |
6 import 'dart:indexed_db'; | 6 import 'dart:indexed_db'; |
7 import 'dart:isolate'; | 7 import 'dart:isolate'; |
8 import 'dart:json' as json; | 8 import 'dart:json' as json; |
9 import 'dart:math'; | 9 import 'dart:math'; |
10 import 'dart:svg' as svg; | 10 import 'dart:svg' as svg; |
(...skipping 6667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6678 if (length == 1) return this[0]; | 6678 if (length == 1) return this[0]; |
6679 if (length == 0) throw new StateError("No elements"); | 6679 if (length == 0) throw new StateError("No elements"); |
6680 throw new StateError("More than one element"); | 6680 throw new StateError("More than one element"); |
6681 } | 6681 } |
6682 | 6682 |
6683 DomMimeType min([int compare(DomMimeType a, DomMimeType b)]) => IterableMixinW
orkaround.min(this, compare); | 6683 DomMimeType min([int compare(DomMimeType a, DomMimeType b)]) => IterableMixinW
orkaround.min(this, compare); |
6684 | 6684 |
6685 DomMimeType max([int compare(DomMimeType a, DomMimeType b)]) => IterableMixinW
orkaround.max(this, compare); | 6685 DomMimeType max([int compare(DomMimeType a, DomMimeType b)]) => IterableMixinW
orkaround.max(this, compare); |
6686 | 6686 |
6687 DomMimeType removeAt(int pos) { | 6687 DomMimeType removeAt(int pos) { |
6688 throw new UnsupportedError("Cannot removeAt on immutable List."); | 6688 throw new UnsupportedError("Cannot remove from immutable List."); |
6689 } | 6689 } |
6690 | 6690 |
6691 DomMimeType removeLast() { | 6691 DomMimeType removeLast() { |
6692 throw new UnsupportedError("Cannot removeLast on immutable List."); | 6692 throw new UnsupportedError("Cannot remove from immutable List."); |
| 6693 } |
| 6694 |
| 6695 void remove(Object object) { |
| 6696 throw new UnsupportedError("Cannot remove from immutable List."); |
| 6697 } |
| 6698 |
| 6699 void removeAll(Iterable elements) { |
| 6700 throw new UnsupportedError("Cannot remove from immutable List."); |
| 6701 } |
| 6702 |
| 6703 void retainAll(Iterable elements) { |
| 6704 throw new UnsupportedError("Cannot remove from immutable List."); |
| 6705 } |
| 6706 |
| 6707 void removeMatching(bool test(DomMimeType element)) { |
| 6708 throw new UnsupportedError("Cannot remove from immutable List."); |
| 6709 } |
| 6710 |
| 6711 void retainMatching(bool test(DomMimeType element)) { |
| 6712 throw new UnsupportedError("Cannot remove from immutable List."); |
6693 } | 6713 } |
6694 | 6714 |
6695 void setRange(int start, int rangeLength, List<DomMimeType> from, [int startFr
om]) { | 6715 void setRange(int start, int rangeLength, List<DomMimeType> from, [int startFr
om]) { |
6696 throw new UnsupportedError("Cannot setRange on immutable List."); | 6716 throw new UnsupportedError("Cannot setRange on immutable List."); |
6697 } | 6717 } |
6698 | 6718 |
6699 void removeRange(int start, int rangeLength) { | 6719 void removeRange(int start, int rangeLength) { |
6700 throw new UnsupportedError("Cannot removeRange on immutable List."); | 6720 throw new UnsupportedError("Cannot removeRange on immutable List."); |
6701 } | 6721 } |
6702 | 6722 |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6890 if (length == 1) return this[0]; | 6910 if (length == 1) return this[0]; |
6891 if (length == 0) throw new StateError("No elements"); | 6911 if (length == 0) throw new StateError("No elements"); |
6892 throw new StateError("More than one element"); | 6912 throw new StateError("More than one element"); |
6893 } | 6913 } |
6894 | 6914 |
6895 DomPlugin min([int compare(DomPlugin a, DomPlugin b)]) => IterableMixinWorkaro
und.min(this, compare); | 6915 DomPlugin min([int compare(DomPlugin a, DomPlugin b)]) => IterableMixinWorkaro
und.min(this, compare); |
6896 | 6916 |
6897 DomPlugin max([int compare(DomPlugin a, DomPlugin b)]) => IterableMixinWorkaro
und.max(this, compare); | 6917 DomPlugin max([int compare(DomPlugin a, DomPlugin b)]) => IterableMixinWorkaro
und.max(this, compare); |
6898 | 6918 |
6899 DomPlugin removeAt(int pos) { | 6919 DomPlugin removeAt(int pos) { |
6900 throw new UnsupportedError("Cannot removeAt on immutable List."); | 6920 throw new UnsupportedError("Cannot remove from immutable List."); |
6901 } | 6921 } |
6902 | 6922 |
6903 DomPlugin removeLast() { | 6923 DomPlugin removeLast() { |
6904 throw new UnsupportedError("Cannot removeLast on immutable List."); | 6924 throw new UnsupportedError("Cannot remove from immutable List."); |
| 6925 } |
| 6926 |
| 6927 void remove(Object object) { |
| 6928 throw new UnsupportedError("Cannot remove from immutable List."); |
| 6929 } |
| 6930 |
| 6931 void removeAll(Iterable elements) { |
| 6932 throw new UnsupportedError("Cannot remove from immutable List."); |
| 6933 } |
| 6934 |
| 6935 void retainAll(Iterable elements) { |
| 6936 throw new UnsupportedError("Cannot remove from immutable List."); |
| 6937 } |
| 6938 |
| 6939 void removeMatching(bool test(DomPlugin element)) { |
| 6940 throw new UnsupportedError("Cannot remove from immutable List."); |
| 6941 } |
| 6942 |
| 6943 void retainMatching(bool test(DomPlugin element)) { |
| 6944 throw new UnsupportedError("Cannot remove from immutable List."); |
6905 } | 6945 } |
6906 | 6946 |
6907 void setRange(int start, int rangeLength, List<DomPlugin> from, [int startFrom
]) { | 6947 void setRange(int start, int rangeLength, List<DomPlugin> from, [int startFrom
]) { |
6908 throw new UnsupportedError("Cannot setRange on immutable List."); | 6948 throw new UnsupportedError("Cannot setRange on immutable List."); |
6909 } | 6949 } |
6910 | 6950 |
6911 void removeRange(int start, int rangeLength) { | 6951 void removeRange(int start, int rangeLength) { |
6912 throw new UnsupportedError("Cannot removeRange on immutable List."); | 6952 throw new UnsupportedError("Cannot removeRange on immutable List."); |
6913 } | 6953 } |
6914 | 6954 |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7161 if (length == 1) return this[0]; | 7201 if (length == 1) return this[0]; |
7162 if (length == 0) throw new StateError("No elements"); | 7202 if (length == 0) throw new StateError("No elements"); |
7163 throw new StateError("More than one element"); | 7203 throw new StateError("More than one element"); |
7164 } | 7204 } |
7165 | 7205 |
7166 String min([int compare(String a, String b)]) => IterableMixinWorkaround.min(t
his, compare); | 7206 String min([int compare(String a, String b)]) => IterableMixinWorkaround.min(t
his, compare); |
7167 | 7207 |
7168 String max([int compare(String a, String b)]) => IterableMixinWorkaround.max(t
his, compare); | 7208 String max([int compare(String a, String b)]) => IterableMixinWorkaround.max(t
his, compare); |
7169 | 7209 |
7170 String removeAt(int pos) { | 7210 String removeAt(int pos) { |
7171 throw new UnsupportedError("Cannot removeAt on immutable List."); | 7211 throw new UnsupportedError("Cannot remove from immutable List."); |
7172 } | 7212 } |
7173 | 7213 |
7174 String removeLast() { | 7214 String removeLast() { |
7175 throw new UnsupportedError("Cannot removeLast on immutable List."); | 7215 throw new UnsupportedError("Cannot remove from immutable List."); |
| 7216 } |
| 7217 |
| 7218 void remove(Object object) { |
| 7219 throw new UnsupportedError("Cannot remove from immutable List."); |
| 7220 } |
| 7221 |
| 7222 void removeAll(Iterable elements) { |
| 7223 throw new UnsupportedError("Cannot remove from immutable List."); |
| 7224 } |
| 7225 |
| 7226 void retainAll(Iterable elements) { |
| 7227 throw new UnsupportedError("Cannot remove from immutable List."); |
| 7228 } |
| 7229 |
| 7230 void removeMatching(bool test(String element)) { |
| 7231 throw new UnsupportedError("Cannot remove from immutable List."); |
| 7232 } |
| 7233 |
| 7234 void retainMatching(bool test(String element)) { |
| 7235 throw new UnsupportedError("Cannot remove from immutable List."); |
7176 } | 7236 } |
7177 | 7237 |
7178 void setRange(int start, int rangeLength, List<String> from, [int startFrom])
{ | 7238 void setRange(int start, int rangeLength, List<String> from, [int startFrom])
{ |
7179 throw new UnsupportedError("Cannot setRange on immutable List."); | 7239 throw new UnsupportedError("Cannot setRange on immutable List."); |
7180 } | 7240 } |
7181 | 7241 |
7182 void removeRange(int start, int rangeLength) { | 7242 void removeRange(int start, int rangeLength) { |
7183 throw new UnsupportedError("Cannot removeRange on immutable List."); | 7243 throw new UnsupportedError("Cannot removeRange on immutable List."); |
7184 } | 7244 } |
7185 | 7245 |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7343 } | 7403 } |
7344 | 7404 |
7345 Element operator [](int index) { | 7405 Element operator [](int index) { |
7346 return _childElements[index]; | 7406 return _childElements[index]; |
7347 } | 7407 } |
7348 | 7408 |
7349 void operator []=(int index, Element value) { | 7409 void operator []=(int index, Element value) { |
7350 _element.$dom_replaceChild(value, _childElements[index]); | 7410 _element.$dom_replaceChild(value, _childElements[index]); |
7351 } | 7411 } |
7352 | 7412 |
7353 void set length(int newLength) { | 7413 void set length(int newLength) { |
7354 // TODO(jacobr): remove children when length is reduced. | 7414 // TODO(jacobr): remove children when length is reduced. |
7355 throw new UnsupportedError(''); | 7415 throw new UnsupportedError(''); |
7356 } | 7416 } |
7357 | 7417 |
7358 Element add(Element value) { | 7418 Element add(Element value) { |
7359 _element.$dom_appendChild(value); | 7419 _element.$dom_appendChild(value); |
7360 return value; | 7420 return value; |
7361 } | 7421 } |
7362 | 7422 |
7363 Element addLast(Element value) => add(value); | 7423 Element addLast(Element value) => add(value); |
7364 | 7424 |
7365 Iterator<Element> get iterator => toList().iterator; | 7425 Iterator<Element> get iterator => toList().iterator; |
7366 | 7426 |
7367 void addAll(Iterable<Element> iterable) { | 7427 void addAll(Iterable<Element> iterable) { |
7368 for (Element element in iterable) { | 7428 for (Element element in iterable) { |
7369 _element.$dom_appendChild(element); | 7429 _element.$dom_appendChild(element); |
7370 } | 7430 } |
7371 } | 7431 } |
7372 | 7432 |
7373 void sort([int compare(Element a, Element b)]) { | 7433 void sort([int compare(Element a, Element b)]) { |
7374 throw new UnsupportedError('TODO(jacobr): should we impl?'); | 7434 throw new UnsupportedError('TODO(jacobr): should we impl?'); |
7375 } | 7435 } |
7376 | 7436 |
7377 dynamic reduce(dynamic initialValue, | 7437 dynamic reduce(dynamic initialValue, |
7378 dynamic combine(dynamic previousValue, Element element)) { | 7438 dynamic combine(dynamic previousValue, Element element)) { |
7379 return IterableMixinWorkaround.reduce(this, initialValue, combine); | 7439 return IterableMixinWorkaround.reduce(this, initialValue, combine); |
7380 } | 7440 } |
7381 | 7441 |
7382 void setRange(int start, int rangeLength, List from, [int startFrom = 0]) { | 7442 void setRange(int start, int rangeLength, List from, [int startFrom = 0]) { |
7383 throw new UnimplementedError(); | 7443 throw new UnimplementedError(); |
7384 } | 7444 } |
7385 | 7445 |
| 7446 void remove(Object object) { |
| 7447 if (object is Element) { |
| 7448 Element element = object; |
| 7449 if (identical(element.parentNode, this)) { |
| 7450 _element.$dom_removeChild(element); |
| 7451 } |
| 7452 } |
| 7453 } |
| 7454 |
| 7455 void removeAll(Iterable elements) { |
| 7456 Collections.removeAll(this, elements); |
| 7457 } |
| 7458 |
| 7459 void retainAll(Iterable elements) { |
| 7460 Collections.retainAll(this, elements); |
| 7461 } |
| 7462 |
| 7463 void removeMatching(bool test(Element element)) { |
| 7464 Collections.removeMatching(this, test); |
| 7465 } |
| 7466 |
| 7467 void retainMatching(bool test(Element element)) { |
| 7468 Collections.retainMatching(this, test); |
| 7469 } |
| 7470 |
7386 void removeRange(int start, int rangeLength) { | 7471 void removeRange(int start, int rangeLength) { |
7387 throw new UnimplementedError(); | 7472 throw new UnimplementedError(); |
7388 } | 7473 } |
7389 | 7474 |
7390 void insertRange(int start, int rangeLength, [initialValue = null]) { | 7475 void insertRange(int start, int rangeLength, [initialValue = null]) { |
7391 throw new UnimplementedError(); | 7476 throw new UnimplementedError(); |
7392 } | 7477 } |
7393 | 7478 |
7394 List getRange(int start, int rangeLength) => | 7479 List getRange(int start, int rangeLength) => |
7395 new _FrozenElementList._wrap(Lists.getRange(this, start, rangeLength, | 7480 new _FrozenElementList._wrap(Lists.getRange(this, start, rangeLength, |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7602 } | 7687 } |
7603 | 7688 |
7604 Element removeAt(int index) { | 7689 Element removeAt(int index) { |
7605 throw new UnsupportedError(''); | 7690 throw new UnsupportedError(''); |
7606 } | 7691 } |
7607 | 7692 |
7608 Element removeLast() { | 7693 Element removeLast() { |
7609 throw new UnsupportedError(''); | 7694 throw new UnsupportedError(''); |
7610 } | 7695 } |
7611 | 7696 |
| 7697 void remove(Object element) { |
| 7698 throw new UnsupportedError(''); |
| 7699 } |
| 7700 |
| 7701 void removeAll(Iterable elements) { |
| 7702 throw new UnsupportedError(''); |
| 7703 } |
| 7704 |
| 7705 void retainAll(Iterable elements) { |
| 7706 throw new UnsupportedError(''); |
| 7707 } |
| 7708 |
| 7709 void removeMatching(bool test(Element element)) { |
| 7710 throw new UnsupportedError(''); |
| 7711 } |
| 7712 |
| 7713 void retainMatching(bool test(Element element)) { |
| 7714 throw new UnsupportedError(''); |
| 7715 } |
| 7716 |
7612 Element get first => _nodeList.first; | 7717 Element get first => _nodeList.first; |
7613 | 7718 |
7614 Element get last => _nodeList.last; | 7719 Element get last => _nodeList.last; |
7615 | 7720 |
7616 Element get single => _nodeList.single; | 7721 Element get single => _nodeList.single; |
7617 | 7722 |
7618 Element min([int compare(Element a, Element b)]) { | 7723 Element min([int compare(Element a, Element b)]) { |
7619 return IterableMixinWorkaround.min(this, compare); | 7724 return IterableMixinWorkaround.min(this, compare); |
7620 } | 7725 } |
7621 | 7726 |
(...skipping 2016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9638 if (length == 1) return this[0]; | 9743 if (length == 1) return this[0]; |
9639 if (length == 0) throw new StateError("No elements"); | 9744 if (length == 0) throw new StateError("No elements"); |
9640 throw new StateError("More than one element"); | 9745 throw new StateError("More than one element"); |
9641 } | 9746 } |
9642 | 9747 |
9643 File min([int compare(File a, File b)]) => IterableMixinWorkaround.min(this, c
ompare); | 9748 File min([int compare(File a, File b)]) => IterableMixinWorkaround.min(this, c
ompare); |
9644 | 9749 |
9645 File max([int compare(File a, File b)]) => IterableMixinWorkaround.max(this, c
ompare); | 9750 File max([int compare(File a, File b)]) => IterableMixinWorkaround.max(this, c
ompare); |
9646 | 9751 |
9647 File removeAt(int pos) { | 9752 File removeAt(int pos) { |
9648 throw new UnsupportedError("Cannot removeAt on immutable List."); | 9753 throw new UnsupportedError("Cannot remove from immutable List."); |
9649 } | 9754 } |
9650 | 9755 |
9651 File removeLast() { | 9756 File removeLast() { |
9652 throw new UnsupportedError("Cannot removeLast on immutable List."); | 9757 throw new UnsupportedError("Cannot remove from immutable List."); |
| 9758 } |
| 9759 |
| 9760 void remove(Object object) { |
| 9761 throw new UnsupportedError("Cannot remove from immutable List."); |
| 9762 } |
| 9763 |
| 9764 void removeAll(Iterable elements) { |
| 9765 throw new UnsupportedError("Cannot remove from immutable List."); |
| 9766 } |
| 9767 |
| 9768 void retainAll(Iterable elements) { |
| 9769 throw new UnsupportedError("Cannot remove from immutable List."); |
| 9770 } |
| 9771 |
| 9772 void removeMatching(bool test(File element)) { |
| 9773 throw new UnsupportedError("Cannot remove from immutable List."); |
| 9774 } |
| 9775 |
| 9776 void retainMatching(bool test(File element)) { |
| 9777 throw new UnsupportedError("Cannot remove from immutable List."); |
9653 } | 9778 } |
9654 | 9779 |
9655 void setRange(int start, int rangeLength, List<File> from, [int startFrom]) { | 9780 void setRange(int start, int rangeLength, List<File> from, [int startFrom]) { |
9656 throw new UnsupportedError("Cannot setRange on immutable List."); | 9781 throw new UnsupportedError("Cannot setRange on immutable List."); |
9657 } | 9782 } |
9658 | 9783 |
9659 void removeRange(int start, int rangeLength) { | 9784 void removeRange(int start, int rangeLength) { |
9660 throw new UnsupportedError("Cannot removeRange on immutable List."); | 9785 throw new UnsupportedError("Cannot removeRange on immutable List."); |
9661 } | 9786 } |
9662 | 9787 |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10128 if (length == 1) return this[0]; | 10253 if (length == 1) return this[0]; |
10129 if (length == 0) throw new StateError("No elements"); | 10254 if (length == 0) throw new StateError("No elements"); |
10130 throw new StateError("More than one element"); | 10255 throw new StateError("More than one element"); |
10131 } | 10256 } |
10132 | 10257 |
10133 num min([int compare(num a, num b)]) => IterableMixinWorkaround.min(this, comp
are); | 10258 num min([int compare(num a, num b)]) => IterableMixinWorkaround.min(this, comp
are); |
10134 | 10259 |
10135 num max([int compare(num a, num b)]) => IterableMixinWorkaround.max(this, comp
are); | 10260 num max([int compare(num a, num b)]) => IterableMixinWorkaround.max(this, comp
are); |
10136 | 10261 |
10137 num removeAt(int pos) { | 10262 num removeAt(int pos) { |
10138 throw new UnsupportedError("Cannot removeAt on immutable List."); | 10263 throw new UnsupportedError("Cannot remove from immutable List."); |
10139 } | 10264 } |
10140 | 10265 |
10141 num removeLast() { | 10266 num removeLast() { |
10142 throw new UnsupportedError("Cannot removeLast on immutable List."); | 10267 throw new UnsupportedError("Cannot remove from immutable List."); |
| 10268 } |
| 10269 |
| 10270 void remove(Object object) { |
| 10271 throw new UnsupportedError("Cannot remove from immutable List."); |
| 10272 } |
| 10273 |
| 10274 void removeAll(Iterable elements) { |
| 10275 throw new UnsupportedError("Cannot remove from immutable List."); |
| 10276 } |
| 10277 |
| 10278 void retainAll(Iterable elements) { |
| 10279 throw new UnsupportedError("Cannot remove from immutable List."); |
| 10280 } |
| 10281 |
| 10282 void removeMatching(bool test(num element)) { |
| 10283 throw new UnsupportedError("Cannot remove from immutable List."); |
| 10284 } |
| 10285 |
| 10286 void retainMatching(bool test(num element)) { |
| 10287 throw new UnsupportedError("Cannot remove from immutable List."); |
10143 } | 10288 } |
10144 | 10289 |
10145 void setRange(int start, int rangeLength, List<num> from, [int startFrom]) { | 10290 void setRange(int start, int rangeLength, List<num> from, [int startFrom]) { |
10146 throw new UnsupportedError("Cannot setRange on immutable List."); | 10291 throw new UnsupportedError("Cannot setRange on immutable List."); |
10147 } | 10292 } |
10148 | 10293 |
10149 void removeRange(int start, int rangeLength) { | 10294 void removeRange(int start, int rangeLength) { |
10150 throw new UnsupportedError("Cannot removeRange on immutable List."); | 10295 throw new UnsupportedError("Cannot removeRange on immutable List."); |
10151 } | 10296 } |
10152 | 10297 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10304 if (length == 1) return this[0]; | 10449 if (length == 1) return this[0]; |
10305 if (length == 0) throw new StateError("No elements"); | 10450 if (length == 0) throw new StateError("No elements"); |
10306 throw new StateError("More than one element"); | 10451 throw new StateError("More than one element"); |
10307 } | 10452 } |
10308 | 10453 |
10309 num min([int compare(num a, num b)]) => IterableMixinWorkaround.min(this, comp
are); | 10454 num min([int compare(num a, num b)]) => IterableMixinWorkaround.min(this, comp
are); |
10310 | 10455 |
10311 num max([int compare(num a, num b)]) => IterableMixinWorkaround.max(this, comp
are); | 10456 num max([int compare(num a, num b)]) => IterableMixinWorkaround.max(this, comp
are); |
10312 | 10457 |
10313 num removeAt(int pos) { | 10458 num removeAt(int pos) { |
10314 throw new UnsupportedError("Cannot removeAt on immutable List."); | 10459 throw new UnsupportedError("Cannot remove from immutable List."); |
10315 } | 10460 } |
10316 | 10461 |
10317 num removeLast() { | 10462 num removeLast() { |
10318 throw new UnsupportedError("Cannot removeLast on immutable List."); | 10463 throw new UnsupportedError("Cannot remove from immutable List."); |
| 10464 } |
| 10465 |
| 10466 void remove(Object object) { |
| 10467 throw new UnsupportedError("Cannot remove from immutable List."); |
| 10468 } |
| 10469 |
| 10470 void removeAll(Iterable elements) { |
| 10471 throw new UnsupportedError("Cannot remove from immutable List."); |
| 10472 } |
| 10473 |
| 10474 void retainAll(Iterable elements) { |
| 10475 throw new UnsupportedError("Cannot remove from immutable List."); |
| 10476 } |
| 10477 |
| 10478 void removeMatching(bool test(num element)) { |
| 10479 throw new UnsupportedError("Cannot remove from immutable List."); |
| 10480 } |
| 10481 |
| 10482 void retainMatching(bool test(num element)) { |
| 10483 throw new UnsupportedError("Cannot remove from immutable List."); |
10319 } | 10484 } |
10320 | 10485 |
10321 void setRange(int start, int rangeLength, List<num> from, [int startFrom]) { | 10486 void setRange(int start, int rangeLength, List<num> from, [int startFrom]) { |
10322 throw new UnsupportedError("Cannot setRange on immutable List."); | 10487 throw new UnsupportedError("Cannot setRange on immutable List."); |
10323 } | 10488 } |
10324 | 10489 |
10325 void removeRange(int start, int rangeLength) { | 10490 void removeRange(int start, int rangeLength) { |
10326 throw new UnsupportedError("Cannot removeRange on immutable List."); | 10491 throw new UnsupportedError("Cannot removeRange on immutable List."); |
10327 } | 10492 } |
10328 | 10493 |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10730 if (length == 1) return this[0]; | 10895 if (length == 1) return this[0]; |
10731 if (length == 0) throw new StateError("No elements"); | 10896 if (length == 0) throw new StateError("No elements"); |
10732 throw new StateError("More than one element"); | 10897 throw new StateError("More than one element"); |
10733 } | 10898 } |
10734 | 10899 |
10735 Node min([int compare(Node a, Node b)]) => IterableMixinWorkaround.min(this, c
ompare); | 10900 Node min([int compare(Node a, Node b)]) => IterableMixinWorkaround.min(this, c
ompare); |
10736 | 10901 |
10737 Node max([int compare(Node a, Node b)]) => IterableMixinWorkaround.max(this, c
ompare); | 10902 Node max([int compare(Node a, Node b)]) => IterableMixinWorkaround.max(this, c
ompare); |
10738 | 10903 |
10739 Node removeAt(int pos) { | 10904 Node removeAt(int pos) { |
10740 throw new UnsupportedError("Cannot removeAt on immutable List."); | 10905 throw new UnsupportedError("Cannot remove from immutable List."); |
10741 } | 10906 } |
10742 | 10907 |
10743 Node removeLast() { | 10908 Node removeLast() { |
10744 throw new UnsupportedError("Cannot removeLast on immutable List."); | 10909 throw new UnsupportedError("Cannot remove from immutable List."); |
| 10910 } |
| 10911 |
| 10912 void remove(Object object) { |
| 10913 throw new UnsupportedError("Cannot remove from immutable List."); |
| 10914 } |
| 10915 |
| 10916 void removeAll(Iterable elements) { |
| 10917 throw new UnsupportedError("Cannot remove from immutable List."); |
| 10918 } |
| 10919 |
| 10920 void retainAll(Iterable elements) { |
| 10921 throw new UnsupportedError("Cannot remove from immutable List."); |
| 10922 } |
| 10923 |
| 10924 void removeMatching(bool test(Node element)) { |
| 10925 throw new UnsupportedError("Cannot remove from immutable List."); |
| 10926 } |
| 10927 |
| 10928 void retainMatching(bool test(Node element)) { |
| 10929 throw new UnsupportedError("Cannot remove from immutable List."); |
10745 } | 10930 } |
10746 | 10931 |
10747 void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { | 10932 void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { |
10748 throw new UnsupportedError("Cannot setRange on immutable List."); | 10933 throw new UnsupportedError("Cannot setRange on immutable List."); |
10749 } | 10934 } |
10750 | 10935 |
10751 void removeRange(int start, int rangeLength) { | 10936 void removeRange(int start, int rangeLength) { |
10752 throw new UnsupportedError("Cannot removeRange on immutable List."); | 10937 throw new UnsupportedError("Cannot removeRange on immutable List."); |
10753 } | 10938 } |
10754 | 10939 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10901 if (length == 1) return this[0]; | 11086 if (length == 1) return this[0]; |
10902 if (length == 0) throw new StateError("No elements"); | 11087 if (length == 0) throw new StateError("No elements"); |
10903 throw new StateError("More than one element"); | 11088 throw new StateError("More than one element"); |
10904 } | 11089 } |
10905 | 11090 |
10906 Node min([int compare(Node a, Node b)]) => IterableMixinWorkaround.min(this, c
ompare); | 11091 Node min([int compare(Node a, Node b)]) => IterableMixinWorkaround.min(this, c
ompare); |
10907 | 11092 |
10908 Node max([int compare(Node a, Node b)]) => IterableMixinWorkaround.max(this, c
ompare); | 11093 Node max([int compare(Node a, Node b)]) => IterableMixinWorkaround.max(this, c
ompare); |
10909 | 11094 |
10910 Node removeAt(int pos) { | 11095 Node removeAt(int pos) { |
10911 throw new UnsupportedError("Cannot removeAt on immutable List."); | 11096 throw new UnsupportedError("Cannot remove from immutable List."); |
10912 } | 11097 } |
10913 | 11098 |
10914 Node removeLast() { | 11099 Node removeLast() { |
10915 throw new UnsupportedError("Cannot removeLast on immutable List."); | 11100 throw new UnsupportedError("Cannot remove from immutable List."); |
| 11101 } |
| 11102 |
| 11103 void remove(Object object) { |
| 11104 throw new UnsupportedError("Cannot remove from immutable List."); |
| 11105 } |
| 11106 |
| 11107 void removeAll(Iterable elements) { |
| 11108 throw new UnsupportedError("Cannot remove from immutable List."); |
| 11109 } |
| 11110 |
| 11111 void retainAll(Iterable elements) { |
| 11112 throw new UnsupportedError("Cannot remove from immutable List."); |
| 11113 } |
| 11114 |
| 11115 void removeMatching(bool test(Node element)) { |
| 11116 throw new UnsupportedError("Cannot remove from immutable List."); |
| 11117 } |
| 11118 |
| 11119 void retainMatching(bool test(Node element)) { |
| 11120 throw new UnsupportedError("Cannot remove from immutable List."); |
10916 } | 11121 } |
10917 | 11122 |
10918 void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { | 11123 void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { |
10919 throw new UnsupportedError("Cannot setRange on immutable List."); | 11124 throw new UnsupportedError("Cannot setRange on immutable List."); |
10920 } | 11125 } |
10921 | 11126 |
10922 void removeRange(int start, int rangeLength) { | 11127 void removeRange(int start, int rangeLength) { |
10923 throw new UnsupportedError("Cannot removeRange on immutable List."); | 11128 throw new UnsupportedError("Cannot removeRange on immutable List."); |
10924 } | 11129 } |
10925 | 11130 |
(...skipping 1569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12495 if (length == 1) return this[0]; | 12700 if (length == 1) return this[0]; |
12496 if (length == 0) throw new StateError("No elements"); | 12701 if (length == 0) throw new StateError("No elements"); |
12497 throw new StateError("More than one element"); | 12702 throw new StateError("More than one element"); |
12498 } | 12703 } |
12499 | 12704 |
12500 int min([int compare(int a, int b)]) => IterableMixinWorkaround.min(this, comp
are); | 12705 int min([int compare(int a, int b)]) => IterableMixinWorkaround.min(this, comp
are); |
12501 | 12706 |
12502 int max([int compare(int a, int b)]) => IterableMixinWorkaround.max(this, comp
are); | 12707 int max([int compare(int a, int b)]) => IterableMixinWorkaround.max(this, comp
are); |
12503 | 12708 |
12504 int removeAt(int pos) { | 12709 int removeAt(int pos) { |
12505 throw new UnsupportedError("Cannot removeAt on immutable List."); | 12710 throw new UnsupportedError("Cannot remove from immutable List."); |
12506 } | 12711 } |
12507 | 12712 |
12508 int removeLast() { | 12713 int removeLast() { |
12509 throw new UnsupportedError("Cannot removeLast on immutable List."); | 12714 throw new UnsupportedError("Cannot remove from immutable List."); |
| 12715 } |
| 12716 |
| 12717 void remove(Object object) { |
| 12718 throw new UnsupportedError("Cannot remove from immutable List."); |
| 12719 } |
| 12720 |
| 12721 void removeAll(Iterable elements) { |
| 12722 throw new UnsupportedError("Cannot remove from immutable List."); |
| 12723 } |
| 12724 |
| 12725 void retainAll(Iterable elements) { |
| 12726 throw new UnsupportedError("Cannot remove from immutable List."); |
| 12727 } |
| 12728 |
| 12729 void removeMatching(bool test(int element)) { |
| 12730 throw new UnsupportedError("Cannot remove from immutable List."); |
| 12731 } |
| 12732 |
| 12733 void retainMatching(bool test(int element)) { |
| 12734 throw new UnsupportedError("Cannot remove from immutable List."); |
12510 } | 12735 } |
12511 | 12736 |
12512 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { | 12737 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { |
12513 throw new UnsupportedError("Cannot setRange on immutable List."); | 12738 throw new UnsupportedError("Cannot setRange on immutable List."); |
12514 } | 12739 } |
12515 | 12740 |
12516 void removeRange(int start, int rangeLength) { | 12741 void removeRange(int start, int rangeLength) { |
12517 throw new UnsupportedError("Cannot removeRange on immutable List."); | 12742 throw new UnsupportedError("Cannot removeRange on immutable List."); |
12518 } | 12743 } |
12519 | 12744 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12671 if (length == 1) return this[0]; | 12896 if (length == 1) return this[0]; |
12672 if (length == 0) throw new StateError("No elements"); | 12897 if (length == 0) throw new StateError("No elements"); |
12673 throw new StateError("More than one element"); | 12898 throw new StateError("More than one element"); |
12674 } | 12899 } |
12675 | 12900 |
12676 int min([int compare(int a, int b)]) => IterableMixinWorkaround.min(this, comp
are); | 12901 int min([int compare(int a, int b)]) => IterableMixinWorkaround.min(this, comp
are); |
12677 | 12902 |
12678 int max([int compare(int a, int b)]) => IterableMixinWorkaround.max(this, comp
are); | 12903 int max([int compare(int a, int b)]) => IterableMixinWorkaround.max(this, comp
are); |
12679 | 12904 |
12680 int removeAt(int pos) { | 12905 int removeAt(int pos) { |
12681 throw new UnsupportedError("Cannot removeAt on immutable List."); | 12906 throw new UnsupportedError("Cannot remove from immutable List."); |
12682 } | 12907 } |
12683 | 12908 |
12684 int removeLast() { | 12909 int removeLast() { |
12685 throw new UnsupportedError("Cannot removeLast on immutable List."); | 12910 throw new UnsupportedError("Cannot remove from immutable List."); |
| 12911 } |
| 12912 |
| 12913 void remove(Object object) { |
| 12914 throw new UnsupportedError("Cannot remove from immutable List."); |
| 12915 } |
| 12916 |
| 12917 void removeAll(Iterable elements) { |
| 12918 throw new UnsupportedError("Cannot remove from immutable List."); |
| 12919 } |
| 12920 |
| 12921 void retainAll(Iterable elements) { |
| 12922 throw new UnsupportedError("Cannot remove from immutable List."); |
| 12923 } |
| 12924 |
| 12925 void removeMatching(bool test(int element)) { |
| 12926 throw new UnsupportedError("Cannot remove from immutable List."); |
| 12927 } |
| 12928 |
| 12929 void retainMatching(bool test(int element)) { |
| 12930 throw new UnsupportedError("Cannot remove from immutable List."); |
12686 } | 12931 } |
12687 | 12932 |
12688 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { | 12933 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { |
12689 throw new UnsupportedError("Cannot setRange on immutable List."); | 12934 throw new UnsupportedError("Cannot setRange on immutable List."); |
12690 } | 12935 } |
12691 | 12936 |
12692 void removeRange(int start, int rangeLength) { | 12937 void removeRange(int start, int rangeLength) { |
12693 throw new UnsupportedError("Cannot removeRange on immutable List."); | 12938 throw new UnsupportedError("Cannot removeRange on immutable List."); |
12694 } | 12939 } |
12695 | 12940 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12847 if (length == 1) return this[0]; | 13092 if (length == 1) return this[0]; |
12848 if (length == 0) throw new StateError("No elements"); | 13093 if (length == 0) throw new StateError("No elements"); |
12849 throw new StateError("More than one element"); | 13094 throw new StateError("More than one element"); |
12850 } | 13095 } |
12851 | 13096 |
12852 int min([int compare(int a, int b)]) => IterableMixinWorkaround.min(this, comp
are); | 13097 int min([int compare(int a, int b)]) => IterableMixinWorkaround.min(this, comp
are); |
12853 | 13098 |
12854 int max([int compare(int a, int b)]) => IterableMixinWorkaround.max(this, comp
are); | 13099 int max([int compare(int a, int b)]) => IterableMixinWorkaround.max(this, comp
are); |
12855 | 13100 |
12856 int removeAt(int pos) { | 13101 int removeAt(int pos) { |
12857 throw new UnsupportedError("Cannot removeAt on immutable List."); | 13102 throw new UnsupportedError("Cannot remove from immutable List."); |
12858 } | 13103 } |
12859 | 13104 |
12860 int removeLast() { | 13105 int removeLast() { |
12861 throw new UnsupportedError("Cannot removeLast on immutable List."); | 13106 throw new UnsupportedError("Cannot remove from immutable List."); |
| 13107 } |
| 13108 |
| 13109 void remove(Object object) { |
| 13110 throw new UnsupportedError("Cannot remove from immutable List."); |
| 13111 } |
| 13112 |
| 13113 void removeAll(Iterable elements) { |
| 13114 throw new UnsupportedError("Cannot remove from immutable List."); |
| 13115 } |
| 13116 |
| 13117 void retainAll(Iterable elements) { |
| 13118 throw new UnsupportedError("Cannot remove from immutable List."); |
| 13119 } |
| 13120 |
| 13121 void removeMatching(bool test(int element)) { |
| 13122 throw new UnsupportedError("Cannot remove from immutable List."); |
| 13123 } |
| 13124 |
| 13125 void retainMatching(bool test(int element)) { |
| 13126 throw new UnsupportedError("Cannot remove from immutable List."); |
12862 } | 13127 } |
12863 | 13128 |
12864 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { | 13129 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { |
12865 throw new UnsupportedError("Cannot setRange on immutable List."); | 13130 throw new UnsupportedError("Cannot setRange on immutable List."); |
12866 } | 13131 } |
12867 | 13132 |
12868 void removeRange(int start, int rangeLength) { | 13133 void removeRange(int start, int rangeLength) { |
12869 throw new UnsupportedError("Cannot removeRange on immutable List."); | 13134 throw new UnsupportedError("Cannot removeRange on immutable List."); |
12870 } | 13135 } |
12871 | 13136 |
(...skipping 1817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14689 if (length == 1) return this[0]; | 14954 if (length == 1) return this[0]; |
14690 if (length == 0) throw new StateError("No elements"); | 14955 if (length == 0) throw new StateError("No elements"); |
14691 throw new StateError("More than one element"); | 14956 throw new StateError("More than one element"); |
14692 } | 14957 } |
14693 | 14958 |
14694 Node min([int compare(Node a, Node b)]) => IterableMixinWorkaround.min(this, c
ompare); | 14959 Node min([int compare(Node a, Node b)]) => IterableMixinWorkaround.min(this, c
ompare); |
14695 | 14960 |
14696 Node max([int compare(Node a, Node b)]) => IterableMixinWorkaround.max(this, c
ompare); | 14961 Node max([int compare(Node a, Node b)]) => IterableMixinWorkaround.max(this, c
ompare); |
14697 | 14962 |
14698 Node removeAt(int pos) { | 14963 Node removeAt(int pos) { |
14699 throw new UnsupportedError("Cannot removeAt on immutable List."); | 14964 throw new UnsupportedError("Cannot remove from immutable List."); |
14700 } | 14965 } |
14701 | 14966 |
14702 Node removeLast() { | 14967 Node removeLast() { |
14703 throw new UnsupportedError("Cannot removeLast on immutable List."); | 14968 throw new UnsupportedError("Cannot remove from immutable List."); |
| 14969 } |
| 14970 |
| 14971 void remove(Object object) { |
| 14972 throw new UnsupportedError("Cannot remove from immutable List."); |
| 14973 } |
| 14974 |
| 14975 void removeAll(Iterable elements) { |
| 14976 throw new UnsupportedError("Cannot remove from immutable List."); |
| 14977 } |
| 14978 |
| 14979 void retainAll(Iterable elements) { |
| 14980 throw new UnsupportedError("Cannot remove from immutable List."); |
| 14981 } |
| 14982 |
| 14983 void removeMatching(bool test(Node element)) { |
| 14984 throw new UnsupportedError("Cannot remove from immutable List."); |
| 14985 } |
| 14986 |
| 14987 void retainMatching(bool test(Node element)) { |
| 14988 throw new UnsupportedError("Cannot remove from immutable List."); |
14704 } | 14989 } |
14705 | 14990 |
14706 void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { | 14991 void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { |
14707 throw new UnsupportedError("Cannot setRange on immutable List."); | 14992 throw new UnsupportedError("Cannot setRange on immutable List."); |
14708 } | 14993 } |
14709 | 14994 |
14710 void removeRange(int start, int rangeLength) { | 14995 void removeRange(int start, int rangeLength) { |
14711 throw new UnsupportedError("Cannot removeRange on immutable List."); | 14996 throw new UnsupportedError("Cannot removeRange on immutable List."); |
14712 } | 14997 } |
14713 | 14998 |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14923 } | 15208 } |
14924 | 15209 |
14925 Node removeAt(int index) { | 15210 Node removeAt(int index) { |
14926 var result = this[index]; | 15211 var result = this[index]; |
14927 if (result != null) { | 15212 if (result != null) { |
14928 _this.$dom_removeChild(result); | 15213 _this.$dom_removeChild(result); |
14929 } | 15214 } |
14930 return result; | 15215 return result; |
14931 } | 15216 } |
14932 | 15217 |
| 15218 void remove(Object object) { |
| 15219 if (object is! Node) return; |
| 15220 Node node = object; |
| 15221 if (!identical(this, node.parentNode)) return; |
| 15222 _this.$dom_removeChild(node); |
| 15223 } |
| 15224 |
| 15225 void removeAll(Iterable elements) { |
| 15226 IterableMixinWorkaround.removeAll(this, elements); |
| 15227 } |
| 15228 |
| 15229 void retainAll(Iterable elements) { |
| 15230 IterableMixinWorkaround.retainAll(this, elements); |
| 15231 } |
| 15232 |
| 15233 void removeMatching(bool test(Node node)) { |
| 15234 IterableMixinWorkaround.removeMatching(this, test); |
| 15235 } |
| 15236 |
| 15237 void retainMatching(bool test(Node node)) { |
| 15238 IterableMixinWorkaround.retainMatching(this, test); |
| 15239 } |
| 15240 |
14933 void clear() { | 15241 void clear() { |
14934 _this.text = ''; | 15242 _this.text = ''; |
14935 } | 15243 } |
14936 | 15244 |
14937 void operator []=(int index, Node value) { | 15245 void operator []=(int index, Node value) { |
14938 _this.$dom_replaceChild(value, this[index]); | 15246 _this.$dom_replaceChild(value, this[index]); |
14939 } | 15247 } |
14940 | 15248 |
14941 Iterator<Node> get iterator => _this.$dom_childNodes.iterator; | 15249 Iterator<Node> get iterator => _this.$dom_childNodes.iterator; |
14942 | 15250 |
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15397 if (length == 1) return this[0]; | 15705 if (length == 1) return this[0]; |
15398 if (length == 0) throw new StateError("No elements"); | 15706 if (length == 0) throw new StateError("No elements"); |
15399 throw new StateError("More than one element"); | 15707 throw new StateError("More than one element"); |
15400 } | 15708 } |
15401 | 15709 |
15402 Node min([int compare(Node a, Node b)]) => IterableMixinWorkaround.min(this, c
ompare); | 15710 Node min([int compare(Node a, Node b)]) => IterableMixinWorkaround.min(this, c
ompare); |
15403 | 15711 |
15404 Node max([int compare(Node a, Node b)]) => IterableMixinWorkaround.max(this, c
ompare); | 15712 Node max([int compare(Node a, Node b)]) => IterableMixinWorkaround.max(this, c
ompare); |
15405 | 15713 |
15406 Node removeAt(int pos) { | 15714 Node removeAt(int pos) { |
15407 throw new UnsupportedError("Cannot removeAt on immutable List."); | 15715 throw new UnsupportedError("Cannot remove from immutable List."); |
15408 } | 15716 } |
15409 | 15717 |
15410 Node removeLast() { | 15718 Node removeLast() { |
15411 throw new UnsupportedError("Cannot removeLast on immutable List."); | 15719 throw new UnsupportedError("Cannot remove from immutable List."); |
| 15720 } |
| 15721 |
| 15722 void remove(Object object) { |
| 15723 throw new UnsupportedError("Cannot remove from immutable List."); |
| 15724 } |
| 15725 |
| 15726 void removeAll(Iterable elements) { |
| 15727 throw new UnsupportedError("Cannot remove from immutable List."); |
| 15728 } |
| 15729 |
| 15730 void retainAll(Iterable elements) { |
| 15731 throw new UnsupportedError("Cannot remove from immutable List."); |
| 15732 } |
| 15733 |
| 15734 void removeMatching(bool test(Node element)) { |
| 15735 throw new UnsupportedError("Cannot remove from immutable List."); |
| 15736 } |
| 15737 |
| 15738 void retainMatching(bool test(Node element)) { |
| 15739 throw new UnsupportedError("Cannot remove from immutable List."); |
15412 } | 15740 } |
15413 | 15741 |
15414 void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { | 15742 void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { |
15415 throw new UnsupportedError("Cannot setRange on immutable List."); | 15743 throw new UnsupportedError("Cannot setRange on immutable List."); |
15416 } | 15744 } |
15417 | 15745 |
15418 void removeRange(int start, int rangeLength) { | 15746 void removeRange(int start, int rangeLength) { |
15419 throw new UnsupportedError("Cannot removeRange on immutable List."); | 15747 throw new UnsupportedError("Cannot removeRange on immutable List."); |
15420 } | 15748 } |
15421 | 15749 |
(...skipping 2043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17465 if (length == 1) return this[0]; | 17793 if (length == 1) return this[0]; |
17466 if (length == 0) throw new StateError("No elements"); | 17794 if (length == 0) throw new StateError("No elements"); |
17467 throw new StateError("More than one element"); | 17795 throw new StateError("More than one element"); |
17468 } | 17796 } |
17469 | 17797 |
17470 SourceBuffer min([int compare(SourceBuffer a, SourceBuffer b)]) => IterableMix
inWorkaround.min(this, compare); | 17798 SourceBuffer min([int compare(SourceBuffer a, SourceBuffer b)]) => IterableMix
inWorkaround.min(this, compare); |
17471 | 17799 |
17472 SourceBuffer max([int compare(SourceBuffer a, SourceBuffer b)]) => IterableMix
inWorkaround.max(this, compare); | 17800 SourceBuffer max([int compare(SourceBuffer a, SourceBuffer b)]) => IterableMix
inWorkaround.max(this, compare); |
17473 | 17801 |
17474 SourceBuffer removeAt(int pos) { | 17802 SourceBuffer removeAt(int pos) { |
17475 throw new UnsupportedError("Cannot removeAt on immutable List."); | 17803 throw new UnsupportedError("Cannot remove from immutable List."); |
17476 } | 17804 } |
17477 | 17805 |
17478 SourceBuffer removeLast() { | 17806 SourceBuffer removeLast() { |
17479 throw new UnsupportedError("Cannot removeLast on immutable List."); | 17807 throw new UnsupportedError("Cannot remove from immutable List."); |
| 17808 } |
| 17809 |
| 17810 void remove(Object object) { |
| 17811 throw new UnsupportedError("Cannot remove from immutable List."); |
| 17812 } |
| 17813 |
| 17814 void removeAll(Iterable elements) { |
| 17815 throw new UnsupportedError("Cannot remove from immutable List."); |
| 17816 } |
| 17817 |
| 17818 void retainAll(Iterable elements) { |
| 17819 throw new UnsupportedError("Cannot remove from immutable List."); |
| 17820 } |
| 17821 |
| 17822 void removeMatching(bool test(SourceBuffer element)) { |
| 17823 throw new UnsupportedError("Cannot remove from immutable List."); |
| 17824 } |
| 17825 |
| 17826 void retainMatching(bool test(SourceBuffer element)) { |
| 17827 throw new UnsupportedError("Cannot remove from immutable List."); |
17480 } | 17828 } |
17481 | 17829 |
17482 void setRange(int start, int rangeLength, List<SourceBuffer> from, [int startF
rom]) { | 17830 void setRange(int start, int rangeLength, List<SourceBuffer> from, [int startF
rom]) { |
17483 throw new UnsupportedError("Cannot setRange on immutable List."); | 17831 throw new UnsupportedError("Cannot setRange on immutable List."); |
17484 } | 17832 } |
17485 | 17833 |
17486 void removeRange(int start, int rangeLength) { | 17834 void removeRange(int start, int rangeLength) { |
17487 throw new UnsupportedError("Cannot removeRange on immutable List."); | 17835 throw new UnsupportedError("Cannot removeRange on immutable List."); |
17488 } | 17836 } |
17489 | 17837 |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17700 if (length == 1) return this[0]; | 18048 if (length == 1) return this[0]; |
17701 if (length == 0) throw new StateError("No elements"); | 18049 if (length == 0) throw new StateError("No elements"); |
17702 throw new StateError("More than one element"); | 18050 throw new StateError("More than one element"); |
17703 } | 18051 } |
17704 | 18052 |
17705 SpeechGrammar min([int compare(SpeechGrammar a, SpeechGrammar b)]) => Iterable
MixinWorkaround.min(this, compare); | 18053 SpeechGrammar min([int compare(SpeechGrammar a, SpeechGrammar b)]) => Iterable
MixinWorkaround.min(this, compare); |
17706 | 18054 |
17707 SpeechGrammar max([int compare(SpeechGrammar a, SpeechGrammar b)]) => Iterable
MixinWorkaround.max(this, compare); | 18055 SpeechGrammar max([int compare(SpeechGrammar a, SpeechGrammar b)]) => Iterable
MixinWorkaround.max(this, compare); |
17708 | 18056 |
17709 SpeechGrammar removeAt(int pos) { | 18057 SpeechGrammar removeAt(int pos) { |
17710 throw new UnsupportedError("Cannot removeAt on immutable List."); | 18058 throw new UnsupportedError("Cannot remove from immutable List."); |
17711 } | 18059 } |
17712 | 18060 |
17713 SpeechGrammar removeLast() { | 18061 SpeechGrammar removeLast() { |
17714 throw new UnsupportedError("Cannot removeLast on immutable List."); | 18062 throw new UnsupportedError("Cannot remove from immutable List."); |
| 18063 } |
| 18064 |
| 18065 void remove(Object object) { |
| 18066 throw new UnsupportedError("Cannot remove from immutable List."); |
| 18067 } |
| 18068 |
| 18069 void removeAll(Iterable elements) { |
| 18070 throw new UnsupportedError("Cannot remove from immutable List."); |
| 18071 } |
| 18072 |
| 18073 void retainAll(Iterable elements) { |
| 18074 throw new UnsupportedError("Cannot remove from immutable List."); |
| 18075 } |
| 18076 |
| 18077 void removeMatching(bool test(SpeechGrammar element)) { |
| 18078 throw new UnsupportedError("Cannot remove from immutable List."); |
| 18079 } |
| 18080 |
| 18081 void retainMatching(bool test(SpeechGrammar element)) { |
| 18082 throw new UnsupportedError("Cannot remove from immutable List."); |
17715 } | 18083 } |
17716 | 18084 |
17717 void setRange(int start, int rangeLength, List<SpeechGrammar> from, [int start
From]) { | 18085 void setRange(int start, int rangeLength, List<SpeechGrammar> from, [int start
From]) { |
17718 throw new UnsupportedError("Cannot setRange on immutable List."); | 18086 throw new UnsupportedError("Cannot setRange on immutable List."); |
17719 } | 18087 } |
17720 | 18088 |
17721 void removeRange(int start, int rangeLength) { | 18089 void removeRange(int start, int rangeLength) { |
17722 throw new UnsupportedError("Cannot removeRange on immutable List."); | 18090 throw new UnsupportedError("Cannot removeRange on immutable List."); |
17723 } | 18091 } |
17724 | 18092 |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18196 if (length == 1) return this[0]; | 18564 if (length == 1) return this[0]; |
18197 if (length == 0) throw new StateError("No elements"); | 18565 if (length == 0) throw new StateError("No elements"); |
18198 throw new StateError("More than one element"); | 18566 throw new StateError("More than one element"); |
18199 } | 18567 } |
18200 | 18568 |
18201 Map min([int compare(Map a, Map b)]) => IterableMixinWorkaround.min(this, comp
are); | 18569 Map min([int compare(Map a, Map b)]) => IterableMixinWorkaround.min(this, comp
are); |
18202 | 18570 |
18203 Map max([int compare(Map a, Map b)]) => IterableMixinWorkaround.max(this, comp
are); | 18571 Map max([int compare(Map a, Map b)]) => IterableMixinWorkaround.max(this, comp
are); |
18204 | 18572 |
18205 Map removeAt(int pos) { | 18573 Map removeAt(int pos) { |
18206 throw new UnsupportedError("Cannot removeAt on immutable List."); | 18574 throw new UnsupportedError("Cannot remove from immutable List."); |
18207 } | 18575 } |
18208 | 18576 |
18209 Map removeLast() { | 18577 Map removeLast() { |
18210 throw new UnsupportedError("Cannot removeLast on immutable List."); | 18578 throw new UnsupportedError("Cannot remove from immutable List."); |
| 18579 } |
| 18580 |
| 18581 void remove(Object object) { |
| 18582 throw new UnsupportedError("Cannot remove from immutable List."); |
| 18583 } |
| 18584 |
| 18585 void removeAll(Iterable elements) { |
| 18586 throw new UnsupportedError("Cannot remove from immutable List."); |
| 18587 } |
| 18588 |
| 18589 void retainAll(Iterable elements) { |
| 18590 throw new UnsupportedError("Cannot remove from immutable List."); |
| 18591 } |
| 18592 |
| 18593 void removeMatching(bool test(Map element)) { |
| 18594 throw new UnsupportedError("Cannot remove from immutable List."); |
| 18595 } |
| 18596 |
| 18597 void retainMatching(bool test(Map element)) { |
| 18598 throw new UnsupportedError("Cannot remove from immutable List."); |
18211 } | 18599 } |
18212 | 18600 |
18213 void setRange(int start, int rangeLength, List<Map> from, [int startFrom]) { | 18601 void setRange(int start, int rangeLength, List<Map> from, [int startFrom]) { |
18214 throw new UnsupportedError("Cannot setRange on immutable List."); | 18602 throw new UnsupportedError("Cannot setRange on immutable List."); |
18215 } | 18603 } |
18216 | 18604 |
18217 void removeRange(int start, int rangeLength) { | 18605 void removeRange(int start, int rangeLength) { |
18218 throw new UnsupportedError("Cannot removeRange on immutable List."); | 18606 throw new UnsupportedError("Cannot removeRange on immutable List."); |
18219 } | 18607 } |
18220 | 18608 |
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19098 if (length == 1) return this[0]; | 19486 if (length == 1) return this[0]; |
19099 if (length == 0) throw new StateError("No elements"); | 19487 if (length == 0) throw new StateError("No elements"); |
19100 throw new StateError("More than one element"); | 19488 throw new StateError("More than one element"); |
19101 } | 19489 } |
19102 | 19490 |
19103 TextTrackCue min([int compare(TextTrackCue a, TextTrackCue b)]) => IterableMix
inWorkaround.min(this, compare); | 19491 TextTrackCue min([int compare(TextTrackCue a, TextTrackCue b)]) => IterableMix
inWorkaround.min(this, compare); |
19104 | 19492 |
19105 TextTrackCue max([int compare(TextTrackCue a, TextTrackCue b)]) => IterableMix
inWorkaround.max(this, compare); | 19493 TextTrackCue max([int compare(TextTrackCue a, TextTrackCue b)]) => IterableMix
inWorkaround.max(this, compare); |
19106 | 19494 |
19107 TextTrackCue removeAt(int pos) { | 19495 TextTrackCue removeAt(int pos) { |
19108 throw new UnsupportedError("Cannot removeAt on immutable List."); | 19496 throw new UnsupportedError("Cannot remove from immutable List."); |
19109 } | 19497 } |
19110 | 19498 |
19111 TextTrackCue removeLast() { | 19499 TextTrackCue removeLast() { |
19112 throw new UnsupportedError("Cannot removeLast on immutable List."); | 19500 throw new UnsupportedError("Cannot remove from immutable List."); |
| 19501 } |
| 19502 |
| 19503 void remove(Object object) { |
| 19504 throw new UnsupportedError("Cannot remove from immutable List."); |
| 19505 } |
| 19506 |
| 19507 void removeAll(Iterable elements) { |
| 19508 throw new UnsupportedError("Cannot remove from immutable List."); |
| 19509 } |
| 19510 |
| 19511 void retainAll(Iterable elements) { |
| 19512 throw new UnsupportedError("Cannot remove from immutable List."); |
| 19513 } |
| 19514 |
| 19515 void removeMatching(bool test(TextTrackCue element)) { |
| 19516 throw new UnsupportedError("Cannot remove from immutable List."); |
| 19517 } |
| 19518 |
| 19519 void retainMatching(bool test(TextTrackCue element)) { |
| 19520 throw new UnsupportedError("Cannot remove from immutable List."); |
19113 } | 19521 } |
19114 | 19522 |
19115 void setRange(int start, int rangeLength, List<TextTrackCue> from, [int startF
rom]) { | 19523 void setRange(int start, int rangeLength, List<TextTrackCue> from, [int startF
rom]) { |
19116 throw new UnsupportedError("Cannot setRange on immutable List."); | 19524 throw new UnsupportedError("Cannot setRange on immutable List."); |
19117 } | 19525 } |
19118 | 19526 |
19119 void removeRange(int start, int rangeLength) { | 19527 void removeRange(int start, int rangeLength) { |
19120 throw new UnsupportedError("Cannot removeRange on immutable List."); | 19528 throw new UnsupportedError("Cannot removeRange on immutable List."); |
19121 } | 19529 } |
19122 | 19530 |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19272 if (length == 1) return this[0]; | 19680 if (length == 1) return this[0]; |
19273 if (length == 0) throw new StateError("No elements"); | 19681 if (length == 0) throw new StateError("No elements"); |
19274 throw new StateError("More than one element"); | 19682 throw new StateError("More than one element"); |
19275 } | 19683 } |
19276 | 19684 |
19277 TextTrack min([int compare(TextTrack a, TextTrack b)]) => IterableMixinWorkaro
und.min(this, compare); | 19685 TextTrack min([int compare(TextTrack a, TextTrack b)]) => IterableMixinWorkaro
und.min(this, compare); |
19278 | 19686 |
19279 TextTrack max([int compare(TextTrack a, TextTrack b)]) => IterableMixinWorkaro
und.max(this, compare); | 19687 TextTrack max([int compare(TextTrack a, TextTrack b)]) => IterableMixinWorkaro
und.max(this, compare); |
19280 | 19688 |
19281 TextTrack removeAt(int pos) { | 19689 TextTrack removeAt(int pos) { |
19282 throw new UnsupportedError("Cannot removeAt on immutable List."); | 19690 throw new UnsupportedError("Cannot remove from immutable List."); |
19283 } | 19691 } |
19284 | 19692 |
19285 TextTrack removeLast() { | 19693 TextTrack removeLast() { |
19286 throw new UnsupportedError("Cannot removeLast on immutable List."); | 19694 throw new UnsupportedError("Cannot remove from immutable List."); |
| 19695 } |
| 19696 |
| 19697 void remove(Object object) { |
| 19698 throw new UnsupportedError("Cannot remove from immutable List."); |
| 19699 } |
| 19700 |
| 19701 void removeAll(Iterable elements) { |
| 19702 throw new UnsupportedError("Cannot remove from immutable List."); |
| 19703 } |
| 19704 |
| 19705 void retainAll(Iterable elements) { |
| 19706 throw new UnsupportedError("Cannot remove from immutable List."); |
| 19707 } |
| 19708 |
| 19709 void removeMatching(bool test(TextTrack element)) { |
| 19710 throw new UnsupportedError("Cannot remove from immutable List."); |
| 19711 } |
| 19712 |
| 19713 void retainMatching(bool test(TextTrack element)) { |
| 19714 throw new UnsupportedError("Cannot remove from immutable List."); |
19287 } | 19715 } |
19288 | 19716 |
19289 void setRange(int start, int rangeLength, List<TextTrack> from, [int startFrom
]) { | 19717 void setRange(int start, int rangeLength, List<TextTrack> from, [int startFrom
]) { |
19290 throw new UnsupportedError("Cannot setRange on immutable List."); | 19718 throw new UnsupportedError("Cannot setRange on immutable List."); |
19291 } | 19719 } |
19292 | 19720 |
19293 void removeRange(int start, int rangeLength) { | 19721 void removeRange(int start, int rangeLength) { |
19294 throw new UnsupportedError("Cannot removeRange on immutable List."); | 19722 throw new UnsupportedError("Cannot removeRange on immutable List."); |
19295 } | 19723 } |
19296 | 19724 |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19581 if (length == 1) return this[0]; | 20009 if (length == 1) return this[0]; |
19582 if (length == 0) throw new StateError("No elements"); | 20010 if (length == 0) throw new StateError("No elements"); |
19583 throw new StateError("More than one element"); | 20011 throw new StateError("More than one element"); |
19584 } | 20012 } |
19585 | 20013 |
19586 Touch min([int compare(Touch a, Touch b)]) => IterableMixinWorkaround.min(this
, compare); | 20014 Touch min([int compare(Touch a, Touch b)]) => IterableMixinWorkaround.min(this
, compare); |
19587 | 20015 |
19588 Touch max([int compare(Touch a, Touch b)]) => IterableMixinWorkaround.max(this
, compare); | 20016 Touch max([int compare(Touch a, Touch b)]) => IterableMixinWorkaround.max(this
, compare); |
19589 | 20017 |
19590 Touch removeAt(int pos) { | 20018 Touch removeAt(int pos) { |
19591 throw new UnsupportedError("Cannot removeAt on immutable List."); | 20019 throw new UnsupportedError("Cannot remove from immutable List."); |
19592 } | 20020 } |
19593 | 20021 |
19594 Touch removeLast() { | 20022 Touch removeLast() { |
19595 throw new UnsupportedError("Cannot removeLast on immutable List."); | 20023 throw new UnsupportedError("Cannot remove from immutable List."); |
| 20024 } |
| 20025 |
| 20026 void remove(Object object) { |
| 20027 throw new UnsupportedError("Cannot remove from immutable List."); |
| 20028 } |
| 20029 |
| 20030 void removeAll(Iterable elements) { |
| 20031 throw new UnsupportedError("Cannot remove from immutable List."); |
| 20032 } |
| 20033 |
| 20034 void retainAll(Iterable elements) { |
| 20035 throw new UnsupportedError("Cannot remove from immutable List."); |
| 20036 } |
| 20037 |
| 20038 void removeMatching(bool test(Touch element)) { |
| 20039 throw new UnsupportedError("Cannot remove from immutable List."); |
| 20040 } |
| 20041 |
| 20042 void retainMatching(bool test(Touch element)) { |
| 20043 throw new UnsupportedError("Cannot remove from immutable List."); |
19596 } | 20044 } |
19597 | 20045 |
19598 void setRange(int start, int rangeLength, List<Touch> from, [int startFrom]) { | 20046 void setRange(int start, int rangeLength, List<Touch> from, [int startFrom]) { |
19599 throw new UnsupportedError("Cannot setRange on immutable List."); | 20047 throw new UnsupportedError("Cannot setRange on immutable List."); |
19600 } | 20048 } |
19601 | 20049 |
19602 void removeRange(int start, int rangeLength) { | 20050 void removeRange(int start, int rangeLength) { |
19603 throw new UnsupportedError("Cannot removeRange on immutable List."); | 20051 throw new UnsupportedError("Cannot removeRange on immutable List."); |
19604 } | 20052 } |
19605 | 20053 |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19949 if (length == 1) return this[0]; | 20397 if (length == 1) return this[0]; |
19950 if (length == 0) throw new StateError("No elements"); | 20398 if (length == 0) throw new StateError("No elements"); |
19951 throw new StateError("More than one element"); | 20399 throw new StateError("More than one element"); |
19952 } | 20400 } |
19953 | 20401 |
19954 int min([int compare(int a, int b)]) => IterableMixinWorkaround.min(this, comp
are); | 20402 int min([int compare(int a, int b)]) => IterableMixinWorkaround.min(this, comp
are); |
19955 | 20403 |
19956 int max([int compare(int a, int b)]) => IterableMixinWorkaround.max(this, comp
are); | 20404 int max([int compare(int a, int b)]) => IterableMixinWorkaround.max(this, comp
are); |
19957 | 20405 |
19958 int removeAt(int pos) { | 20406 int removeAt(int pos) { |
19959 throw new UnsupportedError("Cannot removeAt on immutable List."); | 20407 throw new UnsupportedError("Cannot remove from immutable List."); |
19960 } | 20408 } |
19961 | 20409 |
19962 int removeLast() { | 20410 int removeLast() { |
19963 throw new UnsupportedError("Cannot removeLast on immutable List."); | 20411 throw new UnsupportedError("Cannot remove from immutable List."); |
| 20412 } |
| 20413 |
| 20414 void remove(Object object) { |
| 20415 throw new UnsupportedError("Cannot remove from immutable List."); |
| 20416 } |
| 20417 |
| 20418 void removeAll(Iterable elements) { |
| 20419 throw new UnsupportedError("Cannot remove from immutable List."); |
| 20420 } |
| 20421 |
| 20422 void retainAll(Iterable elements) { |
| 20423 throw new UnsupportedError("Cannot remove from immutable List."); |
| 20424 } |
| 20425 |
| 20426 void removeMatching(bool test(int element)) { |
| 20427 throw new UnsupportedError("Cannot remove from immutable List."); |
| 20428 } |
| 20429 |
| 20430 void retainMatching(bool test(int element)) { |
| 20431 throw new UnsupportedError("Cannot remove from immutable List."); |
19964 } | 20432 } |
19965 | 20433 |
19966 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { | 20434 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { |
19967 throw new UnsupportedError("Cannot setRange on immutable List."); | 20435 throw new UnsupportedError("Cannot setRange on immutable List."); |
19968 } | 20436 } |
19969 | 20437 |
19970 void removeRange(int start, int rangeLength) { | 20438 void removeRange(int start, int rangeLength) { |
19971 throw new UnsupportedError("Cannot removeRange on immutable List."); | 20439 throw new UnsupportedError("Cannot removeRange on immutable List."); |
19972 } | 20440 } |
19973 | 20441 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20125 if (length == 1) return this[0]; | 20593 if (length == 1) return this[0]; |
20126 if (length == 0) throw new StateError("No elements"); | 20594 if (length == 0) throw new StateError("No elements"); |
20127 throw new StateError("More than one element"); | 20595 throw new StateError("More than one element"); |
20128 } | 20596 } |
20129 | 20597 |
20130 int min([int compare(int a, int b)]) => IterableMixinWorkaround.min(this, comp
are); | 20598 int min([int compare(int a, int b)]) => IterableMixinWorkaround.min(this, comp
are); |
20131 | 20599 |
20132 int max([int compare(int a, int b)]) => IterableMixinWorkaround.max(this, comp
are); | 20600 int max([int compare(int a, int b)]) => IterableMixinWorkaround.max(this, comp
are); |
20133 | 20601 |
20134 int removeAt(int pos) { | 20602 int removeAt(int pos) { |
20135 throw new UnsupportedError("Cannot removeAt on immutable List."); | 20603 throw new UnsupportedError("Cannot remove from immutable List."); |
20136 } | 20604 } |
20137 | 20605 |
20138 int removeLast() { | 20606 int removeLast() { |
20139 throw new UnsupportedError("Cannot removeLast on immutable List."); | 20607 throw new UnsupportedError("Cannot remove from immutable List."); |
| 20608 } |
| 20609 |
| 20610 void remove(Object object) { |
| 20611 throw new UnsupportedError("Cannot remove from immutable List."); |
| 20612 } |
| 20613 |
| 20614 void removeAll(Iterable elements) { |
| 20615 throw new UnsupportedError("Cannot remove from immutable List."); |
| 20616 } |
| 20617 |
| 20618 void retainAll(Iterable elements) { |
| 20619 throw new UnsupportedError("Cannot remove from immutable List."); |
| 20620 } |
| 20621 |
| 20622 void removeMatching(bool test(int element)) { |
| 20623 throw new UnsupportedError("Cannot remove from immutable List."); |
| 20624 } |
| 20625 |
| 20626 void retainMatching(bool test(int element)) { |
| 20627 throw new UnsupportedError("Cannot remove from immutable List."); |
20140 } | 20628 } |
20141 | 20629 |
20142 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { | 20630 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { |
20143 throw new UnsupportedError("Cannot setRange on immutable List."); | 20631 throw new UnsupportedError("Cannot setRange on immutable List."); |
20144 } | 20632 } |
20145 | 20633 |
20146 void removeRange(int start, int rangeLength) { | 20634 void removeRange(int start, int rangeLength) { |
20147 throw new UnsupportedError("Cannot removeRange on immutable List."); | 20635 throw new UnsupportedError("Cannot removeRange on immutable List."); |
20148 } | 20636 } |
20149 | 20637 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20301 if (length == 1) return this[0]; | 20789 if (length == 1) return this[0]; |
20302 if (length == 0) throw new StateError("No elements"); | 20790 if (length == 0) throw new StateError("No elements"); |
20303 throw new StateError("More than one element"); | 20791 throw new StateError("More than one element"); |
20304 } | 20792 } |
20305 | 20793 |
20306 int min([int compare(int a, int b)]) => IterableMixinWorkaround.min(this, comp
are); | 20794 int min([int compare(int a, int b)]) => IterableMixinWorkaround.min(this, comp
are); |
20307 | 20795 |
20308 int max([int compare(int a, int b)]) => IterableMixinWorkaround.max(this, comp
are); | 20796 int max([int compare(int a, int b)]) => IterableMixinWorkaround.max(this, comp
are); |
20309 | 20797 |
20310 int removeAt(int pos) { | 20798 int removeAt(int pos) { |
20311 throw new UnsupportedError("Cannot removeAt on immutable List."); | 20799 throw new UnsupportedError("Cannot remove from immutable List."); |
20312 } | 20800 } |
20313 | 20801 |
20314 int removeLast() { | 20802 int removeLast() { |
20315 throw new UnsupportedError("Cannot removeLast on immutable List."); | 20803 throw new UnsupportedError("Cannot remove from immutable List."); |
| 20804 } |
| 20805 |
| 20806 void remove(Object object) { |
| 20807 throw new UnsupportedError("Cannot remove from immutable List."); |
| 20808 } |
| 20809 |
| 20810 void removeAll(Iterable elements) { |
| 20811 throw new UnsupportedError("Cannot remove from immutable List."); |
| 20812 } |
| 20813 |
| 20814 void retainAll(Iterable elements) { |
| 20815 throw new UnsupportedError("Cannot remove from immutable List."); |
| 20816 } |
| 20817 |
| 20818 void removeMatching(bool test(int element)) { |
| 20819 throw new UnsupportedError("Cannot remove from immutable List."); |
| 20820 } |
| 20821 |
| 20822 void retainMatching(bool test(int element)) { |
| 20823 throw new UnsupportedError("Cannot remove from immutable List."); |
20316 } | 20824 } |
20317 | 20825 |
20318 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { | 20826 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { |
20319 throw new UnsupportedError("Cannot setRange on immutable List."); | 20827 throw new UnsupportedError("Cannot setRange on immutable List."); |
20320 } | 20828 } |
20321 | 20829 |
20322 void removeRange(int start, int rangeLength) { | 20830 void removeRange(int start, int rangeLength) { |
20323 throw new UnsupportedError("Cannot removeRange on immutable List."); | 20831 throw new UnsupportedError("Cannot removeRange on immutable List."); |
20324 } | 20832 } |
20325 | 20833 |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20475 if (length == 1) return this[0]; | 20983 if (length == 1) return this[0]; |
20476 if (length == 0) throw new StateError("No elements"); | 20984 if (length == 0) throw new StateError("No elements"); |
20477 throw new StateError("More than one element"); | 20985 throw new StateError("More than one element"); |
20478 } | 20986 } |
20479 | 20987 |
20480 int min([int compare(int a, int b)]) => IterableMixinWorkaround.min(this, comp
are); | 20988 int min([int compare(int a, int b)]) => IterableMixinWorkaround.min(this, comp
are); |
20481 | 20989 |
20482 int max([int compare(int a, int b)]) => IterableMixinWorkaround.max(this, comp
are); | 20990 int max([int compare(int a, int b)]) => IterableMixinWorkaround.max(this, comp
are); |
20483 | 20991 |
20484 int removeAt(int pos) { | 20992 int removeAt(int pos) { |
20485 throw new UnsupportedError("Cannot removeAt on immutable List."); | 20993 throw new UnsupportedError("Cannot remove from immutable List."); |
20486 } | 20994 } |
20487 | 20995 |
20488 int removeLast() { | 20996 int removeLast() { |
20489 throw new UnsupportedError("Cannot removeLast on immutable List."); | 20997 throw new UnsupportedError("Cannot remove from immutable List."); |
| 20998 } |
| 20999 |
| 21000 void remove(Object object) { |
| 21001 throw new UnsupportedError("Cannot remove from immutable List."); |
| 21002 } |
| 21003 |
| 21004 void removeAll(Iterable elements) { |
| 21005 throw new UnsupportedError("Cannot remove from immutable List."); |
| 21006 } |
| 21007 |
| 21008 void retainAll(Iterable elements) { |
| 21009 throw new UnsupportedError("Cannot remove from immutable List."); |
| 21010 } |
| 21011 |
| 21012 void removeMatching(bool test(int element)) { |
| 21013 throw new UnsupportedError("Cannot remove from immutable List."); |
| 21014 } |
| 21015 |
| 21016 void retainMatching(bool test(int element)) { |
| 21017 throw new UnsupportedError("Cannot remove from immutable List."); |
20490 } | 21018 } |
20491 | 21019 |
20492 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { | 21020 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { |
20493 throw new UnsupportedError("Cannot setRange on immutable List."); | 21021 throw new UnsupportedError("Cannot setRange on immutable List."); |
20494 } | 21022 } |
20495 | 21023 |
20496 void removeRange(int start, int rangeLength) { | 21024 void removeRange(int start, int rangeLength) { |
20497 throw new UnsupportedError("Cannot removeRange on immutable List."); | 21025 throw new UnsupportedError("Cannot removeRange on immutable List."); |
20498 } | 21026 } |
20499 | 21027 |
(...skipping 3255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
23755 if (length == 1) return this[0]; | 24283 if (length == 1) return this[0]; |
23756 if (length == 0) throw new StateError("No elements"); | 24284 if (length == 0) throw new StateError("No elements"); |
23757 throw new StateError("More than one element"); | 24285 throw new StateError("More than one element"); |
23758 } | 24286 } |
23759 | 24287 |
23760 ClientRect min([int compare(ClientRect a, ClientRect b)]) => IterableMixinWork
around.min(this, compare); | 24288 ClientRect min([int compare(ClientRect a, ClientRect b)]) => IterableMixinWork
around.min(this, compare); |
23761 | 24289 |
23762 ClientRect max([int compare(ClientRect a, ClientRect b)]) => IterableMixinWork
around.max(this, compare); | 24290 ClientRect max([int compare(ClientRect a, ClientRect b)]) => IterableMixinWork
around.max(this, compare); |
23763 | 24291 |
23764 ClientRect removeAt(int pos) { | 24292 ClientRect removeAt(int pos) { |
23765 throw new UnsupportedError("Cannot removeAt on immutable List."); | 24293 throw new UnsupportedError("Cannot remove from immutable List."); |
23766 } | 24294 } |
23767 | 24295 |
23768 ClientRect removeLast() { | 24296 ClientRect removeLast() { |
23769 throw new UnsupportedError("Cannot removeLast on immutable List."); | 24297 throw new UnsupportedError("Cannot remove from immutable List."); |
| 24298 } |
| 24299 |
| 24300 void remove(Object object) { |
| 24301 throw new UnsupportedError("Cannot remove from immutable List."); |
| 24302 } |
| 24303 |
| 24304 void removeAll(Iterable elements) { |
| 24305 throw new UnsupportedError("Cannot remove from immutable List."); |
| 24306 } |
| 24307 |
| 24308 void retainAll(Iterable elements) { |
| 24309 throw new UnsupportedError("Cannot remove from immutable List."); |
| 24310 } |
| 24311 |
| 24312 void removeMatching(bool test(ClientRect element)) { |
| 24313 throw new UnsupportedError("Cannot remove from immutable List."); |
| 24314 } |
| 24315 |
| 24316 void retainMatching(bool test(ClientRect element)) { |
| 24317 throw new UnsupportedError("Cannot remove from immutable List."); |
23770 } | 24318 } |
23771 | 24319 |
23772 void setRange(int start, int rangeLength, List<ClientRect> from, [int startFro
m]) { | 24320 void setRange(int start, int rangeLength, List<ClientRect> from, [int startFro
m]) { |
23773 throw new UnsupportedError("Cannot setRange on immutable List."); | 24321 throw new UnsupportedError("Cannot setRange on immutable List."); |
23774 } | 24322 } |
23775 | 24323 |
23776 void removeRange(int start, int rangeLength) { | 24324 void removeRange(int start, int rangeLength) { |
23777 throw new UnsupportedError("Cannot removeRange on immutable List."); | 24325 throw new UnsupportedError("Cannot removeRange on immutable List."); |
23778 } | 24326 } |
23779 | 24327 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
23919 if (length == 1) return this[0]; | 24467 if (length == 1) return this[0]; |
23920 if (length == 0) throw new StateError("No elements"); | 24468 if (length == 0) throw new StateError("No elements"); |
23921 throw new StateError("More than one element"); | 24469 throw new StateError("More than one element"); |
23922 } | 24470 } |
23923 | 24471 |
23924 CssRule min([int compare(CssRule a, CssRule b)]) => IterableMixinWorkaround.mi
n(this, compare); | 24472 CssRule min([int compare(CssRule a, CssRule b)]) => IterableMixinWorkaround.mi
n(this, compare); |
23925 | 24473 |
23926 CssRule max([int compare(CssRule a, CssRule b)]) => IterableMixinWorkaround.ma
x(this, compare); | 24474 CssRule max([int compare(CssRule a, CssRule b)]) => IterableMixinWorkaround.ma
x(this, compare); |
23927 | 24475 |
23928 CssRule removeAt(int pos) { | 24476 CssRule removeAt(int pos) { |
23929 throw new UnsupportedError("Cannot removeAt on immutable List."); | 24477 throw new UnsupportedError("Cannot remove from immutable List."); |
23930 } | 24478 } |
23931 | 24479 |
23932 CssRule removeLast() { | 24480 CssRule removeLast() { |
23933 throw new UnsupportedError("Cannot removeLast on immutable List."); | 24481 throw new UnsupportedError("Cannot remove from immutable List."); |
| 24482 } |
| 24483 |
| 24484 void remove(Object object) { |
| 24485 throw new UnsupportedError("Cannot remove from immutable List."); |
| 24486 } |
| 24487 |
| 24488 void removeAll(Iterable elements) { |
| 24489 throw new UnsupportedError("Cannot remove from immutable List."); |
| 24490 } |
| 24491 |
| 24492 void retainAll(Iterable elements) { |
| 24493 throw new UnsupportedError("Cannot remove from immutable List."); |
| 24494 } |
| 24495 |
| 24496 void removeMatching(bool test(CssRule element)) { |
| 24497 throw new UnsupportedError("Cannot remove from immutable List."); |
| 24498 } |
| 24499 |
| 24500 void retainMatching(bool test(CssRule element)) { |
| 24501 throw new UnsupportedError("Cannot remove from immutable List."); |
23934 } | 24502 } |
23935 | 24503 |
23936 void setRange(int start, int rangeLength, List<CssRule> from, [int startFrom])
{ | 24504 void setRange(int start, int rangeLength, List<CssRule> from, [int startFrom])
{ |
23937 throw new UnsupportedError("Cannot setRange on immutable List."); | 24505 throw new UnsupportedError("Cannot setRange on immutable List."); |
23938 } | 24506 } |
23939 | 24507 |
23940 void removeRange(int start, int rangeLength) { | 24508 void removeRange(int start, int rangeLength) { |
23941 throw new UnsupportedError("Cannot removeRange on immutable List."); | 24509 throw new UnsupportedError("Cannot removeRange on immutable List."); |
23942 } | 24510 } |
23943 | 24511 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
24083 if (length == 1) return this[0]; | 24651 if (length == 1) return this[0]; |
24084 if (length == 0) throw new StateError("No elements"); | 24652 if (length == 0) throw new StateError("No elements"); |
24085 throw new StateError("More than one element"); | 24653 throw new StateError("More than one element"); |
24086 } | 24654 } |
24087 | 24655 |
24088 CssValue min([int compare(CssValue a, CssValue b)]) => IterableMixinWorkaround
.min(this, compare); | 24656 CssValue min([int compare(CssValue a, CssValue b)]) => IterableMixinWorkaround
.min(this, compare); |
24089 | 24657 |
24090 CssValue max([int compare(CssValue a, CssValue b)]) => IterableMixinWorkaround
.max(this, compare); | 24658 CssValue max([int compare(CssValue a, CssValue b)]) => IterableMixinWorkaround
.max(this, compare); |
24091 | 24659 |
24092 CssValue removeAt(int pos) { | 24660 CssValue removeAt(int pos) { |
24093 throw new UnsupportedError("Cannot removeAt on immutable List."); | 24661 throw new UnsupportedError("Cannot remove from immutable List."); |
24094 } | 24662 } |
24095 | 24663 |
24096 CssValue removeLast() { | 24664 CssValue removeLast() { |
24097 throw new UnsupportedError("Cannot removeLast on immutable List."); | 24665 throw new UnsupportedError("Cannot remove from immutable List."); |
| 24666 } |
| 24667 |
| 24668 void remove(Object object) { |
| 24669 throw new UnsupportedError("Cannot remove from immutable List."); |
| 24670 } |
| 24671 |
| 24672 void removeAll(Iterable elements) { |
| 24673 throw new UnsupportedError("Cannot remove from immutable List."); |
| 24674 } |
| 24675 |
| 24676 void retainAll(Iterable elements) { |
| 24677 throw new UnsupportedError("Cannot remove from immutable List."); |
| 24678 } |
| 24679 |
| 24680 void removeMatching(bool test(CssValue element)) { |
| 24681 throw new UnsupportedError("Cannot remove from immutable List."); |
| 24682 } |
| 24683 |
| 24684 void retainMatching(bool test(CssValue element)) { |
| 24685 throw new UnsupportedError("Cannot remove from immutable List."); |
24098 } | 24686 } |
24099 | 24687 |
24100 void setRange(int start, int rangeLength, List<CssValue> from, [int startFrom]
) { | 24688 void setRange(int start, int rangeLength, List<CssValue> from, [int startFrom]
) { |
24101 throw new UnsupportedError("Cannot setRange on immutable List."); | 24689 throw new UnsupportedError("Cannot setRange on immutable List."); |
24102 } | 24690 } |
24103 | 24691 |
24104 void removeRange(int start, int rangeLength) { | 24692 void removeRange(int start, int rangeLength) { |
24105 throw new UnsupportedError("Cannot removeRange on immutable List."); | 24693 throw new UnsupportedError("Cannot removeRange on immutable List."); |
24106 } | 24694 } |
24107 | 24695 |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
24257 if (length == 1) return this[0]; | 24845 if (length == 1) return this[0]; |
24258 if (length == 0) throw new StateError("No elements"); | 24846 if (length == 0) throw new StateError("No elements"); |
24259 throw new StateError("More than one element"); | 24847 throw new StateError("More than one element"); |
24260 } | 24848 } |
24261 | 24849 |
24262 Entry min([int compare(Entry a, Entry b)]) => IterableMixinWorkaround.min(this
, compare); | 24850 Entry min([int compare(Entry a, Entry b)]) => IterableMixinWorkaround.min(this
, compare); |
24263 | 24851 |
24264 Entry max([int compare(Entry a, Entry b)]) => IterableMixinWorkaround.max(this
, compare); | 24852 Entry max([int compare(Entry a, Entry b)]) => IterableMixinWorkaround.max(this
, compare); |
24265 | 24853 |
24266 Entry removeAt(int pos) { | 24854 Entry removeAt(int pos) { |
24267 throw new UnsupportedError("Cannot removeAt on immutable List."); | 24855 throw new UnsupportedError("Cannot remove from immutable List."); |
24268 } | 24856 } |
24269 | 24857 |
24270 Entry removeLast() { | 24858 Entry removeLast() { |
24271 throw new UnsupportedError("Cannot removeLast on immutable List."); | 24859 throw new UnsupportedError("Cannot remove from immutable List."); |
| 24860 } |
| 24861 |
| 24862 void remove(Object object) { |
| 24863 throw new UnsupportedError("Cannot remove from immutable List."); |
| 24864 } |
| 24865 |
| 24866 void removeAll(Iterable elements) { |
| 24867 throw new UnsupportedError("Cannot remove from immutable List."); |
| 24868 } |
| 24869 |
| 24870 void retainAll(Iterable elements) { |
| 24871 throw new UnsupportedError("Cannot remove from immutable List."); |
| 24872 } |
| 24873 |
| 24874 void removeMatching(bool test(Entry element)) { |
| 24875 throw new UnsupportedError("Cannot remove from immutable List."); |
| 24876 } |
| 24877 |
| 24878 void retainMatching(bool test(Entry element)) { |
| 24879 throw new UnsupportedError("Cannot remove from immutable List."); |
24272 } | 24880 } |
24273 | 24881 |
24274 void setRange(int start, int rangeLength, List<Entry> from, [int startFrom]) { | 24882 void setRange(int start, int rangeLength, List<Entry> from, [int startFrom]) { |
24275 throw new UnsupportedError("Cannot setRange on immutable List."); | 24883 throw new UnsupportedError("Cannot setRange on immutable List."); |
24276 } | 24884 } |
24277 | 24885 |
24278 void removeRange(int start, int rangeLength) { | 24886 void removeRange(int start, int rangeLength) { |
24279 throw new UnsupportedError("Cannot removeRange on immutable List."); | 24887 throw new UnsupportedError("Cannot removeRange on immutable List."); |
24280 } | 24888 } |
24281 | 24889 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
24421 if (length == 1) return this[0]; | 25029 if (length == 1) return this[0]; |
24422 if (length == 0) throw new StateError("No elements"); | 25030 if (length == 0) throw new StateError("No elements"); |
24423 throw new StateError("More than one element"); | 25031 throw new StateError("More than one element"); |
24424 } | 25032 } |
24425 | 25033 |
24426 EntrySync min([int compare(EntrySync a, EntrySync b)]) => IterableMixinWorkaro
und.min(this, compare); | 25034 EntrySync min([int compare(EntrySync a, EntrySync b)]) => IterableMixinWorkaro
und.min(this, compare); |
24427 | 25035 |
24428 EntrySync max([int compare(EntrySync a, EntrySync b)]) => IterableMixinWorkaro
und.max(this, compare); | 25036 EntrySync max([int compare(EntrySync a, EntrySync b)]) => IterableMixinWorkaro
und.max(this, compare); |
24429 | 25037 |
24430 EntrySync removeAt(int pos) { | 25038 EntrySync removeAt(int pos) { |
24431 throw new UnsupportedError("Cannot removeAt on immutable List."); | 25039 throw new UnsupportedError("Cannot remove from immutable List."); |
24432 } | 25040 } |
24433 | 25041 |
24434 EntrySync removeLast() { | 25042 EntrySync removeLast() { |
24435 throw new UnsupportedError("Cannot removeLast on immutable List."); | 25043 throw new UnsupportedError("Cannot remove from immutable List."); |
| 25044 } |
| 25045 |
| 25046 void remove(Object object) { |
| 25047 throw new UnsupportedError("Cannot remove from immutable List."); |
| 25048 } |
| 25049 |
| 25050 void removeAll(Iterable elements) { |
| 25051 throw new UnsupportedError("Cannot remove from immutable List."); |
| 25052 } |
| 25053 |
| 25054 void retainAll(Iterable elements) { |
| 25055 throw new UnsupportedError("Cannot remove from immutable List."); |
| 25056 } |
| 25057 |
| 25058 void removeMatching(bool test(EntrySync element)) { |
| 25059 throw new UnsupportedError("Cannot remove from immutable List."); |
| 25060 } |
| 25061 |
| 25062 void retainMatching(bool test(EntrySync element)) { |
| 25063 throw new UnsupportedError("Cannot remove from immutable List."); |
24436 } | 25064 } |
24437 | 25065 |
24438 void setRange(int start, int rangeLength, List<EntrySync> from, [int startFrom
]) { | 25066 void setRange(int start, int rangeLength, List<EntrySync> from, [int startFrom
]) { |
24439 throw new UnsupportedError("Cannot setRange on immutable List."); | 25067 throw new UnsupportedError("Cannot setRange on immutable List."); |
24440 } | 25068 } |
24441 | 25069 |
24442 void removeRange(int start, int rangeLength) { | 25070 void removeRange(int start, int rangeLength) { |
24443 throw new UnsupportedError("Cannot removeRange on immutable List."); | 25071 throw new UnsupportedError("Cannot removeRange on immutable List."); |
24444 } | 25072 } |
24445 | 25073 |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
24665 if (length == 1) return this[0]; | 25293 if (length == 1) return this[0]; |
24666 if (length == 0) throw new StateError("No elements"); | 25294 if (length == 0) throw new StateError("No elements"); |
24667 throw new StateError("More than one element"); | 25295 throw new StateError("More than one element"); |
24668 } | 25296 } |
24669 | 25297 |
24670 Gamepad min([int compare(Gamepad a, Gamepad b)]) => IterableMixinWorkaround.mi
n(this, compare); | 25298 Gamepad min([int compare(Gamepad a, Gamepad b)]) => IterableMixinWorkaround.mi
n(this, compare); |
24671 | 25299 |
24672 Gamepad max([int compare(Gamepad a, Gamepad b)]) => IterableMixinWorkaround.ma
x(this, compare); | 25300 Gamepad max([int compare(Gamepad a, Gamepad b)]) => IterableMixinWorkaround.ma
x(this, compare); |
24673 | 25301 |
24674 Gamepad removeAt(int pos) { | 25302 Gamepad removeAt(int pos) { |
24675 throw new UnsupportedError("Cannot removeAt on immutable List."); | 25303 throw new UnsupportedError("Cannot remove from immutable List."); |
24676 } | 25304 } |
24677 | 25305 |
24678 Gamepad removeLast() { | 25306 Gamepad removeLast() { |
24679 throw new UnsupportedError("Cannot removeLast on immutable List."); | 25307 throw new UnsupportedError("Cannot remove from immutable List."); |
| 25308 } |
| 25309 |
| 25310 void remove(Object object) { |
| 25311 throw new UnsupportedError("Cannot remove from immutable List."); |
| 25312 } |
| 25313 |
| 25314 void removeAll(Iterable elements) { |
| 25315 throw new UnsupportedError("Cannot remove from immutable List."); |
| 25316 } |
| 25317 |
| 25318 void retainAll(Iterable elements) { |
| 25319 throw new UnsupportedError("Cannot remove from immutable List."); |
| 25320 } |
| 25321 |
| 25322 void removeMatching(bool test(Gamepad element)) { |
| 25323 throw new UnsupportedError("Cannot remove from immutable List."); |
| 25324 } |
| 25325 |
| 25326 void retainMatching(bool test(Gamepad element)) { |
| 25327 throw new UnsupportedError("Cannot remove from immutable List."); |
24680 } | 25328 } |
24681 | 25329 |
24682 void setRange(int start, int rangeLength, List<Gamepad> from, [int startFrom])
{ | 25330 void setRange(int start, int rangeLength, List<Gamepad> from, [int startFrom])
{ |
24683 throw new UnsupportedError("Cannot setRange on immutable List."); | 25331 throw new UnsupportedError("Cannot setRange on immutable List."); |
24684 } | 25332 } |
24685 | 25333 |
24686 void removeRange(int start, int rangeLength) { | 25334 void removeRange(int start, int rangeLength) { |
24687 throw new UnsupportedError("Cannot removeRange on immutable List."); | 25335 throw new UnsupportedError("Cannot removeRange on immutable List."); |
24688 } | 25336 } |
24689 | 25337 |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
24839 if (length == 1) return this[0]; | 25487 if (length == 1) return this[0]; |
24840 if (length == 0) throw new StateError("No elements"); | 25488 if (length == 0) throw new StateError("No elements"); |
24841 throw new StateError("More than one element"); | 25489 throw new StateError("More than one element"); |
24842 } | 25490 } |
24843 | 25491 |
24844 MediaStream min([int compare(MediaStream a, MediaStream b)]) => IterableMixinW
orkaround.min(this, compare); | 25492 MediaStream min([int compare(MediaStream a, MediaStream b)]) => IterableMixinW
orkaround.min(this, compare); |
24845 | 25493 |
24846 MediaStream max([int compare(MediaStream a, MediaStream b)]) => IterableMixinW
orkaround.max(this, compare); | 25494 MediaStream max([int compare(MediaStream a, MediaStream b)]) => IterableMixinW
orkaround.max(this, compare); |
24847 | 25495 |
24848 MediaStream removeAt(int pos) { | 25496 MediaStream removeAt(int pos) { |
24849 throw new UnsupportedError("Cannot removeAt on immutable List."); | 25497 throw new UnsupportedError("Cannot remove from immutable List."); |
24850 } | 25498 } |
24851 | 25499 |
24852 MediaStream removeLast() { | 25500 MediaStream removeLast() { |
24853 throw new UnsupportedError("Cannot removeLast on immutable List."); | 25501 throw new UnsupportedError("Cannot remove from immutable List."); |
| 25502 } |
| 25503 |
| 25504 void remove(Object object) { |
| 25505 throw new UnsupportedError("Cannot remove from immutable List."); |
| 25506 } |
| 25507 |
| 25508 void removeAll(Iterable elements) { |
| 25509 throw new UnsupportedError("Cannot remove from immutable List."); |
| 25510 } |
| 25511 |
| 25512 void retainAll(Iterable elements) { |
| 25513 throw new UnsupportedError("Cannot remove from immutable List."); |
| 25514 } |
| 25515 |
| 25516 void removeMatching(bool test(MediaStream element)) { |
| 25517 throw new UnsupportedError("Cannot remove from immutable List."); |
| 25518 } |
| 25519 |
| 25520 void retainMatching(bool test(MediaStream element)) { |
| 25521 throw new UnsupportedError("Cannot remove from immutable List."); |
24854 } | 25522 } |
24855 | 25523 |
24856 void setRange(int start, int rangeLength, List<MediaStream> from, [int startFr
om]) { | 25524 void setRange(int start, int rangeLength, List<MediaStream> from, [int startFr
om]) { |
24857 throw new UnsupportedError("Cannot setRange on immutable List."); | 25525 throw new UnsupportedError("Cannot setRange on immutable List."); |
24858 } | 25526 } |
24859 | 25527 |
24860 void removeRange(int start, int rangeLength) { | 25528 void removeRange(int start, int rangeLength) { |
24861 throw new UnsupportedError("Cannot removeRange on immutable List."); | 25529 throw new UnsupportedError("Cannot removeRange on immutable List."); |
24862 } | 25530 } |
24863 | 25531 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
25003 if (length == 1) return this[0]; | 25671 if (length == 1) return this[0]; |
25004 if (length == 0) throw new StateError("No elements"); | 25672 if (length == 0) throw new StateError("No elements"); |
25005 throw new StateError("More than one element"); | 25673 throw new StateError("More than one element"); |
25006 } | 25674 } |
25007 | 25675 |
25008 SpeechInputResult min([int compare(SpeechInputResult a, SpeechInputResult b)])
=> IterableMixinWorkaround.min(this, compare); | 25676 SpeechInputResult min([int compare(SpeechInputResult a, SpeechInputResult b)])
=> IterableMixinWorkaround.min(this, compare); |
25009 | 25677 |
25010 SpeechInputResult max([int compare(SpeechInputResult a, SpeechInputResult b)])
=> IterableMixinWorkaround.max(this, compare); | 25678 SpeechInputResult max([int compare(SpeechInputResult a, SpeechInputResult b)])
=> IterableMixinWorkaround.max(this, compare); |
25011 | 25679 |
25012 SpeechInputResult removeAt(int pos) { | 25680 SpeechInputResult removeAt(int pos) { |
25013 throw new UnsupportedError("Cannot removeAt on immutable List."); | 25681 throw new UnsupportedError("Cannot remove from immutable List."); |
25014 } | 25682 } |
25015 | 25683 |
25016 SpeechInputResult removeLast() { | 25684 SpeechInputResult removeLast() { |
25017 throw new UnsupportedError("Cannot removeLast on immutable List."); | 25685 throw new UnsupportedError("Cannot remove from immutable List."); |
| 25686 } |
| 25687 |
| 25688 void remove(Object object) { |
| 25689 throw new UnsupportedError("Cannot remove from immutable List."); |
| 25690 } |
| 25691 |
| 25692 void removeAll(Iterable elements) { |
| 25693 throw new UnsupportedError("Cannot remove from immutable List."); |
| 25694 } |
| 25695 |
| 25696 void retainAll(Iterable elements) { |
| 25697 throw new UnsupportedError("Cannot remove from immutable List."); |
| 25698 } |
| 25699 |
| 25700 void removeMatching(bool test(SpeechInputResult element)) { |
| 25701 throw new UnsupportedError("Cannot remove from immutable List."); |
| 25702 } |
| 25703 |
| 25704 void retainMatching(bool test(SpeechInputResult element)) { |
| 25705 throw new UnsupportedError("Cannot remove from immutable List."); |
25018 } | 25706 } |
25019 | 25707 |
25020 void setRange(int start, int rangeLength, List<SpeechInputResult> from, [int s
tartFrom]) { | 25708 void setRange(int start, int rangeLength, List<SpeechInputResult> from, [int s
tartFrom]) { |
25021 throw new UnsupportedError("Cannot setRange on immutable List."); | 25709 throw new UnsupportedError("Cannot setRange on immutable List."); |
25022 } | 25710 } |
25023 | 25711 |
25024 void removeRange(int start, int rangeLength) { | 25712 void removeRange(int start, int rangeLength) { |
25025 throw new UnsupportedError("Cannot removeRange on immutable List."); | 25713 throw new UnsupportedError("Cannot removeRange on immutable List."); |
25026 } | 25714 } |
25027 | 25715 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
25167 if (length == 1) return this[0]; | 25855 if (length == 1) return this[0]; |
25168 if (length == 0) throw new StateError("No elements"); | 25856 if (length == 0) throw new StateError("No elements"); |
25169 throw new StateError("More than one element"); | 25857 throw new StateError("More than one element"); |
25170 } | 25858 } |
25171 | 25859 |
25172 SpeechRecognitionResult min([int compare(SpeechRecognitionResult a, SpeechReco
gnitionResult b)]) => IterableMixinWorkaround.min(this, compare); | 25860 SpeechRecognitionResult min([int compare(SpeechRecognitionResult a, SpeechReco
gnitionResult b)]) => IterableMixinWorkaround.min(this, compare); |
25173 | 25861 |
25174 SpeechRecognitionResult max([int compare(SpeechRecognitionResult a, SpeechReco
gnitionResult b)]) => IterableMixinWorkaround.max(this, compare); | 25862 SpeechRecognitionResult max([int compare(SpeechRecognitionResult a, SpeechReco
gnitionResult b)]) => IterableMixinWorkaround.max(this, compare); |
25175 | 25863 |
25176 SpeechRecognitionResult removeAt(int pos) { | 25864 SpeechRecognitionResult removeAt(int pos) { |
25177 throw new UnsupportedError("Cannot removeAt on immutable List."); | 25865 throw new UnsupportedError("Cannot remove from immutable List."); |
25178 } | 25866 } |
25179 | 25867 |
25180 SpeechRecognitionResult removeLast() { | 25868 SpeechRecognitionResult removeLast() { |
25181 throw new UnsupportedError("Cannot removeLast on immutable List."); | 25869 throw new UnsupportedError("Cannot remove from immutable List."); |
| 25870 } |
| 25871 |
| 25872 void remove(Object object) { |
| 25873 throw new UnsupportedError("Cannot remove from immutable List."); |
| 25874 } |
| 25875 |
| 25876 void removeAll(Iterable elements) { |
| 25877 throw new UnsupportedError("Cannot remove from immutable List."); |
| 25878 } |
| 25879 |
| 25880 void retainAll(Iterable elements) { |
| 25881 throw new UnsupportedError("Cannot remove from immutable List."); |
| 25882 } |
| 25883 |
| 25884 void removeMatching(bool test(SpeechRecognitionResult element)) { |
| 25885 throw new UnsupportedError("Cannot remove from immutable List."); |
| 25886 } |
| 25887 |
| 25888 void retainMatching(bool test(SpeechRecognitionResult element)) { |
| 25889 throw new UnsupportedError("Cannot remove from immutable List."); |
25182 } | 25890 } |
25183 | 25891 |
25184 void setRange(int start, int rangeLength, List<SpeechRecognitionResult> from,
[int startFrom]) { | 25892 void setRange(int start, int rangeLength, List<SpeechRecognitionResult> from,
[int startFrom]) { |
25185 throw new UnsupportedError("Cannot setRange on immutable List."); | 25893 throw new UnsupportedError("Cannot setRange on immutable List."); |
25186 } | 25894 } |
25187 | 25895 |
25188 void removeRange(int start, int rangeLength) { | 25896 void removeRange(int start, int rangeLength) { |
25189 throw new UnsupportedError("Cannot removeRange on immutable List."); | 25897 throw new UnsupportedError("Cannot removeRange on immutable List."); |
25190 } | 25898 } |
25191 | 25899 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
25331 if (length == 1) return this[0]; | 26039 if (length == 1) return this[0]; |
25332 if (length == 0) throw new StateError("No elements"); | 26040 if (length == 0) throw new StateError("No elements"); |
25333 throw new StateError("More than one element"); | 26041 throw new StateError("More than one element"); |
25334 } | 26042 } |
25335 | 26043 |
25336 StyleSheet min([int compare(StyleSheet a, StyleSheet b)]) => IterableMixinWork
around.min(this, compare); | 26044 StyleSheet min([int compare(StyleSheet a, StyleSheet b)]) => IterableMixinWork
around.min(this, compare); |
25337 | 26045 |
25338 StyleSheet max([int compare(StyleSheet a, StyleSheet b)]) => IterableMixinWork
around.max(this, compare); | 26046 StyleSheet max([int compare(StyleSheet a, StyleSheet b)]) => IterableMixinWork
around.max(this, compare); |
25339 | 26047 |
25340 StyleSheet removeAt(int pos) { | 26048 StyleSheet removeAt(int pos) { |
25341 throw new UnsupportedError("Cannot removeAt on immutable List."); | 26049 throw new UnsupportedError("Cannot remove from immutable List."); |
25342 } | 26050 } |
25343 | 26051 |
25344 StyleSheet removeLast() { | 26052 StyleSheet removeLast() { |
25345 throw new UnsupportedError("Cannot removeLast on immutable List."); | 26053 throw new UnsupportedError("Cannot remove from immutable List."); |
| 26054 } |
| 26055 |
| 26056 void remove(Object object) { |
| 26057 throw new UnsupportedError("Cannot remove from immutable List."); |
| 26058 } |
| 26059 |
| 26060 void removeAll(Iterable elements) { |
| 26061 throw new UnsupportedError("Cannot remove from immutable List."); |
| 26062 } |
| 26063 |
| 26064 void retainAll(Iterable elements) { |
| 26065 throw new UnsupportedError("Cannot remove from immutable List."); |
| 26066 } |
| 26067 |
| 26068 void removeMatching(bool test(StyleSheet element)) { |
| 26069 throw new UnsupportedError("Cannot remove from immutable List."); |
| 26070 } |
| 26071 |
| 26072 void retainMatching(bool test(StyleSheet element)) { |
| 26073 throw new UnsupportedError("Cannot remove from immutable List."); |
25346 } | 26074 } |
25347 | 26075 |
25348 void setRange(int start, int rangeLength, List<StyleSheet> from, [int startFro
m]) { | 26076 void setRange(int start, int rangeLength, List<StyleSheet> from, [int startFro
m]) { |
25349 throw new UnsupportedError("Cannot setRange on immutable List."); | 26077 throw new UnsupportedError("Cannot setRange on immutable List."); |
25350 } | 26078 } |
25351 | 26079 |
25352 void removeRange(int start, int rangeLength) { | 26080 void removeRange(int start, int rangeLength) { |
25353 throw new UnsupportedError("Cannot removeRange on immutable List."); | 26081 throw new UnsupportedError("Cannot removeRange on immutable List."); |
25354 } | 26082 } |
25355 | 26083 |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
25776 dynamic combine(dynamic previousValue, String element)) { | 26504 dynamic combine(dynamic previousValue, String element)) { |
25777 return readClasses().reduce(initialValue, combine); | 26505 return readClasses().reduce(initialValue, combine); |
25778 } | 26506 } |
25779 // interface Collection - END | 26507 // interface Collection - END |
25780 | 26508 |
25781 // interface Set - BEGIN | 26509 // interface Set - BEGIN |
25782 bool contains(String value) => readClasses().contains(value); | 26510 bool contains(String value) => readClasses().contains(value); |
25783 | 26511 |
25784 void add(String value) { | 26512 void add(String value) { |
25785 // TODO - figure out if we need to do any validation here | 26513 // TODO - figure out if we need to do any validation here |
25786 // or if the browser natively does enough | 26514 // or if the browser natively does enough. |
25787 _modify((s) => s.add(value)); | 26515 _modify((s) => s.add(value)); |
25788 } | 26516 } |
25789 | 26517 |
25790 bool remove(String value) { | 26518 bool remove(Object value) { |
| 26519 if (value is! String) return false; |
25791 Set<String> s = readClasses(); | 26520 Set<String> s = readClasses(); |
25792 bool result = s.remove(value); | 26521 bool result = s.remove(value); |
25793 writeClasses(s); | 26522 writeClasses(s); |
25794 return result; | 26523 return result; |
25795 } | 26524 } |
25796 | 26525 |
25797 void addAll(Iterable<String> iterable) { | 26526 void addAll(Iterable<String> iterable) { |
25798 // TODO - see comment above about validation | 26527 // TODO - see comment above about validation. |
25799 _modify((s) => s.addAll(iterable)); | 26528 _modify((s) => s.addAll(iterable)); |
25800 } | 26529 } |
25801 | 26530 |
25802 void removeAll(Iterable<String> iterable) { | 26531 void removeAll(Iterable<String> iterable) { |
25803 _modify((s) => s.removeAll(iterable)); | 26532 _modify((s) => s.removeAll(iterable)); |
25804 } | 26533 } |
25805 | 26534 |
| 26535 void retainAll(Iterable<String> iterable) { |
| 26536 _modify((s) => s.retainAll(iterable)); |
| 26537 } |
| 26538 |
| 26539 void removeMatching(bool test(String name)) { |
| 26540 _modify((s) => s.removeMatching(test)); |
| 26541 } |
| 26542 |
| 26543 void retainMatching(bool test(String name)) { |
| 26544 _modify((s) => s.retainMatching(test)); |
| 26545 } |
| 26546 |
25806 bool isSubsetOf(Collection<String> collection) => | 26547 bool isSubsetOf(Collection<String> collection) => |
25807 readClasses().isSubsetOf(collection); | 26548 readClasses().isSubsetOf(collection); |
25808 | 26549 |
25809 bool containsAll(Collection<String> collection) => | 26550 bool containsAll(Collection<String> collection) => |
25810 readClasses().containsAll(collection); | 26551 readClasses().containsAll(collection); |
25811 | 26552 |
25812 Set<String> intersection(Collection<String> other) => | 26553 Set<String> intersection(Collection<String> other) => |
25813 readClasses().intersection(other); | 26554 readClasses().intersection(other); |
25814 | 26555 |
25815 String get first => readClasses().first; | 26556 String get first => readClasses().first; |
(...skipping 2791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
28607 _position = nextPosition; | 29348 _position = nextPosition; |
28608 return true; | 29349 return true; |
28609 } | 29350 } |
28610 _current = null; | 29351 _current = null; |
28611 _position = _array.length; | 29352 _position = _array.length; |
28612 return false; | 29353 return false; |
28613 } | 29354 } |
28614 | 29355 |
28615 T get current => _current; | 29356 T get current => _current; |
28616 } | 29357 } |
OLD | NEW |