| OLD | NEW |
| 1 library html; | 1 library html; |
| 2 | 2 |
| 3 import 'dart:collection'; | 3 import 'dart:collection'; |
| 4 import 'dart:html_common'; | 4 import 'dart:html_common'; |
| 5 import 'dart:indexed_db'; | 5 import 'dart:indexed_db'; |
| 6 import 'dart:isolate'; | 6 import 'dart:isolate'; |
| 7 import 'dart:json'; | 7 import 'dart:json'; |
| 8 import 'dart:nativewrappers'; | 8 import 'dart:nativewrappers'; |
| 9 import 'dart:svg' as svg; | 9 import 'dart:svg' as svg; |
| 10 import 'dart:web_audio' as web_audio; | 10 import 'dart:web_audio' as web_audio; |
| (...skipping 7849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7860 | 7860 |
| 7861 // From List<DomMimeType>: | 7861 // From List<DomMimeType>: |
| 7862 void set length(int value) { | 7862 void set length(int value) { |
| 7863 throw new UnsupportedError("Cannot resize immutable List."); | 7863 throw new UnsupportedError("Cannot resize immutable List."); |
| 7864 } | 7864 } |
| 7865 | 7865 |
| 7866 void clear() { | 7866 void clear() { |
| 7867 throw new UnsupportedError("Cannot clear immutable List."); | 7867 throw new UnsupportedError("Cannot clear immutable List."); |
| 7868 } | 7868 } |
| 7869 | 7869 |
| 7870 void sort([Comparator compare = Comparable.compare]) { | 7870 void sort([int compare(DomMimeType a, DomMimeType b)]) { |
| 7871 throw new UnsupportedError("Cannot sort immutable List."); | 7871 throw new UnsupportedError("Cannot sort immutable List."); |
| 7872 } | 7872 } |
| 7873 | 7873 |
| 7874 int indexOf(DomMimeType element, [int start = 0]) => | 7874 int indexOf(DomMimeType element, [int start = 0]) => |
| 7875 Lists.indexOf(this, element, start, this.length); | 7875 Lists.indexOf(this, element, start, this.length); |
| 7876 | 7876 |
| 7877 int lastIndexOf(DomMimeType element, [int start]) { | 7877 int lastIndexOf(DomMimeType element, [int start]) { |
| 7878 if (start == null) start = length - 1; | 7878 if (start == null) start = length - 1; |
| 7879 return Lists.lastIndexOf(this, element, start); | 7879 return Lists.lastIndexOf(this, element, start); |
| 7880 } | 7880 } |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8038 | 8038 |
| 8039 // From List<DomPlugin>: | 8039 // From List<DomPlugin>: |
| 8040 void set length(int value) { | 8040 void set length(int value) { |
| 8041 throw new UnsupportedError("Cannot resize immutable List."); | 8041 throw new UnsupportedError("Cannot resize immutable List."); |
| 8042 } | 8042 } |
| 8043 | 8043 |
| 8044 void clear() { | 8044 void clear() { |
| 8045 throw new UnsupportedError("Cannot clear immutable List."); | 8045 throw new UnsupportedError("Cannot clear immutable List."); |
| 8046 } | 8046 } |
| 8047 | 8047 |
| 8048 void sort([Comparator compare = Comparable.compare]) { | 8048 void sort([int compare(DomPlugin a, DomPlugin b)]) { |
| 8049 throw new UnsupportedError("Cannot sort immutable List."); | 8049 throw new UnsupportedError("Cannot sort immutable List."); |
| 8050 } | 8050 } |
| 8051 | 8051 |
| 8052 int indexOf(DomPlugin element, [int start = 0]) => | 8052 int indexOf(DomPlugin element, [int start = 0]) => |
| 8053 Lists.indexOf(this, element, start, this.length); | 8053 Lists.indexOf(this, element, start, this.length); |
| 8054 | 8054 |
| 8055 int lastIndexOf(DomPlugin element, [int start]) { | 8055 int lastIndexOf(DomPlugin element, [int start]) { |
| 8056 if (start == null) start = length - 1; | 8056 if (start == null) start = length - 1; |
| 8057 return Lists.lastIndexOf(this, element, start); | 8057 return Lists.lastIndexOf(this, element, start); |
| 8058 } | 8058 } |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8302 | 8302 |
| 8303 // From List<String>: | 8303 // From List<String>: |
| 8304 void set length(int value) { | 8304 void set length(int value) { |
| 8305 throw new UnsupportedError("Cannot resize immutable List."); | 8305 throw new UnsupportedError("Cannot resize immutable List."); |
| 8306 } | 8306 } |
| 8307 | 8307 |
| 8308 void clear() { | 8308 void clear() { |
| 8309 throw new UnsupportedError("Cannot clear immutable List."); | 8309 throw new UnsupportedError("Cannot clear immutable List."); |
| 8310 } | 8310 } |
| 8311 | 8311 |
| 8312 void sort([Comparator compare = Comparable.compare]) { | 8312 void sort([int compare(String a, String b)]) { |
| 8313 throw new UnsupportedError("Cannot sort immutable List."); | 8313 throw new UnsupportedError("Cannot sort immutable List."); |
| 8314 } | 8314 } |
| 8315 | 8315 |
| 8316 int indexOf(String element, [int start = 0]) => | 8316 int indexOf(String element, [int start = 0]) => |
| 8317 Lists.indexOf(this, element, start, this.length); | 8317 Lists.indexOf(this, element, start, this.length); |
| 8318 | 8318 |
| 8319 int lastIndexOf(String element, [int start]) { | 8319 int lastIndexOf(String element, [int start]) { |
| 8320 if (start == null) start = length - 1; | 8320 if (start == null) start = length - 1; |
| 8321 return Lists.lastIndexOf(this, element, start); | 8321 return Lists.lastIndexOf(this, element, start); |
| 8322 } | 8322 } |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8511 Element addLast(Element value) => add(value); | 8511 Element addLast(Element value) => add(value); |
| 8512 | 8512 |
| 8513 Iterator<Element> iterator() => _toList().iterator(); | 8513 Iterator<Element> iterator() => _toList().iterator(); |
| 8514 | 8514 |
| 8515 void addAll(Collection<Element> collection) { | 8515 void addAll(Collection<Element> collection) { |
| 8516 for (Element element in collection) { | 8516 for (Element element in collection) { |
| 8517 _element.$dom_appendChild(element); | 8517 _element.$dom_appendChild(element); |
| 8518 } | 8518 } |
| 8519 } | 8519 } |
| 8520 | 8520 |
| 8521 void sort([Comparator compare = Comparable.compare]) { | 8521 void sort([int compare(Element a, Element b)]) { |
| 8522 throw new UnsupportedError('TODO(jacobr): should we impl?'); | 8522 throw new UnsupportedError('TODO(jacobr): should we impl?'); |
| 8523 } | 8523 } |
| 8524 | 8524 |
| 8525 dynamic reduce(dynamic initialValue, | 8525 dynamic reduce(dynamic initialValue, |
| 8526 dynamic combine(dynamic previousValue, Element element)) { | 8526 dynamic combine(dynamic previousValue, Element element)) { |
| 8527 return Collections.reduce(this, initialValue, combine); | 8527 return Collections.reduce(this, initialValue, combine); |
| 8528 } | 8528 } |
| 8529 | 8529 |
| 8530 void setRange(int start, int rangeLength, List from, [int startFrom = 0]) { | 8530 void setRange(int start, int rangeLength, List from, [int startFrom = 0]) { |
| 8531 throw new UnimplementedError(); | 8531 throw new UnimplementedError(); |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8660 void addLast(Element value) { | 8660 void addLast(Element value) { |
| 8661 throw new UnsupportedError(''); | 8661 throw new UnsupportedError(''); |
| 8662 } | 8662 } |
| 8663 | 8663 |
| 8664 Iterator<Element> iterator() => new _FrozenElementListIterator(this); | 8664 Iterator<Element> iterator() => new _FrozenElementListIterator(this); |
| 8665 | 8665 |
| 8666 void addAll(Collection<Element> collection) { | 8666 void addAll(Collection<Element> collection) { |
| 8667 throw new UnsupportedError(''); | 8667 throw new UnsupportedError(''); |
| 8668 } | 8668 } |
| 8669 | 8669 |
| 8670 void sort([Comparator compare = Comparable.compare]) { | 8670 void sort([int compare(Element a, Element b)]) { |
| 8671 throw new UnsupportedError(''); | 8671 throw new UnsupportedError(''); |
| 8672 } | 8672 } |
| 8673 | 8673 |
| 8674 dynamic reduce(dynamic initialValue, | 8674 dynamic reduce(dynamic initialValue, |
| 8675 dynamic combine(dynamic previousValue, Element element)) { | 8675 dynamic combine(dynamic previousValue, Element element)) { |
| 8676 return Collections.reduce(this, initialValue, combine); | 8676 return Collections.reduce(this, initialValue, combine); |
| 8677 } | 8677 } |
| 8678 | 8678 |
| 8679 void setRange(int start, int rangeLength, List from, [int startFrom = 0]) { | 8679 void setRange(int start, int rangeLength, List from, [int startFrom = 0]) { |
| 8680 throw new UnsupportedError(''); | 8680 throw new UnsupportedError(''); |
| (...skipping 1577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10258 | 10258 |
| 10259 // From List<File>: | 10259 // From List<File>: |
| 10260 void set length(int value) { | 10260 void set length(int value) { |
| 10261 throw new UnsupportedError("Cannot resize immutable List."); | 10261 throw new UnsupportedError("Cannot resize immutable List."); |
| 10262 } | 10262 } |
| 10263 | 10263 |
| 10264 void clear() { | 10264 void clear() { |
| 10265 throw new UnsupportedError("Cannot clear immutable List."); | 10265 throw new UnsupportedError("Cannot clear immutable List."); |
| 10266 } | 10266 } |
| 10267 | 10267 |
| 10268 void sort([Comparator compare = Comparable.compare]) { | 10268 void sort([int compare(File a, File b)]) { |
| 10269 throw new UnsupportedError("Cannot sort immutable List."); | 10269 throw new UnsupportedError("Cannot sort immutable List."); |
| 10270 } | 10270 } |
| 10271 | 10271 |
| 10272 int indexOf(File element, [int start = 0]) => | 10272 int indexOf(File element, [int start = 0]) => |
| 10273 Lists.indexOf(this, element, start, this.length); | 10273 Lists.indexOf(this, element, start, this.length); |
| 10274 | 10274 |
| 10275 int lastIndexOf(File element, [int start]) { | 10275 int lastIndexOf(File element, [int start]) { |
| 10276 if (start == null) start = length - 1; | 10276 if (start == null) start = length - 1; |
| 10277 return Lists.lastIndexOf(this, element, start); | 10277 return Lists.lastIndexOf(this, element, start); |
| 10278 } | 10278 } |
| (...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10698 | 10698 |
| 10699 // From List<num>: | 10699 // From List<num>: |
| 10700 void set length(int value) { | 10700 void set length(int value) { |
| 10701 throw new UnsupportedError("Cannot resize immutable List."); | 10701 throw new UnsupportedError("Cannot resize immutable List."); |
| 10702 } | 10702 } |
| 10703 | 10703 |
| 10704 void clear() { | 10704 void clear() { |
| 10705 throw new UnsupportedError("Cannot clear immutable List."); | 10705 throw new UnsupportedError("Cannot clear immutable List."); |
| 10706 } | 10706 } |
| 10707 | 10707 |
| 10708 void sort([Comparator compare = Comparable.compare]) { | 10708 void sort([int compare(num a, num b)]) { |
| 10709 throw new UnsupportedError("Cannot sort immutable List."); | 10709 throw new UnsupportedError("Cannot sort immutable List."); |
| 10710 } | 10710 } |
| 10711 | 10711 |
| 10712 int indexOf(num element, [int start = 0]) => | 10712 int indexOf(num element, [int start = 0]) => |
| 10713 Lists.indexOf(this, element, start, this.length); | 10713 Lists.indexOf(this, element, start, this.length); |
| 10714 | 10714 |
| 10715 int lastIndexOf(num element, [int start]) { | 10715 int lastIndexOf(num element, [int start]) { |
| 10716 if (start == null) start = length - 1; | 10716 if (start == null) start = length - 1; |
| 10717 return Lists.lastIndexOf(this, element, start); | 10717 return Lists.lastIndexOf(this, element, start); |
| 10718 } | 10718 } |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10846 | 10846 |
| 10847 // From List<num>: | 10847 // From List<num>: |
| 10848 void set length(int value) { | 10848 void set length(int value) { |
| 10849 throw new UnsupportedError("Cannot resize immutable List."); | 10849 throw new UnsupportedError("Cannot resize immutable List."); |
| 10850 } | 10850 } |
| 10851 | 10851 |
| 10852 void clear() { | 10852 void clear() { |
| 10853 throw new UnsupportedError("Cannot clear immutable List."); | 10853 throw new UnsupportedError("Cannot clear immutable List."); |
| 10854 } | 10854 } |
| 10855 | 10855 |
| 10856 void sort([Comparator compare = Comparable.compare]) { | 10856 void sort([int compare(num a, num b)]) { |
| 10857 throw new UnsupportedError("Cannot sort immutable List."); | 10857 throw new UnsupportedError("Cannot sort immutable List."); |
| 10858 } | 10858 } |
| 10859 | 10859 |
| 10860 int indexOf(num element, [int start = 0]) => | 10860 int indexOf(num element, [int start = 0]) => |
| 10861 Lists.indexOf(this, element, start, this.length); | 10861 Lists.indexOf(this, element, start, this.length); |
| 10862 | 10862 |
| 10863 int lastIndexOf(num element, [int start]) { | 10863 int lastIndexOf(num element, [int start]) { |
| 10864 if (start == null) start = length - 1; | 10864 if (start == null) start = length - 1; |
| 10865 return Lists.lastIndexOf(this, element, start); | 10865 return Lists.lastIndexOf(this, element, start); |
| 10866 } | 10866 } |
| (...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11500 | 11500 |
| 11501 // From List<Node>: | 11501 // From List<Node>: |
| 11502 void set length(int value) { | 11502 void set length(int value) { |
| 11503 throw new UnsupportedError("Cannot resize immutable List."); | 11503 throw new UnsupportedError("Cannot resize immutable List."); |
| 11504 } | 11504 } |
| 11505 | 11505 |
| 11506 void clear() { | 11506 void clear() { |
| 11507 throw new UnsupportedError("Cannot clear immutable List."); | 11507 throw new UnsupportedError("Cannot clear immutable List."); |
| 11508 } | 11508 } |
| 11509 | 11509 |
| 11510 void sort([Comparator compare = Comparable.compare]) { | 11510 void sort([int compare(Node a, Node b)]) { |
| 11511 throw new UnsupportedError("Cannot sort immutable List."); | 11511 throw new UnsupportedError("Cannot sort immutable List."); |
| 11512 } | 11512 } |
| 11513 | 11513 |
| 11514 int indexOf(Node element, [int start = 0]) => | 11514 int indexOf(Node element, [int start = 0]) => |
| 11515 Lists.indexOf(this, element, start, this.length); | 11515 Lists.indexOf(this, element, start, this.length); |
| 11516 | 11516 |
| 11517 int lastIndexOf(Node element, [int start]) { | 11517 int lastIndexOf(Node element, [int start]) { |
| 11518 if (start == null) start = length - 1; | 11518 if (start == null) start = length - 1; |
| 11519 return Lists.lastIndexOf(this, element, start); | 11519 return Lists.lastIndexOf(this, element, start); |
| 11520 } | 11520 } |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11628 | 11628 |
| 11629 // From List<Node>: | 11629 // From List<Node>: |
| 11630 void set length(int value) { | 11630 void set length(int value) { |
| 11631 throw new UnsupportedError("Cannot resize immutable List."); | 11631 throw new UnsupportedError("Cannot resize immutable List."); |
| 11632 } | 11632 } |
| 11633 | 11633 |
| 11634 void clear() { | 11634 void clear() { |
| 11635 throw new UnsupportedError("Cannot clear immutable List."); | 11635 throw new UnsupportedError("Cannot clear immutable List."); |
| 11636 } | 11636 } |
| 11637 | 11637 |
| 11638 void sort([Comparator compare = Comparable.compare]) { | 11638 void sort([int compare(Node a, Node b)]) { |
| 11639 throw new UnsupportedError("Cannot sort immutable List."); | 11639 throw new UnsupportedError("Cannot sort immutable List."); |
| 11640 } | 11640 } |
| 11641 | 11641 |
| 11642 int indexOf(Node element, [int start = 0]) => | 11642 int indexOf(Node element, [int start = 0]) => |
| 11643 Lists.indexOf(this, element, start, this.length); | 11643 Lists.indexOf(this, element, start, this.length); |
| 11644 | 11644 |
| 11645 int lastIndexOf(Node element, [int start]) { | 11645 int lastIndexOf(Node element, [int start]) { |
| 11646 if (start == null) start = length - 1; | 11646 if (start == null) start = length - 1; |
| 11647 return Lists.lastIndexOf(this, element, start); | 11647 return Lists.lastIndexOf(this, element, start); |
| 11648 } | 11648 } |
| (...skipping 1273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12922 | 12922 |
| 12923 // From List<int>: | 12923 // From List<int>: |
| 12924 void set length(int value) { | 12924 void set length(int value) { |
| 12925 throw new UnsupportedError("Cannot resize immutable List."); | 12925 throw new UnsupportedError("Cannot resize immutable List."); |
| 12926 } | 12926 } |
| 12927 | 12927 |
| 12928 void clear() { | 12928 void clear() { |
| 12929 throw new UnsupportedError("Cannot clear immutable List."); | 12929 throw new UnsupportedError("Cannot clear immutable List."); |
| 12930 } | 12930 } |
| 12931 | 12931 |
| 12932 void sort([Comparator compare = Comparable.compare]) { | 12932 void sort([int compare(int a, int b)]) { |
| 12933 throw new UnsupportedError("Cannot sort immutable List."); | 12933 throw new UnsupportedError("Cannot sort immutable List."); |
| 12934 } | 12934 } |
| 12935 | 12935 |
| 12936 int indexOf(int element, [int start = 0]) => | 12936 int indexOf(int element, [int start = 0]) => |
| 12937 Lists.indexOf(this, element, start, this.length); | 12937 Lists.indexOf(this, element, start, this.length); |
| 12938 | 12938 |
| 12939 int lastIndexOf(int element, [int start]) { | 12939 int lastIndexOf(int element, [int start]) { |
| 12940 if (start == null) start = length - 1; | 12940 if (start == null) start = length - 1; |
| 12941 return Lists.lastIndexOf(this, element, start); | 12941 return Lists.lastIndexOf(this, element, start); |
| 12942 } | 12942 } |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13070 | 13070 |
| 13071 // From List<int>: | 13071 // From List<int>: |
| 13072 void set length(int value) { | 13072 void set length(int value) { |
| 13073 throw new UnsupportedError("Cannot resize immutable List."); | 13073 throw new UnsupportedError("Cannot resize immutable List."); |
| 13074 } | 13074 } |
| 13075 | 13075 |
| 13076 void clear() { | 13076 void clear() { |
| 13077 throw new UnsupportedError("Cannot clear immutable List."); | 13077 throw new UnsupportedError("Cannot clear immutable List."); |
| 13078 } | 13078 } |
| 13079 | 13079 |
| 13080 void sort([Comparator compare = Comparable.compare]) { | 13080 void sort([int compare(int a, int b)]) { |
| 13081 throw new UnsupportedError("Cannot sort immutable List."); | 13081 throw new UnsupportedError("Cannot sort immutable List."); |
| 13082 } | 13082 } |
| 13083 | 13083 |
| 13084 int indexOf(int element, [int start = 0]) => | 13084 int indexOf(int element, [int start = 0]) => |
| 13085 Lists.indexOf(this, element, start, this.length); | 13085 Lists.indexOf(this, element, start, this.length); |
| 13086 | 13086 |
| 13087 int lastIndexOf(int element, [int start]) { | 13087 int lastIndexOf(int element, [int start]) { |
| 13088 if (start == null) start = length - 1; | 13088 if (start == null) start = length - 1; |
| 13089 return Lists.lastIndexOf(this, element, start); | 13089 return Lists.lastIndexOf(this, element, start); |
| 13090 } | 13090 } |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13218 | 13218 |
| 13219 // From List<int>: | 13219 // From List<int>: |
| 13220 void set length(int value) { | 13220 void set length(int value) { |
| 13221 throw new UnsupportedError("Cannot resize immutable List."); | 13221 throw new UnsupportedError("Cannot resize immutable List."); |
| 13222 } | 13222 } |
| 13223 | 13223 |
| 13224 void clear() { | 13224 void clear() { |
| 13225 throw new UnsupportedError("Cannot clear immutable List."); | 13225 throw new UnsupportedError("Cannot clear immutable List."); |
| 13226 } | 13226 } |
| 13227 | 13227 |
| 13228 void sort([Comparator compare = Comparable.compare]) { | 13228 void sort([int compare(int a, int b)]) { |
| 13229 throw new UnsupportedError("Cannot sort immutable List."); | 13229 throw new UnsupportedError("Cannot sort immutable List."); |
| 13230 } | 13230 } |
| 13231 | 13231 |
| 13232 int indexOf(int element, [int start = 0]) => | 13232 int indexOf(int element, [int start = 0]) => |
| 13233 Lists.indexOf(this, element, start, this.length); | 13233 Lists.indexOf(this, element, start, this.length); |
| 13234 | 13234 |
| 13235 int lastIndexOf(int element, [int start]) { | 13235 int lastIndexOf(int element, [int start]) { |
| 13236 if (start == null) start = length - 1; | 13236 if (start == null) start = length - 1; |
| 13237 return Lists.lastIndexOf(this, element, start); | 13237 return Lists.lastIndexOf(this, element, start); |
| 13238 } | 13238 } |
| (...skipping 2843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16082 | 16082 |
| 16083 // From List<Node>: | 16083 // From List<Node>: |
| 16084 void set length(int value) { | 16084 void set length(int value) { |
| 16085 throw new UnsupportedError("Cannot resize immutable List."); | 16085 throw new UnsupportedError("Cannot resize immutable List."); |
| 16086 } | 16086 } |
| 16087 | 16087 |
| 16088 void clear() { | 16088 void clear() { |
| 16089 throw new UnsupportedError("Cannot clear immutable List."); | 16089 throw new UnsupportedError("Cannot clear immutable List."); |
| 16090 } | 16090 } |
| 16091 | 16091 |
| 16092 void sort([Comparator compare = Comparable.compare]) { | 16092 void sort([int compare(Node a, Node b)]) { |
| 16093 throw new UnsupportedError("Cannot sort immutable List."); | 16093 throw new UnsupportedError("Cannot sort immutable List."); |
| 16094 } | 16094 } |
| 16095 | 16095 |
| 16096 int indexOf(Node element, [int start = 0]) => | 16096 int indexOf(Node element, [int start = 0]) => |
| 16097 Lists.indexOf(this, element, start, this.length); | 16097 Lists.indexOf(this, element, start, this.length); |
| 16098 | 16098 |
| 16099 int lastIndexOf(Node element, [int start]) { | 16099 int lastIndexOf(Node element, [int start]) { |
| 16100 if (start == null) start = length - 1; | 16100 if (start == null) start = length - 1; |
| 16101 return Lists.lastIndexOf(this, element, start); | 16101 return Lists.lastIndexOf(this, element, start); |
| 16102 } | 16102 } |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16364 bool every(bool f(Node element)) => Collections.every(this, f); | 16364 bool every(bool f(Node element)) => Collections.every(this, f); |
| 16365 | 16365 |
| 16366 bool some(bool f(Node element)) => Collections.some(this, f); | 16366 bool some(bool f(Node element)) => Collections.some(this, f); |
| 16367 | 16367 |
| 16368 bool get isEmpty => this.length == 0; | 16368 bool get isEmpty => this.length == 0; |
| 16369 | 16369 |
| 16370 // From List<Node>: | 16370 // From List<Node>: |
| 16371 | 16371 |
| 16372 // TODO(jacobr): this could be implemented for child node lists. | 16372 // TODO(jacobr): this could be implemented for child node lists. |
| 16373 // The exception we throw here is misleading. | 16373 // The exception we throw here is misleading. |
| 16374 void sort([Comparator compare = Comparable.compare]) { | 16374 void sort([int compare(Node a, Node b)]) { |
| 16375 throw new UnsupportedError("Cannot sort immutable List."); | 16375 throw new UnsupportedError("Cannot sort immutable List."); |
| 16376 } | 16376 } |
| 16377 | 16377 |
| 16378 int indexOf(Node element, [int start = 0]) => | 16378 int indexOf(Node element, [int start = 0]) => |
| 16379 Lists.indexOf(this, element, start, this.length); | 16379 Lists.indexOf(this, element, start, this.length); |
| 16380 | 16380 |
| 16381 int lastIndexOf(Node element, [int start = 0]) => | 16381 int lastIndexOf(Node element, [int start = 0]) => |
| 16382 Lists.lastIndexOf(this, element, start); | 16382 Lists.lastIndexOf(this, element, start); |
| 16383 | 16383 |
| 16384 // FIXME: implement these. | 16384 // FIXME: implement these. |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16748 | 16748 |
| 16749 // From List<Node>: | 16749 // From List<Node>: |
| 16750 void set length(int value) { | 16750 void set length(int value) { |
| 16751 throw new UnsupportedError("Cannot resize immutable List."); | 16751 throw new UnsupportedError("Cannot resize immutable List."); |
| 16752 } | 16752 } |
| 16753 | 16753 |
| 16754 void clear() { | 16754 void clear() { |
| 16755 throw new UnsupportedError("Cannot clear immutable List."); | 16755 throw new UnsupportedError("Cannot clear immutable List."); |
| 16756 } | 16756 } |
| 16757 | 16757 |
| 16758 void sort([Comparator compare = Comparable.compare]) { | 16758 void sort([int compare(Node a, Node b)]) { |
| 16759 throw new UnsupportedError("Cannot sort immutable List."); | 16759 throw new UnsupportedError("Cannot sort immutable List."); |
| 16760 } | 16760 } |
| 16761 | 16761 |
| 16762 int indexOf(Node element, [int start = 0]) => | 16762 int indexOf(Node element, [int start = 0]) => |
| 16763 Lists.indexOf(this, element, start, this.length); | 16763 Lists.indexOf(this, element, start, this.length); |
| 16764 | 16764 |
| 16765 int lastIndexOf(Node element, [int start]) { | 16765 int lastIndexOf(Node element, [int start]) { |
| 16766 if (start == null) start = length - 1; | 16766 if (start == null) start = length - 1; |
| 16767 return Lists.lastIndexOf(this, element, start); | 16767 return Lists.lastIndexOf(this, element, start); |
| 16768 } | 16768 } |
| (...skipping 2568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19337 | 19337 |
| 19338 // From List<SourceBuffer>: | 19338 // From List<SourceBuffer>: |
| 19339 void set length(int value) { | 19339 void set length(int value) { |
| 19340 throw new UnsupportedError("Cannot resize immutable List."); | 19340 throw new UnsupportedError("Cannot resize immutable List."); |
| 19341 } | 19341 } |
| 19342 | 19342 |
| 19343 void clear() { | 19343 void clear() { |
| 19344 throw new UnsupportedError("Cannot clear immutable List."); | 19344 throw new UnsupportedError("Cannot clear immutable List."); |
| 19345 } | 19345 } |
| 19346 | 19346 |
| 19347 void sort([Comparator compare = Comparable.compare]) { | 19347 void sort([int compare(SourceBuffer a, SourceBuffer b)]) { |
| 19348 throw new UnsupportedError("Cannot sort immutable List."); | 19348 throw new UnsupportedError("Cannot sort immutable List."); |
| 19349 } | 19349 } |
| 19350 | 19350 |
| 19351 int indexOf(SourceBuffer element, [int start = 0]) => | 19351 int indexOf(SourceBuffer element, [int start = 0]) => |
| 19352 Lists.indexOf(this, element, start, this.length); | 19352 Lists.indexOf(this, element, start, this.length); |
| 19353 | 19353 |
| 19354 int lastIndexOf(SourceBuffer element, [int start]) { | 19354 int lastIndexOf(SourceBuffer element, [int start]) { |
| 19355 if (start == null) start = length - 1; | 19355 if (start == null) start = length - 1; |
| 19356 return Lists.lastIndexOf(this, element, start); | 19356 return Lists.lastIndexOf(this, element, start); |
| 19357 } | 19357 } |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19553 | 19553 |
| 19554 // From List<SpeechGrammar>: | 19554 // From List<SpeechGrammar>: |
| 19555 void set length(int value) { | 19555 void set length(int value) { |
| 19556 throw new UnsupportedError("Cannot resize immutable List."); | 19556 throw new UnsupportedError("Cannot resize immutable List."); |
| 19557 } | 19557 } |
| 19558 | 19558 |
| 19559 void clear() { | 19559 void clear() { |
| 19560 throw new UnsupportedError("Cannot clear immutable List."); | 19560 throw new UnsupportedError("Cannot clear immutable List."); |
| 19561 } | 19561 } |
| 19562 | 19562 |
| 19563 void sort([Comparator compare = Comparable.compare]) { | 19563 void sort([int compare(SpeechGrammar a, SpeechGrammar b)]) { |
| 19564 throw new UnsupportedError("Cannot sort immutable List."); | 19564 throw new UnsupportedError("Cannot sort immutable List."); |
| 19565 } | 19565 } |
| 19566 | 19566 |
| 19567 int indexOf(SpeechGrammar element, [int start = 0]) => | 19567 int indexOf(SpeechGrammar element, [int start = 0]) => |
| 19568 Lists.indexOf(this, element, start, this.length); | 19568 Lists.indexOf(this, element, start, this.length); |
| 19569 | 19569 |
| 19570 int lastIndexOf(SpeechGrammar element, [int start]) { | 19570 int lastIndexOf(SpeechGrammar element, [int start]) { |
| 19571 if (start == null) start = length - 1; | 19571 if (start == null) start = length - 1; |
| 19572 return Lists.lastIndexOf(this, element, start); | 19572 return Lists.lastIndexOf(this, element, start); |
| 19573 } | 19573 } |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20055 | 20055 |
| 20056 // From List<Map>: | 20056 // From List<Map>: |
| 20057 void set length(int value) { | 20057 void set length(int value) { |
| 20058 throw new UnsupportedError("Cannot resize immutable List."); | 20058 throw new UnsupportedError("Cannot resize immutable List."); |
| 20059 } | 20059 } |
| 20060 | 20060 |
| 20061 void clear() { | 20061 void clear() { |
| 20062 throw new UnsupportedError("Cannot clear immutable List."); | 20062 throw new UnsupportedError("Cannot clear immutable List."); |
| 20063 } | 20063 } |
| 20064 | 20064 |
| 20065 void sort([Comparator compare = Comparable.compare]) { | 20065 void sort([int compare(Map a, Map b)]) { |
| 20066 throw new UnsupportedError("Cannot sort immutable List."); | 20066 throw new UnsupportedError("Cannot sort immutable List."); |
| 20067 } | 20067 } |
| 20068 | 20068 |
| 20069 int indexOf(Map element, [int start = 0]) => | 20069 int indexOf(Map element, [int start = 0]) => |
| 20070 Lists.indexOf(this, element, start, this.length); | 20070 Lists.indexOf(this, element, start, this.length); |
| 20071 | 20071 |
| 20072 int lastIndexOf(Map element, [int start]) { | 20072 int lastIndexOf(Map element, [int start]) { |
| 20073 if (start == null) start = length - 1; | 20073 if (start == null) start = length - 1; |
| 20074 return Lists.lastIndexOf(this, element, start); | 20074 return Lists.lastIndexOf(this, element, start); |
| 20075 } | 20075 } |
| (...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21475 | 21475 |
| 21476 // From List<TextTrackCue>: | 21476 // From List<TextTrackCue>: |
| 21477 void set length(int value) { | 21477 void set length(int value) { |
| 21478 throw new UnsupportedError("Cannot resize immutable List."); | 21478 throw new UnsupportedError("Cannot resize immutable List."); |
| 21479 } | 21479 } |
| 21480 | 21480 |
| 21481 void clear() { | 21481 void clear() { |
| 21482 throw new UnsupportedError("Cannot clear immutable List."); | 21482 throw new UnsupportedError("Cannot clear immutable List."); |
| 21483 } | 21483 } |
| 21484 | 21484 |
| 21485 void sort([Comparator compare = Comparable.compare]) { | 21485 void sort([int compare(TextTrackCue a, TextTrackCue b)]) { |
| 21486 throw new UnsupportedError("Cannot sort immutable List."); | 21486 throw new UnsupportedError("Cannot sort immutable List."); |
| 21487 } | 21487 } |
| 21488 | 21488 |
| 21489 int indexOf(TextTrackCue element, [int start = 0]) => | 21489 int indexOf(TextTrackCue element, [int start = 0]) => |
| 21490 Lists.indexOf(this, element, start, this.length); | 21490 Lists.indexOf(this, element, start, this.length); |
| 21491 | 21491 |
| 21492 int lastIndexOf(TextTrackCue element, [int start]) { | 21492 int lastIndexOf(TextTrackCue element, [int start]) { |
| 21493 if (start == null) start = length - 1; | 21493 if (start == null) start = length - 1; |
| 21494 return Lists.lastIndexOf(this, element, start); | 21494 return Lists.lastIndexOf(this, element, start); |
| 21495 } | 21495 } |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21603 | 21603 |
| 21604 // From List<TextTrack>: | 21604 // From List<TextTrack>: |
| 21605 void set length(int value) { | 21605 void set length(int value) { |
| 21606 throw new UnsupportedError("Cannot resize immutable List."); | 21606 throw new UnsupportedError("Cannot resize immutable List."); |
| 21607 } | 21607 } |
| 21608 | 21608 |
| 21609 void clear() { | 21609 void clear() { |
| 21610 throw new UnsupportedError("Cannot clear immutable List."); | 21610 throw new UnsupportedError("Cannot clear immutable List."); |
| 21611 } | 21611 } |
| 21612 | 21612 |
| 21613 void sort([Comparator compare = Comparable.compare]) { | 21613 void sort([int compare(TextTrack a, TextTrack b)]) { |
| 21614 throw new UnsupportedError("Cannot sort immutable List."); | 21614 throw new UnsupportedError("Cannot sort immutable List."); |
| 21615 } | 21615 } |
| 21616 | 21616 |
| 21617 int indexOf(TextTrack element, [int start = 0]) => | 21617 int indexOf(TextTrack element, [int start = 0]) => |
| 21618 Lists.indexOf(this, element, start, this.length); | 21618 Lists.indexOf(this, element, start, this.length); |
| 21619 | 21619 |
| 21620 int lastIndexOf(TextTrack element, [int start]) { | 21620 int lastIndexOf(TextTrack element, [int start]) { |
| 21621 if (start == null) start = length - 1; | 21621 if (start == null) start = length - 1; |
| 21622 return Lists.lastIndexOf(this, element, start); | 21622 return Lists.lastIndexOf(this, element, start); |
| 21623 } | 21623 } |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21891 | 21891 |
| 21892 // From List<Touch>: | 21892 // From List<Touch>: |
| 21893 void set length(int value) { | 21893 void set length(int value) { |
| 21894 throw new UnsupportedError("Cannot resize immutable List."); | 21894 throw new UnsupportedError("Cannot resize immutable List."); |
| 21895 } | 21895 } |
| 21896 | 21896 |
| 21897 void clear() { | 21897 void clear() { |
| 21898 throw new UnsupportedError("Cannot clear immutable List."); | 21898 throw new UnsupportedError("Cannot clear immutable List."); |
| 21899 } | 21899 } |
| 21900 | 21900 |
| 21901 void sort([Comparator compare = Comparable.compare]) { | 21901 void sort([int compare(Touch a, Touch b)]) { |
| 21902 throw new UnsupportedError("Cannot sort immutable List."); | 21902 throw new UnsupportedError("Cannot sort immutable List."); |
| 21903 } | 21903 } |
| 21904 | 21904 |
| 21905 int indexOf(Touch element, [int start = 0]) => | 21905 int indexOf(Touch element, [int start = 0]) => |
| 21906 Lists.indexOf(this, element, start, this.length); | 21906 Lists.indexOf(this, element, start, this.length); |
| 21907 | 21907 |
| 21908 int lastIndexOf(Touch element, [int start]) { | 21908 int lastIndexOf(Touch element, [int start]) { |
| 21909 if (start == null) start = length - 1; | 21909 if (start == null) start = length - 1; |
| 21910 return Lists.lastIndexOf(this, element, start); | 21910 return Lists.lastIndexOf(this, element, start); |
| 21911 } | 21911 } |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22288 | 22288 |
| 22289 // From List<int>: | 22289 // From List<int>: |
| 22290 void set length(int value) { | 22290 void set length(int value) { |
| 22291 throw new UnsupportedError("Cannot resize immutable List."); | 22291 throw new UnsupportedError("Cannot resize immutable List."); |
| 22292 } | 22292 } |
| 22293 | 22293 |
| 22294 void clear() { | 22294 void clear() { |
| 22295 throw new UnsupportedError("Cannot clear immutable List."); | 22295 throw new UnsupportedError("Cannot clear immutable List."); |
| 22296 } | 22296 } |
| 22297 | 22297 |
| 22298 void sort([Comparator compare = Comparable.compare]) { | 22298 void sort([int compare(int a, int b)]) { |
| 22299 throw new UnsupportedError("Cannot sort immutable List."); | 22299 throw new UnsupportedError("Cannot sort immutable List."); |
| 22300 } | 22300 } |
| 22301 | 22301 |
| 22302 int indexOf(int element, [int start = 0]) => | 22302 int indexOf(int element, [int start = 0]) => |
| 22303 Lists.indexOf(this, element, start, this.length); | 22303 Lists.indexOf(this, element, start, this.length); |
| 22304 | 22304 |
| 22305 int lastIndexOf(int element, [int start]) { | 22305 int lastIndexOf(int element, [int start]) { |
| 22306 if (start == null) start = length - 1; | 22306 if (start == null) start = length - 1; |
| 22307 return Lists.lastIndexOf(this, element, start); | 22307 return Lists.lastIndexOf(this, element, start); |
| 22308 } | 22308 } |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22436 | 22436 |
| 22437 // From List<int>: | 22437 // From List<int>: |
| 22438 void set length(int value) { | 22438 void set length(int value) { |
| 22439 throw new UnsupportedError("Cannot resize immutable List."); | 22439 throw new UnsupportedError("Cannot resize immutable List."); |
| 22440 } | 22440 } |
| 22441 | 22441 |
| 22442 void clear() { | 22442 void clear() { |
| 22443 throw new UnsupportedError("Cannot clear immutable List."); | 22443 throw new UnsupportedError("Cannot clear immutable List."); |
| 22444 } | 22444 } |
| 22445 | 22445 |
| 22446 void sort([Comparator compare = Comparable.compare]) { | 22446 void sort([int compare(int a, int b)]) { |
| 22447 throw new UnsupportedError("Cannot sort immutable List."); | 22447 throw new UnsupportedError("Cannot sort immutable List."); |
| 22448 } | 22448 } |
| 22449 | 22449 |
| 22450 int indexOf(int element, [int start = 0]) => | 22450 int indexOf(int element, [int start = 0]) => |
| 22451 Lists.indexOf(this, element, start, this.length); | 22451 Lists.indexOf(this, element, start, this.length); |
| 22452 | 22452 |
| 22453 int lastIndexOf(int element, [int start]) { | 22453 int lastIndexOf(int element, [int start]) { |
| 22454 if (start == null) start = length - 1; | 22454 if (start == null) start = length - 1; |
| 22455 return Lists.lastIndexOf(this, element, start); | 22455 return Lists.lastIndexOf(this, element, start); |
| 22456 } | 22456 } |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22584 | 22584 |
| 22585 // From List<int>: | 22585 // From List<int>: |
| 22586 void set length(int value) { | 22586 void set length(int value) { |
| 22587 throw new UnsupportedError("Cannot resize immutable List."); | 22587 throw new UnsupportedError("Cannot resize immutable List."); |
| 22588 } | 22588 } |
| 22589 | 22589 |
| 22590 void clear() { | 22590 void clear() { |
| 22591 throw new UnsupportedError("Cannot clear immutable List."); | 22591 throw new UnsupportedError("Cannot clear immutable List."); |
| 22592 } | 22592 } |
| 22593 | 22593 |
| 22594 void sort([Comparator compare = Comparable.compare]) { | 22594 void sort([int compare(int a, int b)]) { |
| 22595 throw new UnsupportedError("Cannot sort immutable List."); | 22595 throw new UnsupportedError("Cannot sort immutable List."); |
| 22596 } | 22596 } |
| 22597 | 22597 |
| 22598 int indexOf(int element, [int start = 0]) => | 22598 int indexOf(int element, [int start = 0]) => |
| 22599 Lists.indexOf(this, element, start, this.length); | 22599 Lists.indexOf(this, element, start, this.length); |
| 22600 | 22600 |
| 22601 int lastIndexOf(int element, [int start]) { | 22601 int lastIndexOf(int element, [int start]) { |
| 22602 if (start == null) start = length - 1; | 22602 if (start == null) start = length - 1; |
| 22603 return Lists.lastIndexOf(this, element, start); | 22603 return Lists.lastIndexOf(this, element, start); |
| 22604 } | 22604 } |
| (...skipping 2632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25237 | 25237 |
| 25238 // From List<ClientRect>: | 25238 // From List<ClientRect>: |
| 25239 void set length(int value) { | 25239 void set length(int value) { |
| 25240 throw new UnsupportedError("Cannot resize immutable List."); | 25240 throw new UnsupportedError("Cannot resize immutable List."); |
| 25241 } | 25241 } |
| 25242 | 25242 |
| 25243 void clear() { | 25243 void clear() { |
| 25244 throw new UnsupportedError("Cannot clear immutable List."); | 25244 throw new UnsupportedError("Cannot clear immutable List."); |
| 25245 } | 25245 } |
| 25246 | 25246 |
| 25247 void sort([Comparator compare = Comparable.compare]) { | 25247 void sort([int compare(ClientRect a, ClientRect b)]) { |
| 25248 throw new UnsupportedError("Cannot sort immutable List."); | 25248 throw new UnsupportedError("Cannot sort immutable List."); |
| 25249 } | 25249 } |
| 25250 | 25250 |
| 25251 int indexOf(ClientRect element, [int start = 0]) => | 25251 int indexOf(ClientRect element, [int start = 0]) => |
| 25252 Lists.indexOf(this, element, start, this.length); | 25252 Lists.indexOf(this, element, start, this.length); |
| 25253 | 25253 |
| 25254 int lastIndexOf(ClientRect element, [int start]) { | 25254 int lastIndexOf(ClientRect element, [int start]) { |
| 25255 if (start == null) start = length - 1; | 25255 if (start == null) start = length - 1; |
| 25256 return Lists.lastIndexOf(this, element, start); | 25256 return Lists.lastIndexOf(this, element, start); |
| 25257 } | 25257 } |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25365 | 25365 |
| 25366 // From List<CssRule>: | 25366 // From List<CssRule>: |
| 25367 void set length(int value) { | 25367 void set length(int value) { |
| 25368 throw new UnsupportedError("Cannot resize immutable List."); | 25368 throw new UnsupportedError("Cannot resize immutable List."); |
| 25369 } | 25369 } |
| 25370 | 25370 |
| 25371 void clear() { | 25371 void clear() { |
| 25372 throw new UnsupportedError("Cannot clear immutable List."); | 25372 throw new UnsupportedError("Cannot clear immutable List."); |
| 25373 } | 25373 } |
| 25374 | 25374 |
| 25375 void sort([Comparator compare = Comparable.compare]) { | 25375 void sort([int compare(CssRule a, CssRule b)]) { |
| 25376 throw new UnsupportedError("Cannot sort immutable List."); | 25376 throw new UnsupportedError("Cannot sort immutable List."); |
| 25377 } | 25377 } |
| 25378 | 25378 |
| 25379 int indexOf(CssRule element, [int start = 0]) => | 25379 int indexOf(CssRule element, [int start = 0]) => |
| 25380 Lists.indexOf(this, element, start, this.length); | 25380 Lists.indexOf(this, element, start, this.length); |
| 25381 | 25381 |
| 25382 int lastIndexOf(CssRule element, [int start]) { | 25382 int lastIndexOf(CssRule element, [int start]) { |
| 25383 if (start == null) start = length - 1; | 25383 if (start == null) start = length - 1; |
| 25384 return Lists.lastIndexOf(this, element, start); | 25384 return Lists.lastIndexOf(this, element, start); |
| 25385 } | 25385 } |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25485 | 25485 |
| 25486 // From List<CssValue>: | 25486 // From List<CssValue>: |
| 25487 void set length(int value) { | 25487 void set length(int value) { |
| 25488 throw new UnsupportedError("Cannot resize immutable List."); | 25488 throw new UnsupportedError("Cannot resize immutable List."); |
| 25489 } | 25489 } |
| 25490 | 25490 |
| 25491 void clear() { | 25491 void clear() { |
| 25492 throw new UnsupportedError("Cannot clear immutable List."); | 25492 throw new UnsupportedError("Cannot clear immutable List."); |
| 25493 } | 25493 } |
| 25494 | 25494 |
| 25495 void sort([Comparator compare = Comparable.compare]) { | 25495 void sort([int compare(CssValue a, CssValue b)]) { |
| 25496 throw new UnsupportedError("Cannot sort immutable List."); | 25496 throw new UnsupportedError("Cannot sort immutable List."); |
| 25497 } | 25497 } |
| 25498 | 25498 |
| 25499 int indexOf(CssValue element, [int start = 0]) => | 25499 int indexOf(CssValue element, [int start = 0]) => |
| 25500 Lists.indexOf(this, element, start, this.length); | 25500 Lists.indexOf(this, element, start, this.length); |
| 25501 | 25501 |
| 25502 int lastIndexOf(CssValue element, [int start]) { | 25502 int lastIndexOf(CssValue element, [int start]) { |
| 25503 if (start == null) start = length - 1; | 25503 if (start == null) start = length - 1; |
| 25504 return Lists.lastIndexOf(this, element, start); | 25504 return Lists.lastIndexOf(this, element, start); |
| 25505 } | 25505 } |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25757 | 25757 |
| 25758 // From List<Entry>: | 25758 // From List<Entry>: |
| 25759 void set length(int value) { | 25759 void set length(int value) { |
| 25760 throw new UnsupportedError("Cannot resize immutable List."); | 25760 throw new UnsupportedError("Cannot resize immutable List."); |
| 25761 } | 25761 } |
| 25762 | 25762 |
| 25763 void clear() { | 25763 void clear() { |
| 25764 throw new UnsupportedError("Cannot clear immutable List."); | 25764 throw new UnsupportedError("Cannot clear immutable List."); |
| 25765 } | 25765 } |
| 25766 | 25766 |
| 25767 void sort([Comparator compare = Comparable.compare]) { | 25767 void sort([int compare(Entry a, Entry b)]) { |
| 25768 throw new UnsupportedError("Cannot sort immutable List."); | 25768 throw new UnsupportedError("Cannot sort immutable List."); |
| 25769 } | 25769 } |
| 25770 | 25770 |
| 25771 int indexOf(Entry element, [int start = 0]) => | 25771 int indexOf(Entry element, [int start = 0]) => |
| 25772 Lists.indexOf(this, element, start, this.length); | 25772 Lists.indexOf(this, element, start, this.length); |
| 25773 | 25773 |
| 25774 int lastIndexOf(Entry element, [int start]) { | 25774 int lastIndexOf(Entry element, [int start]) { |
| 25775 if (start == null) start = length - 1; | 25775 if (start == null) start = length - 1; |
| 25776 return Lists.lastIndexOf(this, element, start); | 25776 return Lists.lastIndexOf(this, element, start); |
| 25777 } | 25777 } |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25877 | 25877 |
| 25878 // From List<EntrySync>: | 25878 // From List<EntrySync>: |
| 25879 void set length(int value) { | 25879 void set length(int value) { |
| 25880 throw new UnsupportedError("Cannot resize immutable List."); | 25880 throw new UnsupportedError("Cannot resize immutable List."); |
| 25881 } | 25881 } |
| 25882 | 25882 |
| 25883 void clear() { | 25883 void clear() { |
| 25884 throw new UnsupportedError("Cannot clear immutable List."); | 25884 throw new UnsupportedError("Cannot clear immutable List."); |
| 25885 } | 25885 } |
| 25886 | 25886 |
| 25887 void sort([Comparator compare = Comparable.compare]) { | 25887 void sort([int compare(EntrySync a, EntrySync b)]) { |
| 25888 throw new UnsupportedError("Cannot sort immutable List."); | 25888 throw new UnsupportedError("Cannot sort immutable List."); |
| 25889 } | 25889 } |
| 25890 | 25890 |
| 25891 int indexOf(EntrySync element, [int start = 0]) => | 25891 int indexOf(EntrySync element, [int start = 0]) => |
| 25892 Lists.indexOf(this, element, start, this.length); | 25892 Lists.indexOf(this, element, start, this.length); |
| 25893 | 25893 |
| 25894 int lastIndexOf(EntrySync element, [int start]) { | 25894 int lastIndexOf(EntrySync element, [int start]) { |
| 25895 if (start == null) start = length - 1; | 25895 if (start == null) start = length - 1; |
| 25896 return Lists.lastIndexOf(this, element, start); | 25896 return Lists.lastIndexOf(this, element, start); |
| 25897 } | 25897 } |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 26029 | 26029 |
| 26030 // From List<Gamepad>: | 26030 // From List<Gamepad>: |
| 26031 void set length(int value) { | 26031 void set length(int value) { |
| 26032 throw new UnsupportedError("Cannot resize immutable List."); | 26032 throw new UnsupportedError("Cannot resize immutable List."); |
| 26033 } | 26033 } |
| 26034 | 26034 |
| 26035 void clear() { | 26035 void clear() { |
| 26036 throw new UnsupportedError("Cannot clear immutable List."); | 26036 throw new UnsupportedError("Cannot clear immutable List."); |
| 26037 } | 26037 } |
| 26038 | 26038 |
| 26039 void sort([Comparator compare = Comparable.compare]) { | 26039 void sort([int compare(Gamepad a, Gamepad b)]) { |
| 26040 throw new UnsupportedError("Cannot sort immutable List."); | 26040 throw new UnsupportedError("Cannot sort immutable List."); |
| 26041 } | 26041 } |
| 26042 | 26042 |
| 26043 int indexOf(Gamepad element, [int start = 0]) => | 26043 int indexOf(Gamepad element, [int start = 0]) => |
| 26044 Lists.indexOf(this, element, start, this.length); | 26044 Lists.indexOf(this, element, start, this.length); |
| 26045 | 26045 |
| 26046 int lastIndexOf(Gamepad element, [int start]) { | 26046 int lastIndexOf(Gamepad element, [int start]) { |
| 26047 if (start == null) start = length - 1; | 26047 if (start == null) start = length - 1; |
| 26048 return Lists.lastIndexOf(this, element, start); | 26048 return Lists.lastIndexOf(this, element, start); |
| 26049 } | 26049 } |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 26198 | 26198 |
| 26199 // From List<MediaStream>: | 26199 // From List<MediaStream>: |
| 26200 void set length(int value) { | 26200 void set length(int value) { |
| 26201 throw new UnsupportedError("Cannot resize immutable List."); | 26201 throw new UnsupportedError("Cannot resize immutable List."); |
| 26202 } | 26202 } |
| 26203 | 26203 |
| 26204 void clear() { | 26204 void clear() { |
| 26205 throw new UnsupportedError("Cannot clear immutable List."); | 26205 throw new UnsupportedError("Cannot clear immutable List."); |
| 26206 } | 26206 } |
| 26207 | 26207 |
| 26208 void sort([Comparator compare = Comparable.compare]) { | 26208 void sort([int compare(MediaStream a, MediaStream b)]) { |
| 26209 throw new UnsupportedError("Cannot sort immutable List."); | 26209 throw new UnsupportedError("Cannot sort immutable List."); |
| 26210 } | 26210 } |
| 26211 | 26211 |
| 26212 int indexOf(MediaStream element, [int start = 0]) => | 26212 int indexOf(MediaStream element, [int start = 0]) => |
| 26213 Lists.indexOf(this, element, start, this.length); | 26213 Lists.indexOf(this, element, start, this.length); |
| 26214 | 26214 |
| 26215 int lastIndexOf(MediaStream element, [int start]) { | 26215 int lastIndexOf(MediaStream element, [int start]) { |
| 26216 if (start == null) start = length - 1; | 26216 if (start == null) start = length - 1; |
| 26217 return Lists.lastIndexOf(this, element, start); | 26217 return Lists.lastIndexOf(this, element, start); |
| 26218 } | 26218 } |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 26422 | 26422 |
| 26423 // From List<SpeechInputResult>: | 26423 // From List<SpeechInputResult>: |
| 26424 void set length(int value) { | 26424 void set length(int value) { |
| 26425 throw new UnsupportedError("Cannot resize immutable List."); | 26425 throw new UnsupportedError("Cannot resize immutable List."); |
| 26426 } | 26426 } |
| 26427 | 26427 |
| 26428 void clear() { | 26428 void clear() { |
| 26429 throw new UnsupportedError("Cannot clear immutable List."); | 26429 throw new UnsupportedError("Cannot clear immutable List."); |
| 26430 } | 26430 } |
| 26431 | 26431 |
| 26432 void sort([Comparator compare = Comparable.compare]) { | 26432 void sort([int compare(SpeechInputResult a, SpeechInputResult b)]) { |
| 26433 throw new UnsupportedError("Cannot sort immutable List."); | 26433 throw new UnsupportedError("Cannot sort immutable List."); |
| 26434 } | 26434 } |
| 26435 | 26435 |
| 26436 int indexOf(SpeechInputResult element, [int start = 0]) => | 26436 int indexOf(SpeechInputResult element, [int start = 0]) => |
| 26437 Lists.indexOf(this, element, start, this.length); | 26437 Lists.indexOf(this, element, start, this.length); |
| 26438 | 26438 |
| 26439 int lastIndexOf(SpeechInputResult element, [int start]) { | 26439 int lastIndexOf(SpeechInputResult element, [int start]) { |
| 26440 if (start == null) start = length - 1; | 26440 if (start == null) start = length - 1; |
| 26441 return Lists.lastIndexOf(this, element, start); | 26441 return Lists.lastIndexOf(this, element, start); |
| 26442 } | 26442 } |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 26550 | 26550 |
| 26551 // From List<SpeechRecognitionResult>: | 26551 // From List<SpeechRecognitionResult>: |
| 26552 void set length(int value) { | 26552 void set length(int value) { |
| 26553 throw new UnsupportedError("Cannot resize immutable List."); | 26553 throw new UnsupportedError("Cannot resize immutable List."); |
| 26554 } | 26554 } |
| 26555 | 26555 |
| 26556 void clear() { | 26556 void clear() { |
| 26557 throw new UnsupportedError("Cannot clear immutable List."); | 26557 throw new UnsupportedError("Cannot clear immutable List."); |
| 26558 } | 26558 } |
| 26559 | 26559 |
| 26560 void sort([Comparator compare = Comparable.compare]) { | 26560 void sort([int compare(SpeechRecognitionResult a, SpeechRecognitionResult b)])
{ |
| 26561 throw new UnsupportedError("Cannot sort immutable List."); | 26561 throw new UnsupportedError("Cannot sort immutable List."); |
| 26562 } | 26562 } |
| 26563 | 26563 |
| 26564 int indexOf(SpeechRecognitionResult element, [int start = 0]) => | 26564 int indexOf(SpeechRecognitionResult element, [int start = 0]) => |
| 26565 Lists.indexOf(this, element, start, this.length); | 26565 Lists.indexOf(this, element, start, this.length); |
| 26566 | 26566 |
| 26567 int lastIndexOf(SpeechRecognitionResult element, [int start]) { | 26567 int lastIndexOf(SpeechRecognitionResult element, [int start]) { |
| 26568 if (start == null) start = length - 1; | 26568 if (start == null) start = length - 1; |
| 26569 return Lists.lastIndexOf(this, element, start); | 26569 return Lists.lastIndexOf(this, element, start); |
| 26570 } | 26570 } |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 26670 | 26670 |
| 26671 // From List<StyleSheet>: | 26671 // From List<StyleSheet>: |
| 26672 void set length(int value) { | 26672 void set length(int value) { |
| 26673 throw new UnsupportedError("Cannot resize immutable List."); | 26673 throw new UnsupportedError("Cannot resize immutable List."); |
| 26674 } | 26674 } |
| 26675 | 26675 |
| 26676 void clear() { | 26676 void clear() { |
| 26677 throw new UnsupportedError("Cannot clear immutable List."); | 26677 throw new UnsupportedError("Cannot clear immutable List."); |
| 26678 } | 26678 } |
| 26679 | 26679 |
| 26680 void sort([Comparator compare = Comparable.compare]) { | 26680 void sort([int compare(StyleSheet a, StyleSheet b)]) { |
| 26681 throw new UnsupportedError("Cannot sort immutable List."); | 26681 throw new UnsupportedError("Cannot sort immutable List."); |
| 26682 } | 26682 } |
| 26683 | 26683 |
| 26684 int indexOf(StyleSheet element, [int start = 0]) => | 26684 int indexOf(StyleSheet element, [int start = 0]) => |
| 26685 Lists.indexOf(this, element, start, this.length); | 26685 Lists.indexOf(this, element, start, this.length); |
| 26686 | 26686 |
| 26687 int lastIndexOf(StyleSheet element, [int start]) { | 26687 int lastIndexOf(StyleSheet element, [int start]) { |
| 26688 if (start == null) start = length - 1; | 26688 if (start == null) start = length - 1; |
| 26689 return Lists.lastIndexOf(this, element, start); | 26689 return Lists.lastIndexOf(this, element, start); |
| 26690 } | 26690 } |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 26798 | 26798 |
| 26799 // From List<Animation>: | 26799 // From List<Animation>: |
| 26800 void set length(int value) { | 26800 void set length(int value) { |
| 26801 throw new UnsupportedError("Cannot resize immutable List."); | 26801 throw new UnsupportedError("Cannot resize immutable List."); |
| 26802 } | 26802 } |
| 26803 | 26803 |
| 26804 void clear() { | 26804 void clear() { |
| 26805 throw new UnsupportedError("Cannot clear immutable List."); | 26805 throw new UnsupportedError("Cannot clear immutable List."); |
| 26806 } | 26806 } |
| 26807 | 26807 |
| 26808 void sort([Comparator compare = Comparable.compare]) { | 26808 void sort([int compare(Animation a, Animation b)]) { |
| 26809 throw new UnsupportedError("Cannot sort immutable List."); | 26809 throw new UnsupportedError("Cannot sort immutable List."); |
| 26810 } | 26810 } |
| 26811 | 26811 |
| 26812 int indexOf(Animation element, [int start = 0]) => | 26812 int indexOf(Animation element, [int start = 0]) => |
| 26813 Lists.indexOf(this, element, start, this.length); | 26813 Lists.indexOf(this, element, start, this.length); |
| 26814 | 26814 |
| 26815 int lastIndexOf(Animation element, [int start]) { | 26815 int lastIndexOf(Animation element, [int start]) { |
| 26816 if (start == null) start = length - 1; | 26816 if (start == null) start = length - 1; |
| 26817 return Lists.lastIndexOf(this, element, start); | 26817 return Lists.lastIndexOf(this, element, start); |
| 26818 } | 26818 } |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 27414 } | 27414 } |
| 27415 | 27415 |
| 27416 void addLast(Element value) { | 27416 void addLast(Element value) { |
| 27417 add(value); | 27417 add(value); |
| 27418 } | 27418 } |
| 27419 | 27419 |
| 27420 bool contains(Element element) { | 27420 bool contains(Element element) { |
| 27421 return element is Element && _childNodes.contains(element); | 27421 return element is Element && _childNodes.contains(element); |
| 27422 } | 27422 } |
| 27423 | 27423 |
| 27424 void sort([Comparator compare = Comparable.compare]) { | 27424 void sort([int compare(Element a, Element b)]) { |
| 27425 throw new UnsupportedError('TODO(jacobr): should we impl?'); | 27425 throw new UnsupportedError('TODO(jacobr): should we impl?'); |
| 27426 } | 27426 } |
| 27427 | 27427 |
| 27428 void setRange(int start, int rangeLength, List from, [int startFrom = 0]) { | 27428 void setRange(int start, int rangeLength, List from, [int startFrom = 0]) { |
| 27429 throw new UnimplementedError(); | 27429 throw new UnimplementedError(); |
| 27430 } | 27430 } |
| 27431 | 27431 |
| 27432 void removeRange(int start, int rangeLength) { | 27432 void removeRange(int start, int rangeLength) { |
| 27433 _filtered.getRange(start, rangeLength).forEach((el) => el.remove()); | 27433 _filtered.getRange(start, rangeLength).forEach((el) => el.remove()); |
| 27434 } | 27434 } |
| (...skipping 2397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 29832 bool get isEmpty => Maps.isEmpty(this); | 29832 bool get isEmpty => Maps.isEmpty(this); |
| 29833 } | 29833 } |
| 29834 | 29834 |
| 29835 get _printClosure => (s) { | 29835 get _printClosure => (s) { |
| 29836 try { | 29836 try { |
| 29837 window.console.log(s); | 29837 window.console.log(s); |
| 29838 } catch (_) { | 29838 } catch (_) { |
| 29839 _Utils.print(s); | 29839 _Utils.print(s); |
| 29840 } | 29840 } |
| 29841 }; | 29841 }; |
| OLD | NEW |