Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: sdk/lib/html/dartium/html_dartium.dart

Issue 11269004: Change List.sort to not have a default parameter value. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated to tup of tree. Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 6650 matching lines...) Expand 10 before | Expand all | Expand 10 after
6661 Collections.filter(this, <DOMMimeType>[], f); 6661 Collections.filter(this, <DOMMimeType>[], f);
6662 6662
6663 bool every(bool f(DOMMimeType element)) => Collections.every(this, f); 6663 bool every(bool f(DOMMimeType element)) => Collections.every(this, f);
6664 6664
6665 bool some(bool f(DOMMimeType element)) => Collections.some(this, f); 6665 bool some(bool f(DOMMimeType element)) => Collections.some(this, f);
6666 6666
6667 bool get isEmpty => this.length == 0; 6667 bool get isEmpty => this.length == 0;
6668 6668
6669 // From List<DOMMimeType>: 6669 // From List<DOMMimeType>:
6670 6670
6671 void sort([Comparator<DOMMimeType> compare = Comparable.compare]) { 6671 void sort([int compare(DOMMimeType a, DOMMimeType b)]) {
6672 throw new UnsupportedError("Cannot sort immutable List."); 6672 throw new UnsupportedError("Cannot sort immutable List.");
6673 } 6673 }
6674 6674
6675 int indexOf(DOMMimeType element, [int start = 0]) => 6675 int indexOf(DOMMimeType element, [int start = 0]) =>
6676 Lists.indexOf(this, element, start, this.length); 6676 Lists.indexOf(this, element, start, this.length);
6677 6677
6678 int lastIndexOf(DOMMimeType element, [int start]) { 6678 int lastIndexOf(DOMMimeType element, [int start]) {
6679 if (start == null) start = length - 1; 6679 if (start == null) start = length - 1;
6680 return Lists.lastIndexOf(this, element, start); 6680 return Lists.lastIndexOf(this, element, start);
6681 } 6681 }
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
6832 Collections.filter(this, <DOMPlugin>[], f); 6832 Collections.filter(this, <DOMPlugin>[], f);
6833 6833
6834 bool every(bool f(DOMPlugin element)) => Collections.every(this, f); 6834 bool every(bool f(DOMPlugin element)) => Collections.every(this, f);
6835 6835
6836 bool some(bool f(DOMPlugin element)) => Collections.some(this, f); 6836 bool some(bool f(DOMPlugin element)) => Collections.some(this, f);
6837 6837
6838 bool get isEmpty => this.length == 0; 6838 bool get isEmpty => this.length == 0;
6839 6839
6840 // From List<DOMPlugin>: 6840 // From List<DOMPlugin>:
6841 6841
6842 void sort([Comparator<DOMPlugin> compare = Comparable.compare]) { 6842 void sort([int compare(DOMPlugin a, DOMPlugin b)]) {
6843 throw new UnsupportedError("Cannot sort immutable List."); 6843 throw new UnsupportedError("Cannot sort immutable List.");
6844 } 6844 }
6845 6845
6846 int indexOf(DOMPlugin element, [int start = 0]) => 6846 int indexOf(DOMPlugin element, [int start = 0]) =>
6847 Lists.indexOf(this, element, start, this.length); 6847 Lists.indexOf(this, element, start, this.length);
6848 6848
6849 int lastIndexOf(DOMPlugin element, [int start]) { 6849 int lastIndexOf(DOMPlugin element, [int start]) {
6850 if (start == null) start = length - 1; 6850 if (start == null) start = length - 1;
6851 return Lists.lastIndexOf(this, element, start); 6851 return Lists.lastIndexOf(this, element, start);
6852 } 6852 }
(...skipping 1576 matching lines...) Expand 10 before | Expand all | Expand 10 after
8429 Element addLast(Element value) => add(value); 8429 Element addLast(Element value) => add(value);
8430 8430
8431 Iterator<Element> iterator() => _toList().iterator(); 8431 Iterator<Element> iterator() => _toList().iterator();
8432 8432
8433 void addAll(Collection<Element> collection) { 8433 void addAll(Collection<Element> collection) {
8434 for (Element element in collection) { 8434 for (Element element in collection) {
8435 _element.$dom_appendChild(element); 8435 _element.$dom_appendChild(element);
8436 } 8436 }
8437 } 8437 }
8438 8438
8439 void sort([Comparator<Element> compare = Comparable.compare]) { 8439 void sort([int compare(Element a, Element b)]) {
8440 throw new UnsupportedError('TODO(jacobr): should we impl?'); 8440 throw new UnsupportedError('TODO(jacobr): should we impl?');
8441 } 8441 }
8442 8442
8443 void setRange(int start, int rangeLength, List from, [int startFrom = 0]) { 8443 void setRange(int start, int rangeLength, List from, [int startFrom = 0]) {
8444 throw new UnimplementedError(); 8444 throw new UnimplementedError();
8445 } 8445 }
8446 8446
8447 void removeRange(int start, int rangeLength) { 8447 void removeRange(int start, int rangeLength) {
8448 throw new UnimplementedError(); 8448 throw new UnimplementedError();
8449 } 8449 }
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
8565 void addLast(Element value) { 8565 void addLast(Element value) {
8566 throw new UnsupportedError(''); 8566 throw new UnsupportedError('');
8567 } 8567 }
8568 8568
8569 Iterator<Element> iterator() => new _FrozenElementListIterator(this); 8569 Iterator<Element> iterator() => new _FrozenElementListIterator(this);
8570 8570
8571 void addAll(Collection<Element> collection) { 8571 void addAll(Collection<Element> collection) {
8572 throw new UnsupportedError(''); 8572 throw new UnsupportedError('');
8573 } 8573 }
8574 8574
8575 void sort([Comparator<Element> compare = Comparable.compare]) { 8575 void sort([int compare(Element a, Element b)]) {
8576 throw new UnsupportedError(''); 8576 throw new UnsupportedError('');
8577 } 8577 }
8578 8578
8579 void setRange(int start, int rangeLength, List from, [int startFrom = 0]) { 8579 void setRange(int start, int rangeLength, List from, [int startFrom = 0]) {
8580 throw new UnsupportedError(''); 8580 throw new UnsupportedError('');
8581 } 8581 }
8582 8582
8583 void removeRange(int start, int rangeLength) { 8583 void removeRange(int start, int rangeLength) {
8584 throw new UnsupportedError(''); 8584 throw new UnsupportedError('');
8585 } 8585 }
(...skipping 1545 matching lines...) Expand 10 before | Expand all | Expand 10 after
10131 Collections.filter(this, <File>[], f); 10131 Collections.filter(this, <File>[], f);
10132 10132
10133 bool every(bool f(File element)) => Collections.every(this, f); 10133 bool every(bool f(File element)) => Collections.every(this, f);
10134 10134
10135 bool some(bool f(File element)) => Collections.some(this, f); 10135 bool some(bool f(File element)) => Collections.some(this, f);
10136 10136
10137 bool get isEmpty => this.length == 0; 10137 bool get isEmpty => this.length == 0;
10138 10138
10139 // From List<File>: 10139 // From List<File>:
10140 10140
10141 void sort([Comparator<File> compare = Comparable.compare]) { 10141 void sort([int compare(File a, File b)]) {
10142 throw new UnsupportedError("Cannot sort immutable List."); 10142 throw new UnsupportedError("Cannot sort immutable List.");
10143 } 10143 }
10144 10144
10145 int indexOf(File element, [int start = 0]) => 10145 int indexOf(File element, [int start = 0]) =>
10146 Lists.indexOf(this, element, start, this.length); 10146 Lists.indexOf(this, element, start, this.length);
10147 10147
10148 int lastIndexOf(File element, [int start]) { 10148 int lastIndexOf(File element, [int start]) {
10149 if (start == null) start = length - 1; 10149 if (start == null) start = length - 1;
10150 return Lists.lastIndexOf(this, element, start); 10150 return Lists.lastIndexOf(this, element, start);
10151 } 10151 }
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
10524 Collections.filter(this, <num>[], f); 10524 Collections.filter(this, <num>[], f);
10525 10525
10526 bool every(bool f(num element)) => Collections.every(this, f); 10526 bool every(bool f(num element)) => Collections.every(this, f);
10527 10527
10528 bool some(bool f(num element)) => Collections.some(this, f); 10528 bool some(bool f(num element)) => Collections.some(this, f);
10529 10529
10530 bool get isEmpty => this.length == 0; 10530 bool get isEmpty => this.length == 0;
10531 10531
10532 // From List<num>: 10532 // From List<num>:
10533 10533
10534 void sort([Comparator<num> compare = Comparable.compare]) { 10534 void sort([int compare(num a, num b)]) {
10535 throw new UnsupportedError("Cannot sort immutable List."); 10535 throw new UnsupportedError("Cannot sort immutable List.");
10536 } 10536 }
10537 10537
10538 int indexOf(num element, [int start = 0]) => 10538 int indexOf(num element, [int start = 0]) =>
10539 Lists.indexOf(this, element, start, this.length); 10539 Lists.indexOf(this, element, start, this.length);
10540 10540
10541 int lastIndexOf(num element, [int start]) { 10541 int lastIndexOf(num element, [int start]) {
10542 if (start == null) start = length - 1; 10542 if (start == null) start = length - 1;
10543 return Lists.lastIndexOf(this, element, start); 10543 return Lists.lastIndexOf(this, element, start);
10544 } 10544 }
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
10665 Collections.filter(this, <num>[], f); 10665 Collections.filter(this, <num>[], f);
10666 10666
10667 bool every(bool f(num element)) => Collections.every(this, f); 10667 bool every(bool f(num element)) => Collections.every(this, f);
10668 10668
10669 bool some(bool f(num element)) => Collections.some(this, f); 10669 bool some(bool f(num element)) => Collections.some(this, f);
10670 10670
10671 bool get isEmpty => this.length == 0; 10671 bool get isEmpty => this.length == 0;
10672 10672
10673 // From List<num>: 10673 // From List<num>:
10674 10674
10675 void sort([Comparator<num> compare = Comparable.compare]) { 10675 void sort([int compare(num a, num b)]) {
10676 throw new UnsupportedError("Cannot sort immutable List."); 10676 throw new UnsupportedError("Cannot sort immutable List.");
10677 } 10677 }
10678 10678
10679 int indexOf(num element, [int start = 0]) => 10679 int indexOf(num element, [int start = 0]) =>
10680 Lists.indexOf(this, element, start, this.length); 10680 Lists.indexOf(this, element, start, this.length);
10681 10681
10682 int lastIndexOf(num element, [int start]) { 10682 int lastIndexOf(num element, [int start]) {
10683 if (start == null) start = length - 1; 10683 if (start == null) start = length - 1;
10684 return Lists.lastIndexOf(this, element, start); 10684 return Lists.lastIndexOf(this, element, start);
10685 } 10685 }
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
11234 Collections.filter(this, <Node>[], f); 11234 Collections.filter(this, <Node>[], f);
11235 11235
11236 bool every(bool f(Node element)) => Collections.every(this, f); 11236 bool every(bool f(Node element)) => Collections.every(this, f);
11237 11237
11238 bool some(bool f(Node element)) => Collections.some(this, f); 11238 bool some(bool f(Node element)) => Collections.some(this, f);
11239 11239
11240 bool get isEmpty => this.length == 0; 11240 bool get isEmpty => this.length == 0;
11241 11241
11242 // From List<Node>: 11242 // From List<Node>:
11243 11243
11244 void sort([Comparator<Node> compare = Comparable.compare]) { 11244 void sort([int compare(Node a, Node b)]) {
11245 throw new UnsupportedError("Cannot sort immutable List."); 11245 throw new UnsupportedError("Cannot sort immutable List.");
11246 } 11246 }
11247 11247
11248 int indexOf(Node element, [int start = 0]) => 11248 int indexOf(Node element, [int start = 0]) =>
11249 Lists.indexOf(this, element, start, this.length); 11249 Lists.indexOf(this, element, start, this.length);
11250 11250
11251 int lastIndexOf(Node element, [int start]) { 11251 int lastIndexOf(Node element, [int start]) {
11252 if (start == null) start = length - 1; 11252 if (start == null) start = length - 1;
11253 return Lists.lastIndexOf(this, element, start); 11253 return Lists.lastIndexOf(this, element, start);
11254 } 11254 }
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
11355 Collections.filter(this, <Node>[], f); 11355 Collections.filter(this, <Node>[], f);
11356 11356
11357 bool every(bool f(Node element)) => Collections.every(this, f); 11357 bool every(bool f(Node element)) => Collections.every(this, f);
11358 11358
11359 bool some(bool f(Node element)) => Collections.some(this, f); 11359 bool some(bool f(Node element)) => Collections.some(this, f);
11360 11360
11361 bool get isEmpty => this.length == 0; 11361 bool get isEmpty => this.length == 0;
11362 11362
11363 // From List<Node>: 11363 // From List<Node>:
11364 11364
11365 void sort([Comparator<Node> compare = Comparable.compare]) { 11365 void sort([int compare(Node a, Node b)]) {
11366 throw new UnsupportedError("Cannot sort immutable List."); 11366 throw new UnsupportedError("Cannot sort immutable List.");
11367 } 11367 }
11368 11368
11369 int indexOf(Node element, [int start = 0]) => 11369 int indexOf(Node element, [int start = 0]) =>
11370 Lists.indexOf(this, element, start, this.length); 11370 Lists.indexOf(this, element, start, this.length);
11371 11371
11372 int lastIndexOf(Node element, [int start]) { 11372 int lastIndexOf(Node element, [int start]) {
11373 if (start == null) start = length - 1; 11373 if (start == null) start = length - 1;
11374 return Lists.lastIndexOf(this, element, start); 11374 return Lists.lastIndexOf(this, element, start);
11375 } 11375 }
(...skipping 1344 matching lines...) Expand 10 before | Expand all | Expand 10 after
12720 Collections.filter(this, <int>[], f); 12720 Collections.filter(this, <int>[], f);
12721 12721
12722 bool every(bool f(int element)) => Collections.every(this, f); 12722 bool every(bool f(int element)) => Collections.every(this, f);
12723 12723
12724 bool some(bool f(int element)) => Collections.some(this, f); 12724 bool some(bool f(int element)) => Collections.some(this, f);
12725 12725
12726 bool get isEmpty => this.length == 0; 12726 bool get isEmpty => this.length == 0;
12727 12727
12728 // From List<int>: 12728 // From List<int>:
12729 12729
12730 void sort([Comparator<int> compare = Comparable.compare]) { 12730 void sort([int compare(int a, int b)]) {
12731 throw new UnsupportedError("Cannot sort immutable List."); 12731 throw new UnsupportedError("Cannot sort immutable List.");
12732 } 12732 }
12733 12733
12734 int indexOf(int element, [int start = 0]) => 12734 int indexOf(int element, [int start = 0]) =>
12735 Lists.indexOf(this, element, start, this.length); 12735 Lists.indexOf(this, element, start, this.length);
12736 12736
12737 int lastIndexOf(int element, [int start]) { 12737 int lastIndexOf(int element, [int start]) {
12738 if (start == null) start = length - 1; 12738 if (start == null) start = length - 1;
12739 return Lists.lastIndexOf(this, element, start); 12739 return Lists.lastIndexOf(this, element, start);
12740 } 12740 }
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
12861 Collections.filter(this, <int>[], f); 12861 Collections.filter(this, <int>[], f);
12862 12862
12863 bool every(bool f(int element)) => Collections.every(this, f); 12863 bool every(bool f(int element)) => Collections.every(this, f);
12864 12864
12865 bool some(bool f(int element)) => Collections.some(this, f); 12865 bool some(bool f(int element)) => Collections.some(this, f);
12866 12866
12867 bool get isEmpty => this.length == 0; 12867 bool get isEmpty => this.length == 0;
12868 12868
12869 // From List<int>: 12869 // From List<int>:
12870 12870
12871 void sort([Comparator<int> compare = Comparable.compare]) { 12871 void sort([int compare(int a, int b)]) {
12872 throw new UnsupportedError("Cannot sort immutable List."); 12872 throw new UnsupportedError("Cannot sort immutable List.");
12873 } 12873 }
12874 12874
12875 int indexOf(int element, [int start = 0]) => 12875 int indexOf(int element, [int start = 0]) =>
12876 Lists.indexOf(this, element, start, this.length); 12876 Lists.indexOf(this, element, start, this.length);
12877 12877
12878 int lastIndexOf(int element, [int start]) { 12878 int lastIndexOf(int element, [int start]) {
12879 if (start == null) start = length - 1; 12879 if (start == null) start = length - 1;
12880 return Lists.lastIndexOf(this, element, start); 12880 return Lists.lastIndexOf(this, element, start);
12881 } 12881 }
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
13002 Collections.filter(this, <int>[], f); 13002 Collections.filter(this, <int>[], f);
13003 13003
13004 bool every(bool f(int element)) => Collections.every(this, f); 13004 bool every(bool f(int element)) => Collections.every(this, f);
13005 13005
13006 bool some(bool f(int element)) => Collections.some(this, f); 13006 bool some(bool f(int element)) => Collections.some(this, f);
13007 13007
13008 bool get isEmpty => this.length == 0; 13008 bool get isEmpty => this.length == 0;
13009 13009
13010 // From List<int>: 13010 // From List<int>:
13011 13011
13012 void sort([Comparator<int> compare = Comparable.compare]) { 13012 void sort([int compare(int a, int b)]) {
13013 throw new UnsupportedError("Cannot sort immutable List."); 13013 throw new UnsupportedError("Cannot sort immutable List.");
13014 } 13014 }
13015 13015
13016 int indexOf(int element, [int start = 0]) => 13016 int indexOf(int element, [int start = 0]) =>
13017 Lists.indexOf(this, element, start, this.length); 13017 Lists.indexOf(this, element, start, this.length);
13018 13018
13019 int lastIndexOf(int element, [int start]) { 13019 int lastIndexOf(int element, [int start]) {
13020 if (start == null) start = length - 1; 13020 if (start == null) start = length - 1;
13021 return Lists.lastIndexOf(this, element, start); 13021 return Lists.lastIndexOf(this, element, start);
13022 } 13022 }
(...skipping 2836 matching lines...) Expand 10 before | Expand all | Expand 10 after
15859 Collections.filter(this, <Node>[], f); 15859 Collections.filter(this, <Node>[], f);
15860 15860
15861 bool every(bool f(Node element)) => Collections.every(this, f); 15861 bool every(bool f(Node element)) => Collections.every(this, f);
15862 15862
15863 bool some(bool f(Node element)) => Collections.some(this, f); 15863 bool some(bool f(Node element)) => Collections.some(this, f);
15864 15864
15865 bool get isEmpty => this.length == 0; 15865 bool get isEmpty => this.length == 0;
15866 15866
15867 // From List<Node>: 15867 // From List<Node>:
15868 15868
15869 void sort([Comparator<Node> compare = Comparable.compare]) { 15869 void sort([int compare(Node a, Node b)]) {
15870 throw new UnsupportedError("Cannot sort immutable List."); 15870 throw new UnsupportedError("Cannot sort immutable List.");
15871 } 15871 }
15872 15872
15873 int indexOf(Node element, [int start = 0]) => 15873 int indexOf(Node element, [int start = 0]) =>
15874 Lists.indexOf(this, element, start, this.length); 15874 Lists.indexOf(this, element, start, this.length);
15875 15875
15876 int lastIndexOf(Node element, [int start]) { 15876 int lastIndexOf(Node element, [int start]) {
15877 if (start == null) start = length - 1; 15877 if (start == null) start = length - 1;
15878 return Lists.lastIndexOf(this, element, start); 15878 return Lists.lastIndexOf(this, element, start);
15879 } 15879 }
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
16128 bool every(bool f(Node element)) => Collections.every(this, f); 16128 bool every(bool f(Node element)) => Collections.every(this, f);
16129 16129
16130 bool some(bool f(Node element)) => Collections.some(this, f); 16130 bool some(bool f(Node element)) => Collections.some(this, f);
16131 16131
16132 bool get isEmpty => this.length == 0; 16132 bool get isEmpty => this.length == 0;
16133 16133
16134 // From List<Node>: 16134 // From List<Node>:
16135 16135
16136 // TODO(jacobr): this could be implemented for child node lists. 16136 // TODO(jacobr): this could be implemented for child node lists.
16137 // The exception we throw here is misleading. 16137 // The exception we throw here is misleading.
16138 void sort([Comparator<Node> compare = Comparable.compare]) { 16138 void sort([int compare(Node a, Node b)]) {
16139 throw new UnsupportedError("Cannot sort immutable List."); 16139 throw new UnsupportedError("Cannot sort immutable List.");
16140 } 16140 }
16141 16141
16142 int indexOf(Node element, [int start = 0]) => 16142 int indexOf(Node element, [int start = 0]) =>
16143 Lists.indexOf(this, element, start, this.length); 16143 Lists.indexOf(this, element, start, this.length);
16144 16144
16145 int lastIndexOf(Node element, [int start = 0]) => 16145 int lastIndexOf(Node element, [int start = 0]) =>
16146 Lists.lastIndexOf(this, element, start); 16146 Lists.lastIndexOf(this, element, start);
16147 16147
16148 // FIXME: implement these. 16148 // FIXME: implement these.
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
16500 Collections.filter(this, <Node>[], f); 16500 Collections.filter(this, <Node>[], f);
16501 16501
16502 bool every(bool f(Node element)) => Collections.every(this, f); 16502 bool every(bool f(Node element)) => Collections.every(this, f);
16503 16503
16504 bool some(bool f(Node element)) => Collections.some(this, f); 16504 bool some(bool f(Node element)) => Collections.some(this, f);
16505 16505
16506 bool get isEmpty => this.length == 0; 16506 bool get isEmpty => this.length == 0;
16507 16507
16508 // From List<Node>: 16508 // From List<Node>:
16509 16509
16510 void sort([Comparator<Node> compare = Comparable.compare]) { 16510 void sort([int compare(Node a, Node b)]) {
16511 throw new UnsupportedError("Cannot sort immutable List."); 16511 throw new UnsupportedError("Cannot sort immutable List.");
16512 } 16512 }
16513 16513
16514 int indexOf(Node element, [int start = 0]) => 16514 int indexOf(Node element, [int start = 0]) =>
16515 Lists.indexOf(this, element, start, this.length); 16515 Lists.indexOf(this, element, start, this.length);
16516 16516
16517 int lastIndexOf(Node element, [int start]) { 16517 int lastIndexOf(Node element, [int start]) {
16518 if (start == null) start = length - 1; 16518 if (start == null) start = length - 1;
16519 return Lists.lastIndexOf(this, element, start); 16519 return Lists.lastIndexOf(this, element, start);
16520 } 16520 }
(...skipping 2103 matching lines...) Expand 10 before | Expand all | Expand 10 after
18624 Collections.filter(this, <Map>[], f); 18624 Collections.filter(this, <Map>[], f);
18625 18625
18626 bool every(bool f(Map element)) => Collections.every(this, f); 18626 bool every(bool f(Map element)) => Collections.every(this, f);
18627 18627
18628 bool some(bool f(Map element)) => Collections.some(this, f); 18628 bool some(bool f(Map element)) => Collections.some(this, f);
18629 18629
18630 bool get isEmpty => this.length == 0; 18630 bool get isEmpty => this.length == 0;
18631 18631
18632 // From List<Map>: 18632 // From List<Map>:
18633 18633
18634 void sort([Comparator<Map> compare = Comparable.compare]) { 18634 void sort([int compare(Map a, Map b)]) {
18635 throw new UnsupportedError("Cannot sort immutable List."); 18635 throw new UnsupportedError("Cannot sort immutable List.");
18636 } 18636 }
18637 18637
18638 int indexOf(Map element, [int start = 0]) => 18638 int indexOf(Map element, [int start = 0]) =>
18639 Lists.indexOf(this, element, start, this.length); 18639 Lists.indexOf(this, element, start, this.length);
18640 18640
18641 int lastIndexOf(Map element, [int start]) { 18641 int lastIndexOf(Map element, [int start]) {
18642 if (start == null) start = length - 1; 18642 if (start == null) start = length - 1;
18643 return Lists.lastIndexOf(this, element, start); 18643 return Lists.lastIndexOf(this, element, start);
18644 } 18644 }
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
19323 Collections.filter(this, <SourceBuffer>[], f); 19323 Collections.filter(this, <SourceBuffer>[], f);
19324 19324
19325 bool every(bool f(SourceBuffer element)) => Collections.every(this, f); 19325 bool every(bool f(SourceBuffer element)) => Collections.every(this, f);
19326 19326
19327 bool some(bool f(SourceBuffer element)) => Collections.some(this, f); 19327 bool some(bool f(SourceBuffer element)) => Collections.some(this, f);
19328 19328
19329 bool get isEmpty => this.length == 0; 19329 bool get isEmpty => this.length == 0;
19330 19330
19331 // From List<SourceBuffer>: 19331 // From List<SourceBuffer>:
19332 19332
19333 void sort([Comparator<SourceBuffer> compare = Comparable.compare]) { 19333 void sort([int compare(SourceBuffer a, SourceBuffer b)]) {
19334 throw new UnsupportedError("Cannot sort immutable List."); 19334 throw new UnsupportedError("Cannot sort immutable List.");
19335 } 19335 }
19336 19336
19337 int indexOf(SourceBuffer element, [int start = 0]) => 19337 int indexOf(SourceBuffer element, [int start = 0]) =>
19338 Lists.indexOf(this, element, start, this.length); 19338 Lists.indexOf(this, element, start, this.length);
19339 19339
19340 int lastIndexOf(SourceBuffer element, [int start]) { 19340 int lastIndexOf(SourceBuffer element, [int start]) {
19341 if (start == null) start = length - 1; 19341 if (start == null) start = length - 1;
19342 return Lists.lastIndexOf(this, element, start); 19342 return Lists.lastIndexOf(this, element, start);
19343 } 19343 }
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
19532 Collections.filter(this, <SpeechGrammar>[], f); 19532 Collections.filter(this, <SpeechGrammar>[], f);
19533 19533
19534 bool every(bool f(SpeechGrammar element)) => Collections.every(this, f); 19534 bool every(bool f(SpeechGrammar element)) => Collections.every(this, f);
19535 19535
19536 bool some(bool f(SpeechGrammar element)) => Collections.some(this, f); 19536 bool some(bool f(SpeechGrammar element)) => Collections.some(this, f);
19537 19537
19538 bool get isEmpty => this.length == 0; 19538 bool get isEmpty => this.length == 0;
19539 19539
19540 // From List<SpeechGrammar>: 19540 // From List<SpeechGrammar>:
19541 19541
19542 void sort([Comparator<SpeechGrammar> compare = Comparable.compare]) { 19542 void sort([int compare(SpeechGrammar a, SpeechGrammar b)]) {
19543 throw new UnsupportedError("Cannot sort immutable List."); 19543 throw new UnsupportedError("Cannot sort immutable List.");
19544 } 19544 }
19545 19545
19546 int indexOf(SpeechGrammar element, [int start = 0]) => 19546 int indexOf(SpeechGrammar element, [int start = 0]) =>
19547 Lists.indexOf(this, element, start, this.length); 19547 Lists.indexOf(this, element, start, this.length);
19548 19548
19549 int lastIndexOf(SpeechGrammar element, [int start]) { 19549 int lastIndexOf(SpeechGrammar element, [int start]) {
19550 if (start == null) start = length - 1; 19550 if (start == null) start = length - 1;
19551 return Lists.lastIndexOf(this, element, start); 19551 return Lists.lastIndexOf(this, element, start);
19552 } 19552 }
(...skipping 1646 matching lines...) Expand 10 before | Expand all | Expand 10 after
21199 Collections.filter(this, <TextTrackCue>[], f); 21199 Collections.filter(this, <TextTrackCue>[], f);
21200 21200
21201 bool every(bool f(TextTrackCue element)) => Collections.every(this, f); 21201 bool every(bool f(TextTrackCue element)) => Collections.every(this, f);
21202 21202
21203 bool some(bool f(TextTrackCue element)) => Collections.some(this, f); 21203 bool some(bool f(TextTrackCue element)) => Collections.some(this, f);
21204 21204
21205 bool get isEmpty => this.length == 0; 21205 bool get isEmpty => this.length == 0;
21206 21206
21207 // From List<TextTrackCue>: 21207 // From List<TextTrackCue>:
21208 21208
21209 void sort([Comparator<TextTrackCue> compare = Comparable.compare]) { 21209 void sort([int compare(TextTrackCue a, TextTrackCue b)]) {
21210 throw new UnsupportedError("Cannot sort immutable List."); 21210 throw new UnsupportedError("Cannot sort immutable List.");
21211 } 21211 }
21212 21212
21213 int indexOf(TextTrackCue element, [int start = 0]) => 21213 int indexOf(TextTrackCue element, [int start = 0]) =>
21214 Lists.indexOf(this, element, start, this.length); 21214 Lists.indexOf(this, element, start, this.length);
21215 21215
21216 int lastIndexOf(TextTrackCue element, [int start]) { 21216 int lastIndexOf(TextTrackCue element, [int start]) {
21217 if (start == null) start = length - 1; 21217 if (start == null) start = length - 1;
21218 return Lists.lastIndexOf(this, element, start); 21218 return Lists.lastIndexOf(this, element, start);
21219 } 21219 }
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
21320 Collections.filter(this, <TextTrack>[], f); 21320 Collections.filter(this, <TextTrack>[], f);
21321 21321
21322 bool every(bool f(TextTrack element)) => Collections.every(this, f); 21322 bool every(bool f(TextTrack element)) => Collections.every(this, f);
21323 21323
21324 bool some(bool f(TextTrack element)) => Collections.some(this, f); 21324 bool some(bool f(TextTrack element)) => Collections.some(this, f);
21325 21325
21326 bool get isEmpty => this.length == 0; 21326 bool get isEmpty => this.length == 0;
21327 21327
21328 // From List<TextTrack>: 21328 // From List<TextTrack>:
21329 21329
21330 void sort([Comparator<TextTrack> compare = Comparable.compare]) { 21330 void sort([int compare(TextTrack a, TextTrack b)]) {
21331 throw new UnsupportedError("Cannot sort immutable List."); 21331 throw new UnsupportedError("Cannot sort immutable List.");
21332 } 21332 }
21333 21333
21334 int indexOf(TextTrack element, [int start = 0]) => 21334 int indexOf(TextTrack element, [int start = 0]) =>
21335 Lists.indexOf(this, element, start, this.length); 21335 Lists.indexOf(this, element, start, this.length);
21336 21336
21337 int lastIndexOf(TextTrack element, [int start]) { 21337 int lastIndexOf(TextTrack element, [int start]) {
21338 if (start == null) start = length - 1; 21338 if (start == null) start = length - 1;
21339 return Lists.lastIndexOf(this, element, start); 21339 return Lists.lastIndexOf(this, element, start);
21340 } 21340 }
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
21601 Collections.filter(this, <Touch>[], f); 21601 Collections.filter(this, <Touch>[], f);
21602 21602
21603 bool every(bool f(Touch element)) => Collections.every(this, f); 21603 bool every(bool f(Touch element)) => Collections.every(this, f);
21604 21604
21605 bool some(bool f(Touch element)) => Collections.some(this, f); 21605 bool some(bool f(Touch element)) => Collections.some(this, f);
21606 21606
21607 bool get isEmpty => this.length == 0; 21607 bool get isEmpty => this.length == 0;
21608 21608
21609 // From List<Touch>: 21609 // From List<Touch>:
21610 21610
21611 void sort([Comparator<Touch> compare = Comparable.compare]) { 21611 void sort([int compare(Touch a, Touch b)]) {
21612 throw new UnsupportedError("Cannot sort immutable List."); 21612 throw new UnsupportedError("Cannot sort immutable List.");
21613 } 21613 }
21614 21614
21615 int indexOf(Touch element, [int start = 0]) => 21615 int indexOf(Touch element, [int start = 0]) =>
21616 Lists.indexOf(this, element, start, this.length); 21616 Lists.indexOf(this, element, start, this.length);
21617 21617
21618 int lastIndexOf(Touch element, [int start]) { 21618 int lastIndexOf(Touch element, [int start]) {
21619 if (start == null) start = length - 1; 21619 if (start == null) start = length - 1;
21620 return Lists.lastIndexOf(this, element, start); 21620 return Lists.lastIndexOf(this, element, start);
21621 } 21621 }
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
21991 Collections.filter(this, <int>[], f); 21991 Collections.filter(this, <int>[], f);
21992 21992
21993 bool every(bool f(int element)) => Collections.every(this, f); 21993 bool every(bool f(int element)) => Collections.every(this, f);
21994 21994
21995 bool some(bool f(int element)) => Collections.some(this, f); 21995 bool some(bool f(int element)) => Collections.some(this, f);
21996 21996
21997 bool get isEmpty => this.length == 0; 21997 bool get isEmpty => this.length == 0;
21998 21998
21999 // From List<int>: 21999 // From List<int>:
22000 22000
22001 void sort([Comparator<int> compare = Comparable.compare]) { 22001 void sort([int compare(int a, int b)]) {
22002 throw new UnsupportedError("Cannot sort immutable List."); 22002 throw new UnsupportedError("Cannot sort immutable List.");
22003 } 22003 }
22004 22004
22005 int indexOf(int element, [int start = 0]) => 22005 int indexOf(int element, [int start = 0]) =>
22006 Lists.indexOf(this, element, start, this.length); 22006 Lists.indexOf(this, element, start, this.length);
22007 22007
22008 int lastIndexOf(int element, [int start]) { 22008 int lastIndexOf(int element, [int start]) {
22009 if (start == null) start = length - 1; 22009 if (start == null) start = length - 1;
22010 return Lists.lastIndexOf(this, element, start); 22010 return Lists.lastIndexOf(this, element, start);
22011 } 22011 }
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
22132 Collections.filter(this, <int>[], f); 22132 Collections.filter(this, <int>[], f);
22133 22133
22134 bool every(bool f(int element)) => Collections.every(this, f); 22134 bool every(bool f(int element)) => Collections.every(this, f);
22135 22135
22136 bool some(bool f(int element)) => Collections.some(this, f); 22136 bool some(bool f(int element)) => Collections.some(this, f);
22137 22137
22138 bool get isEmpty => this.length == 0; 22138 bool get isEmpty => this.length == 0;
22139 22139
22140 // From List<int>: 22140 // From List<int>:
22141 22141
22142 void sort([Comparator<int> compare = Comparable.compare]) { 22142 void sort([int compare(int a, int b)]) {
22143 throw new UnsupportedError("Cannot sort immutable List."); 22143 throw new UnsupportedError("Cannot sort immutable List.");
22144 } 22144 }
22145 22145
22146 int indexOf(int element, [int start = 0]) => 22146 int indexOf(int element, [int start = 0]) =>
22147 Lists.indexOf(this, element, start, this.length); 22147 Lists.indexOf(this, element, start, this.length);
22148 22148
22149 int lastIndexOf(int element, [int start]) { 22149 int lastIndexOf(int element, [int start]) {
22150 if (start == null) start = length - 1; 22150 if (start == null) start = length - 1;
22151 return Lists.lastIndexOf(this, element, start); 22151 return Lists.lastIndexOf(this, element, start);
22152 } 22152 }
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
22273 Collections.filter(this, <int>[], f); 22273 Collections.filter(this, <int>[], f);
22274 22274
22275 bool every(bool f(int element)) => Collections.every(this, f); 22275 bool every(bool f(int element)) => Collections.every(this, f);
22276 22276
22277 bool some(bool f(int element)) => Collections.some(this, f); 22277 bool some(bool f(int element)) => Collections.some(this, f);
22278 22278
22279 bool get isEmpty => this.length == 0; 22279 bool get isEmpty => this.length == 0;
22280 22280
22281 // From List<int>: 22281 // From List<int>:
22282 22282
22283 void sort([Comparator<int> compare = Comparable.compare]) { 22283 void sort([int compare(int a, int b)]) {
22284 throw new UnsupportedError("Cannot sort immutable List."); 22284 throw new UnsupportedError("Cannot sort immutable List.");
22285 } 22285 }
22286 22286
22287 int indexOf(int element, [int start = 0]) => 22287 int indexOf(int element, [int start = 0]) =>
22288 Lists.indexOf(this, element, start, this.length); 22288 Lists.indexOf(this, element, start, this.length);
22289 22289
22290 int lastIndexOf(int element, [int start]) { 22290 int lastIndexOf(int element, [int start]) {
22291 if (start == null) start = length - 1; 22291 if (start == null) start = length - 1;
22292 return Lists.lastIndexOf(this, element, start); 22292 return Lists.lastIndexOf(this, element, start);
22293 } 22293 }
(...skipping 2633 matching lines...) Expand 10 before | Expand all | Expand 10 after
24927 Collections.filter(this, <CSSRule>[], f); 24927 Collections.filter(this, <CSSRule>[], f);
24928 24928
24929 bool every(bool f(CSSRule element)) => Collections.every(this, f); 24929 bool every(bool f(CSSRule element)) => Collections.every(this, f);
24930 24930
24931 bool some(bool f(CSSRule element)) => Collections.some(this, f); 24931 bool some(bool f(CSSRule element)) => Collections.some(this, f);
24932 24932
24933 bool get isEmpty => this.length == 0; 24933 bool get isEmpty => this.length == 0;
24934 24934
24935 // From List<CSSRule>: 24935 // From List<CSSRule>:
24936 24936
24937 void sort([Comparator<CSSRule> compare = Comparable.compare]) { 24937 void sort([int compare(CSSRule a, CSSRule b)]) {
24938 throw new UnsupportedError("Cannot sort immutable List."); 24938 throw new UnsupportedError("Cannot sort immutable List.");
24939 } 24939 }
24940 24940
24941 int indexOf(CSSRule element, [int start = 0]) => 24941 int indexOf(CSSRule element, [int start = 0]) =>
24942 Lists.indexOf(this, element, start, this.length); 24942 Lists.indexOf(this, element, start, this.length);
24943 24943
24944 int lastIndexOf(CSSRule element, [int start]) { 24944 int lastIndexOf(CSSRule element, [int start]) {
24945 if (start == null) start = length - 1; 24945 if (start == null) start = length - 1;
24946 return Lists.lastIndexOf(this, element, start); 24946 return Lists.lastIndexOf(this, element, start);
24947 } 24947 }
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
25040 Collections.filter(this, <CSSValue>[], f); 25040 Collections.filter(this, <CSSValue>[], f);
25041 25041
25042 bool every(bool f(CSSValue element)) => Collections.every(this, f); 25042 bool every(bool f(CSSValue element)) => Collections.every(this, f);
25043 25043
25044 bool some(bool f(CSSValue element)) => Collections.some(this, f); 25044 bool some(bool f(CSSValue element)) => Collections.some(this, f);
25045 25045
25046 bool get isEmpty => this.length == 0; 25046 bool get isEmpty => this.length == 0;
25047 25047
25048 // From List<CSSValue>: 25048 // From List<CSSValue>:
25049 25049
25050 void sort([Comparator<CSSValue> compare = Comparable.compare]) { 25050 void sort([int compare(CSSValue a, CSSValue b)]) {
25051 throw new UnsupportedError("Cannot sort immutable List."); 25051 throw new UnsupportedError("Cannot sort immutable List.");
25052 } 25052 }
25053 25053
25054 int indexOf(CSSValue element, [int start = 0]) => 25054 int indexOf(CSSValue element, [int start = 0]) =>
25055 Lists.indexOf(this, element, start, this.length); 25055 Lists.indexOf(this, element, start, this.length);
25056 25056
25057 int lastIndexOf(CSSValue element, [int start]) { 25057 int lastIndexOf(CSSValue element, [int start]) {
25058 if (start == null) start = length - 1; 25058 if (start == null) start = length - 1;
25059 return Lists.lastIndexOf(this, element, start); 25059 return Lists.lastIndexOf(this, element, start);
25060 } 25060 }
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
25153 Collections.filter(this, <ClientRect>[], f); 25153 Collections.filter(this, <ClientRect>[], f);
25154 25154
25155 bool every(bool f(ClientRect element)) => Collections.every(this, f); 25155 bool every(bool f(ClientRect element)) => Collections.every(this, f);
25156 25156
25157 bool some(bool f(ClientRect element)) => Collections.some(this, f); 25157 bool some(bool f(ClientRect element)) => Collections.some(this, f);
25158 25158
25159 bool get isEmpty => this.length == 0; 25159 bool get isEmpty => this.length == 0;
25160 25160
25161 // From List<ClientRect>: 25161 // From List<ClientRect>:
25162 25162
25163 void sort([Comparator<ClientRect> compare = Comparable.compare]) { 25163 void sort([int compare(ClientRect a, ClientRect b)]) {
25164 throw new UnsupportedError("Cannot sort immutable List."); 25164 throw new UnsupportedError("Cannot sort immutable List.");
25165 } 25165 }
25166 25166
25167 int indexOf(ClientRect element, [int start = 0]) => 25167 int indexOf(ClientRect element, [int start = 0]) =>
25168 Lists.indexOf(this, element, start, this.length); 25168 Lists.indexOf(this, element, start, this.length);
25169 25169
25170 int lastIndexOf(ClientRect element, [int start]) { 25170 int lastIndexOf(ClientRect element, [int start]) {
25171 if (start == null) start = length - 1; 25171 if (start == null) start = length - 1;
25172 return Lists.lastIndexOf(this, element, start); 25172 return Lists.lastIndexOf(this, element, start);
25173 } 25173 }
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
25274 Collections.filter(this, <String>[], f); 25274 Collections.filter(this, <String>[], f);
25275 25275
25276 bool every(bool f(String element)) => Collections.every(this, f); 25276 bool every(bool f(String element)) => Collections.every(this, f);
25277 25277
25278 bool some(bool f(String element)) => Collections.some(this, f); 25278 bool some(bool f(String element)) => Collections.some(this, f);
25279 25279
25280 bool get isEmpty => this.length == 0; 25280 bool get isEmpty => this.length == 0;
25281 25281
25282 // From List<String>: 25282 // From List<String>:
25283 25283
25284 void sort([Comparator<String> compare = Comparable.compare]) { 25284 void sort([int compare(String a, String b)]) {
25285 throw new UnsupportedError("Cannot sort immutable List."); 25285 throw new UnsupportedError("Cannot sort immutable List.");
25286 } 25286 }
25287 25287
25288 int indexOf(String element, [int start = 0]) => 25288 int indexOf(String element, [int start = 0]) =>
25289 Lists.indexOf(this, element, start, this.length); 25289 Lists.indexOf(this, element, start, this.length);
25290 25290
25291 int lastIndexOf(String element, [int start]) { 25291 int lastIndexOf(String element, [int start]) {
25292 if (start == null) start = length - 1; 25292 if (start == null) start = length - 1;
25293 return Lists.lastIndexOf(this, element, start); 25293 return Lists.lastIndexOf(this, element, start);
25294 } 25294 }
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
25535 Collections.filter(this, <Entry>[], f); 25535 Collections.filter(this, <Entry>[], f);
25536 25536
25537 bool every(bool f(Entry element)) => Collections.every(this, f); 25537 bool every(bool f(Entry element)) => Collections.every(this, f);
25538 25538
25539 bool some(bool f(Entry element)) => Collections.some(this, f); 25539 bool some(bool f(Entry element)) => Collections.some(this, f);
25540 25540
25541 bool get isEmpty => this.length == 0; 25541 bool get isEmpty => this.length == 0;
25542 25542
25543 // From List<Entry>: 25543 // From List<Entry>:
25544 25544
25545 void sort([Comparator<Entry> compare = Comparable.compare]) { 25545 void sort([int compare(Entry a, Entry b)]) {
25546 throw new UnsupportedError("Cannot sort immutable List."); 25546 throw new UnsupportedError("Cannot sort immutable List.");
25547 } 25547 }
25548 25548
25549 int indexOf(Entry element, [int start = 0]) => 25549 int indexOf(Entry element, [int start = 0]) =>
25550 Lists.indexOf(this, element, start, this.length); 25550 Lists.indexOf(this, element, start, this.length);
25551 25551
25552 int lastIndexOf(Entry element, [int start]) { 25552 int lastIndexOf(Entry element, [int start]) {
25553 if (start == null) start = length - 1; 25553 if (start == null) start = length - 1;
25554 return Lists.lastIndexOf(this, element, start); 25554 return Lists.lastIndexOf(this, element, start);
25555 } 25555 }
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
25648 Collections.filter(this, <EntrySync>[], f); 25648 Collections.filter(this, <EntrySync>[], f);
25649 25649
25650 bool every(bool f(EntrySync element)) => Collections.every(this, f); 25650 bool every(bool f(EntrySync element)) => Collections.every(this, f);
25651 25651
25652 bool some(bool f(EntrySync element)) => Collections.some(this, f); 25652 bool some(bool f(EntrySync element)) => Collections.some(this, f);
25653 25653
25654 bool get isEmpty => this.length == 0; 25654 bool get isEmpty => this.length == 0;
25655 25655
25656 // From List<EntrySync>: 25656 // From List<EntrySync>:
25657 25657
25658 void sort([Comparator<EntrySync> compare = Comparable.compare]) { 25658 void sort([int compare(EntrySync a, EntrySync b)]) {
25659 throw new UnsupportedError("Cannot sort immutable List."); 25659 throw new UnsupportedError("Cannot sort immutable List.");
25660 } 25660 }
25661 25661
25662 int indexOf(EntrySync element, [int start = 0]) => 25662 int indexOf(EntrySync element, [int start = 0]) =>
25663 Lists.indexOf(this, element, start, this.length); 25663 Lists.indexOf(this, element, start, this.length);
25664 25664
25665 int lastIndexOf(EntrySync element, [int start]) { 25665 int lastIndexOf(EntrySync element, [int start]) {
25666 if (start == null) start = length - 1; 25666 if (start == null) start = length - 1;
25667 return Lists.lastIndexOf(this, element, start); 25667 return Lists.lastIndexOf(this, element, start);
25668 } 25668 }
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
25793 Collections.filter(this, <Gamepad>[], f); 25793 Collections.filter(this, <Gamepad>[], f);
25794 25794
25795 bool every(bool f(Gamepad element)) => Collections.every(this, f); 25795 bool every(bool f(Gamepad element)) => Collections.every(this, f);
25796 25796
25797 bool some(bool f(Gamepad element)) => Collections.some(this, f); 25797 bool some(bool f(Gamepad element)) => Collections.some(this, f);
25798 25798
25799 bool get isEmpty => this.length == 0; 25799 bool get isEmpty => this.length == 0;
25800 25800
25801 // From List<Gamepad>: 25801 // From List<Gamepad>:
25802 25802
25803 void sort([Comparator<Gamepad> compare = Comparable.compare]) { 25803 void sort([int compare(Gamepad a, Gamepad b)]) {
25804 throw new UnsupportedError("Cannot sort immutable List."); 25804 throw new UnsupportedError("Cannot sort immutable List.");
25805 } 25805 }
25806 25806
25807 int indexOf(Gamepad element, [int start = 0]) => 25807 int indexOf(Gamepad element, [int start = 0]) =>
25808 Lists.indexOf(this, element, start, this.length); 25808 Lists.indexOf(this, element, start, this.length);
25809 25809
25810 int lastIndexOf(Gamepad element, [int start]) { 25810 int lastIndexOf(Gamepad element, [int start]) {
25811 if (start == null) start = length - 1; 25811 if (start == null) start = length - 1;
25812 return Lists.lastIndexOf(this, element, start); 25812 return Lists.lastIndexOf(this, element, start);
25813 } 25813 }
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
25955 Collections.filter(this, <MediaStream>[], f); 25955 Collections.filter(this, <MediaStream>[], f);
25956 25956
25957 bool every(bool f(MediaStream element)) => Collections.every(this, f); 25957 bool every(bool f(MediaStream element)) => Collections.every(this, f);
25958 25958
25959 bool some(bool f(MediaStream element)) => Collections.some(this, f); 25959 bool some(bool f(MediaStream element)) => Collections.some(this, f);
25960 25960
25961 bool get isEmpty => this.length == 0; 25961 bool get isEmpty => this.length == 0;
25962 25962
25963 // From List<MediaStream>: 25963 // From List<MediaStream>:
25964 25964
25965 void sort([Comparator<MediaStream> compare = Comparable.compare]) { 25965 void sort([int compare(MediaStream a, MediaStream b)]) {
25966 throw new UnsupportedError("Cannot sort immutable List."); 25966 throw new UnsupportedError("Cannot sort immutable List.");
25967 } 25967 }
25968 25968
25969 int indexOf(MediaStream element, [int start = 0]) => 25969 int indexOf(MediaStream element, [int start = 0]) =>
25970 Lists.indexOf(this, element, start, this.length); 25970 Lists.indexOf(this, element, start, this.length);
25971 25971
25972 int lastIndexOf(MediaStream element, [int start]) { 25972 int lastIndexOf(MediaStream element, [int start]) {
25973 if (start == null) start = length - 1; 25973 if (start == null) start = length - 1;
25974 return Lists.lastIndexOf(this, element, start); 25974 return Lists.lastIndexOf(this, element, start);
25975 } 25975 }
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
26172 Collections.filter(this, <SpeechInputResult>[], f); 26172 Collections.filter(this, <SpeechInputResult>[], f);
26173 26173
26174 bool every(bool f(SpeechInputResult element)) => Collections.every(this, f); 26174 bool every(bool f(SpeechInputResult element)) => Collections.every(this, f);
26175 26175
26176 bool some(bool f(SpeechInputResult element)) => Collections.some(this, f); 26176 bool some(bool f(SpeechInputResult element)) => Collections.some(this, f);
26177 26177
26178 bool get isEmpty => this.length == 0; 26178 bool get isEmpty => this.length == 0;
26179 26179
26180 // From List<SpeechInputResult>: 26180 // From List<SpeechInputResult>:
26181 26181
26182 void sort([Comparator<SpeechInputResult> compare = Comparable.compare]) { 26182 void sort([int compare(SpeechInputResult a, SpeechInputResult b)]) {
26183 throw new UnsupportedError("Cannot sort immutable List."); 26183 throw new UnsupportedError("Cannot sort immutable List.");
26184 } 26184 }
26185 26185
26186 int indexOf(SpeechInputResult element, [int start = 0]) => 26186 int indexOf(SpeechInputResult element, [int start = 0]) =>
26187 Lists.indexOf(this, element, start, this.length); 26187 Lists.indexOf(this, element, start, this.length);
26188 26188
26189 int lastIndexOf(SpeechInputResult element, [int start]) { 26189 int lastIndexOf(SpeechInputResult element, [int start]) {
26190 if (start == null) start = length - 1; 26190 if (start == null) start = length - 1;
26191 return Lists.lastIndexOf(this, element, start); 26191 return Lists.lastIndexOf(this, element, start);
26192 } 26192 }
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
26293 Collections.filter(this, <SpeechRecognitionResult>[], f); 26293 Collections.filter(this, <SpeechRecognitionResult>[], f);
26294 26294
26295 bool every(bool f(SpeechRecognitionResult element)) => Collections.every(this, f); 26295 bool every(bool f(SpeechRecognitionResult element)) => Collections.every(this, f);
26296 26296
26297 bool some(bool f(SpeechRecognitionResult element)) => Collections.some(this, f ); 26297 bool some(bool f(SpeechRecognitionResult element)) => Collections.some(this, f );
26298 26298
26299 bool get isEmpty => this.length == 0; 26299 bool get isEmpty => this.length == 0;
26300 26300
26301 // From List<SpeechRecognitionResult>: 26301 // From List<SpeechRecognitionResult>:
26302 26302
26303 void sort([Comparator<SpeechRecognitionResult> compare = Comparable.compare]) { 26303 void sort([int compare(SpeechRecognitionResult a, SpeechRecognitionResult b)]) {
26304 throw new UnsupportedError("Cannot sort immutable List."); 26304 throw new UnsupportedError("Cannot sort immutable List.");
26305 } 26305 }
26306 26306
26307 int indexOf(SpeechRecognitionResult element, [int start = 0]) => 26307 int indexOf(SpeechRecognitionResult element, [int start = 0]) =>
26308 Lists.indexOf(this, element, start, this.length); 26308 Lists.indexOf(this, element, start, this.length);
26309 26309
26310 int lastIndexOf(SpeechRecognitionResult element, [int start]) { 26310 int lastIndexOf(SpeechRecognitionResult element, [int start]) {
26311 if (start == null) start = length - 1; 26311 if (start == null) start = length - 1;
26312 return Lists.lastIndexOf(this, element, start); 26312 return Lists.lastIndexOf(this, element, start);
26313 } 26313 }
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
26406 Collections.filter(this, <StyleSheet>[], f); 26406 Collections.filter(this, <StyleSheet>[], f);
26407 26407
26408 bool every(bool f(StyleSheet element)) => Collections.every(this, f); 26408 bool every(bool f(StyleSheet element)) => Collections.every(this, f);
26409 26409
26410 bool some(bool f(StyleSheet element)) => Collections.some(this, f); 26410 bool some(bool f(StyleSheet element)) => Collections.some(this, f);
26411 26411
26412 bool get isEmpty => this.length == 0; 26412 bool get isEmpty => this.length == 0;
26413 26413
26414 // From List<StyleSheet>: 26414 // From List<StyleSheet>:
26415 26415
26416 void sort([Comparator<StyleSheet> compare = Comparable.compare]) { 26416 void sort([int compare(StyleSheet a, StyleSheet b)]) {
26417 throw new UnsupportedError("Cannot sort immutable List."); 26417 throw new UnsupportedError("Cannot sort immutable List.");
26418 } 26418 }
26419 26419
26420 int indexOf(StyleSheet element, [int start = 0]) => 26420 int indexOf(StyleSheet element, [int start = 0]) =>
26421 Lists.indexOf(this, element, start, this.length); 26421 Lists.indexOf(this, element, start, this.length);
26422 26422
26423 int lastIndexOf(StyleSheet element, [int start]) { 26423 int lastIndexOf(StyleSheet element, [int start]) {
26424 if (start == null) start = length - 1; 26424 if (start == null) start = length - 1;
26425 return Lists.lastIndexOf(this, element, start); 26425 return Lists.lastIndexOf(this, element, start);
26426 } 26426 }
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
26527 Collections.filter(this, <Animation>[], f); 26527 Collections.filter(this, <Animation>[], f);
26528 26528
26529 bool every(bool f(Animation element)) => Collections.every(this, f); 26529 bool every(bool f(Animation element)) => Collections.every(this, f);
26530 26530
26531 bool some(bool f(Animation element)) => Collections.some(this, f); 26531 bool some(bool f(Animation element)) => Collections.some(this, f);
26532 26532
26533 bool get isEmpty => this.length == 0; 26533 bool get isEmpty => this.length == 0;
26534 26534
26535 // From List<Animation>: 26535 // From List<Animation>:
26536 26536
26537 void sort([Comparator<Animation> compare = Comparable.compare]) { 26537 void sort([int compare(Animation a, Animation b)]) {
26538 throw new UnsupportedError("Cannot sort immutable List."); 26538 throw new UnsupportedError("Cannot sort immutable List.");
26539 } 26539 }
26540 26540
26541 int indexOf(Animation element, [int start = 0]) => 26541 int indexOf(Animation element, [int start = 0]) =>
26542 Lists.indexOf(this, element, start, this.length); 26542 Lists.indexOf(this, element, start, this.length);
26543 26543
26544 int lastIndexOf(Animation element, [int start]) { 26544 int lastIndexOf(Animation element, [int start]) {
26545 if (start == null) start = length - 1; 26545 if (start == null) start = length - 1;
26546 return Lists.lastIndexOf(this, element, start); 26546 return Lists.lastIndexOf(this, element, start);
26547 } 26547 }
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
27143 } 27143 }
27144 27144
27145 void addLast(Element value) { 27145 void addLast(Element value) {
27146 add(value); 27146 add(value);
27147 } 27147 }
27148 27148
27149 bool contains(Element element) { 27149 bool contains(Element element) {
27150 return element is Element && _childNodes.contains(element); 27150 return element is Element && _childNodes.contains(element);
27151 } 27151 }
27152 27152
27153 void sort([Comparator<Element> compare = Comparable.compare]) { 27153 void sort([int compare(Element a, Element b)]) {
27154 throw new UnsupportedError('TODO(jacobr): should we impl?'); 27154 throw new UnsupportedError('TODO(jacobr): should we impl?');
27155 } 27155 }
27156 27156
27157 void setRange(int start, int rangeLength, List from, [int startFrom = 0]) { 27157 void setRange(int start, int rangeLength, List from, [int startFrom = 0]) {
27158 throw new UnimplementedError(); 27158 throw new UnimplementedError();
27159 } 27159 }
27160 27160
27161 void removeRange(int start, int rangeLength) { 27161 void removeRange(int start, int rangeLength) {
27162 _filtered.getRange(start, rangeLength).forEach((el) => el.remove()); 27162 _filtered.getRange(start, rangeLength).forEach((el) => el.remove());
27163 } 27163 }
(...skipping 2397 matching lines...) Expand 10 before | Expand all | Expand 10 after
29561 bool get isEmpty => Maps.isEmpty(this); 29561 bool get isEmpty => Maps.isEmpty(this);
29562 } 29562 }
29563 29563
29564 get _printClosure => (s) { 29564 get _printClosure => (s) {
29565 try { 29565 try {
29566 window.console.log(s); 29566 window.console.log(s);
29567 } catch (_) { 29567 } catch (_) {
29568 _Utils.print(s); 29568 _Utils.print(s);
29569 } 29569 }
29570 }; 29570 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698