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

Side by Side Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 14425003: Make List.remove return boolean. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 months 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
« no previous file with comments | « sdk/lib/collection/queue.dart ('k') | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /// The Dart HTML library. 1 /// The Dart HTML library.
2 library dart.dom.html; 2 library dart.dom.html;
3 3
4 import 'dart:async'; 4 import 'dart:async';
5 import 'dart:collection'; 5 import 'dart:collection';
6 import 'dart:_collection-dev'; 6 import 'dart:_collection-dev';
7 import 'dart:html_common'; 7 import 'dart:html_common';
8 import 'dart:indexed_db'; 8 import 'dart:indexed_db';
9 import 'dart:isolate'; 9 import 'dart:isolate';
10 import 'dart:json' as json; 10 import 'dart:json' as json;
(...skipping 6900 matching lines...) Expand 10 before | Expand all | Expand 10 after
6911 } 6911 }
6912 6912
6913 DomMimeType removeAt(int pos) { 6913 DomMimeType removeAt(int pos) {
6914 throw new UnsupportedError("Cannot remove from immutable List."); 6914 throw new UnsupportedError("Cannot remove from immutable List.");
6915 } 6915 }
6916 6916
6917 DomMimeType removeLast() { 6917 DomMimeType removeLast() {
6918 throw new UnsupportedError("Cannot remove from immutable List."); 6918 throw new UnsupportedError("Cannot remove from immutable List.");
6919 } 6919 }
6920 6920
6921 void remove(Object object) { 6921 bool remove(Object object) {
6922 throw new UnsupportedError("Cannot remove from immutable List."); 6922 throw new UnsupportedError("Cannot remove from immutable List.");
6923 } 6923 }
6924 6924
6925 void removeWhere(bool test(DomMimeType element)) { 6925 void removeWhere(bool test(DomMimeType element)) {
6926 throw new UnsupportedError("Cannot remove from immutable List."); 6926 throw new UnsupportedError("Cannot remove from immutable List.");
6927 } 6927 }
6928 6928
6929 void retainWhere(bool test(DomMimeType element)) { 6929 void retainWhere(bool test(DomMimeType element)) {
6930 throw new UnsupportedError("Cannot remove from immutable List."); 6930 throw new UnsupportedError("Cannot remove from immutable List.");
6931 } 6931 }
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
7265 } 7265 }
7266 7266
7267 DomPlugin removeAt(int pos) { 7267 DomPlugin removeAt(int pos) {
7268 throw new UnsupportedError("Cannot remove from immutable List."); 7268 throw new UnsupportedError("Cannot remove from immutable List.");
7269 } 7269 }
7270 7270
7271 DomPlugin removeLast() { 7271 DomPlugin removeLast() {
7272 throw new UnsupportedError("Cannot remove from immutable List."); 7272 throw new UnsupportedError("Cannot remove from immutable List.");
7273 } 7273 }
7274 7274
7275 void remove(Object object) { 7275 bool remove(Object object) {
7276 throw new UnsupportedError("Cannot remove from immutable List."); 7276 throw new UnsupportedError("Cannot remove from immutable List.");
7277 } 7277 }
7278 7278
7279 void removeWhere(bool test(DomPlugin element)) { 7279 void removeWhere(bool test(DomPlugin element)) {
7280 throw new UnsupportedError("Cannot remove from immutable List."); 7280 throw new UnsupportedError("Cannot remove from immutable List.");
7281 } 7281 }
7282 7282
7283 void retainWhere(bool test(DomPlugin element)) { 7283 void retainWhere(bool test(DomPlugin element)) {
7284 throw new UnsupportedError("Cannot remove from immutable List."); 7284 throw new UnsupportedError("Cannot remove from immutable List.");
7285 } 7285 }
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
7687 } 7687 }
7688 7688
7689 String removeAt(int pos) { 7689 String removeAt(int pos) {
7690 throw new UnsupportedError("Cannot remove from immutable List."); 7690 throw new UnsupportedError("Cannot remove from immutable List.");
7691 } 7691 }
7692 7692
7693 String removeLast() { 7693 String removeLast() {
7694 throw new UnsupportedError("Cannot remove from immutable List."); 7694 throw new UnsupportedError("Cannot remove from immutable List.");
7695 } 7695 }
7696 7696
7697 void remove(Object object) { 7697 bool remove(Object object) {
7698 throw new UnsupportedError("Cannot remove from immutable List."); 7698 throw new UnsupportedError("Cannot remove from immutable List.");
7699 } 7699 }
7700 7700
7701 void removeWhere(bool test(String element)) { 7701 void removeWhere(bool test(String element)) {
7702 throw new UnsupportedError("Cannot remove from immutable List."); 7702 throw new UnsupportedError("Cannot remove from immutable List.");
7703 } 7703 }
7704 7704
7705 void retainWhere(bool test(String element)) { 7705 void retainWhere(bool test(String element)) {
7706 throw new UnsupportedError("Cannot remove from immutable List."); 7706 throw new UnsupportedError("Cannot remove from immutable List.");
7707 } 7707 }
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
7960 } 7960 }
7961 7961
7962 void replaceRange(int start, int end, Iterable<Element> iterable) { 7962 void replaceRange(int start, int end, Iterable<Element> iterable) {
7963 throw new UnimplementedError(); 7963 throw new UnimplementedError();
7964 } 7964 }
7965 7965
7966 void fillRange(int start, int end, [Element fillValue]) { 7966 void fillRange(int start, int end, [Element fillValue]) {
7967 throw new UnimplementedError(); 7967 throw new UnimplementedError();
7968 } 7968 }
7969 7969
7970 void remove(Object object) { 7970 bool remove(Object object) {
7971 if (object is Element) { 7971 if (object is Element) {
7972 Element element = object; 7972 Element element = object;
7973 if (identical(element.parentNode, _element)) { 7973 if (identical(element.parentNode, _element)) {
7974 _element.$dom_removeChild(element); 7974 _element.$dom_removeChild(element);
7975 return true;
7975 } 7976 }
7976 } 7977 }
7978 return false;
7977 } 7979 }
7978 7980
7979 void removeWhere(bool test(Element element)) { 7981 void removeWhere(bool test(Element element)) {
7980 _childElements.removeWhere(test); 7982 _childElements.removeWhere(test);
7981 } 7983 }
7982 7984
7983 void retainWhere(bool test(Element element)) { 7985 void retainWhere(bool test(Element element)) {
7984 _childElements.retainWhere(test); 7986 _childElements.retainWhere(test);
7985 } 7987 }
7986 7988
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
8127 } 8129 }
8128 8130
8129 Element removeAt(int index) { 8131 Element removeAt(int index) {
8130 throw new UnsupportedError(''); 8132 throw new UnsupportedError('');
8131 } 8133 }
8132 8134
8133 Element removeLast() { 8135 Element removeLast() {
8134 throw new UnsupportedError(''); 8136 throw new UnsupportedError('');
8135 } 8137 }
8136 8138
8137 void remove(Object element) { 8139 bool remove(Object element) {
8138 throw new UnsupportedError(''); 8140 throw new UnsupportedError('');
8139 } 8141 }
8140 8142
8141 void removeWhere(bool test(Element element)) { 8143 void removeWhere(bool test(Element element)) {
8142 throw new UnsupportedError(''); 8144 throw new UnsupportedError('');
8143 } 8145 }
8144 8146
8145 void retainWhere(bool test(Element element)) { 8147 void retainWhere(bool test(Element element)) {
8146 throw new UnsupportedError(''); 8148 throw new UnsupportedError('');
8147 } 8149 }
(...skipping 2299 matching lines...) Expand 10 before | Expand all | Expand 10 after
10447 } 10449 }
10448 10450
10449 File removeAt(int pos) { 10451 File removeAt(int pos) {
10450 throw new UnsupportedError("Cannot remove from immutable List."); 10452 throw new UnsupportedError("Cannot remove from immutable List.");
10451 } 10453 }
10452 10454
10453 File removeLast() { 10455 File removeLast() {
10454 throw new UnsupportedError("Cannot remove from immutable List."); 10456 throw new UnsupportedError("Cannot remove from immutable List.");
10455 } 10457 }
10456 10458
10457 void remove(Object object) { 10459 bool remove(Object object) {
10458 throw new UnsupportedError("Cannot remove from immutable List."); 10460 throw new UnsupportedError("Cannot remove from immutable List.");
10459 } 10461 }
10460 10462
10461 void removeWhere(bool test(File element)) { 10463 void removeWhere(bool test(File element)) {
10462 throw new UnsupportedError("Cannot remove from immutable List."); 10464 throw new UnsupportedError("Cannot remove from immutable List.");
10463 } 10465 }
10464 10466
10465 void retainWhere(bool test(File element)) { 10467 void retainWhere(bool test(File element)) {
10466 throw new UnsupportedError("Cannot remove from immutable List."); 10468 throw new UnsupportedError("Cannot remove from immutable List.");
10467 } 10469 }
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after
11429 } 11431 }
11430 11432
11431 Node removeAt(int pos) { 11433 Node removeAt(int pos) {
11432 throw new UnsupportedError("Cannot remove from immutable List."); 11434 throw new UnsupportedError("Cannot remove from immutable List.");
11433 } 11435 }
11434 11436
11435 Node removeLast() { 11437 Node removeLast() {
11436 throw new UnsupportedError("Cannot remove from immutable List."); 11438 throw new UnsupportedError("Cannot remove from immutable List.");
11437 } 11439 }
11438 11440
11439 void remove(Object object) { 11441 bool remove(Object object) {
11440 throw new UnsupportedError("Cannot remove from immutable List."); 11442 throw new UnsupportedError("Cannot remove from immutable List.");
11441 } 11443 }
11442 11444
11443 void removeWhere(bool test(Node element)) { 11445 void removeWhere(bool test(Node element)) {
11444 throw new UnsupportedError("Cannot remove from immutable List."); 11446 throw new UnsupportedError("Cannot remove from immutable List.");
11445 } 11447 }
11446 11448
11447 void retainWhere(bool test(Node element)) { 11449 void retainWhere(bool test(Node element)) {
11448 throw new UnsupportedError("Cannot remove from immutable List."); 11450 throw new UnsupportedError("Cannot remove from immutable List.");
11449 } 11451 }
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
11656 } 11658 }
11657 11659
11658 Node removeAt(int pos) { 11660 Node removeAt(int pos) {
11659 throw new UnsupportedError("Cannot remove from immutable List."); 11661 throw new UnsupportedError("Cannot remove from immutable List.");
11660 } 11662 }
11661 11663
11662 Node removeLast() { 11664 Node removeLast() {
11663 throw new UnsupportedError("Cannot remove from immutable List."); 11665 throw new UnsupportedError("Cannot remove from immutable List.");
11664 } 11666 }
11665 11667
11666 void remove(Object object) { 11668 bool remove(Object object) {
11667 throw new UnsupportedError("Cannot remove from immutable List."); 11669 throw new UnsupportedError("Cannot remove from immutable List.");
11668 } 11670 }
11669 11671
11670 void removeWhere(bool test(Node element)) { 11672 void removeWhere(bool test(Node element)) {
11671 throw new UnsupportedError("Cannot remove from immutable List."); 11673 throw new UnsupportedError("Cannot remove from immutable List.");
11672 } 11674 }
11673 11675
11674 void retainWhere(bool test(Node element)) { 11676 void retainWhere(bool test(Node element)) {
11675 throw new UnsupportedError("Cannot remove from immutable List."); 11677 throw new UnsupportedError("Cannot remove from immutable List.");
11676 } 11678 }
(...skipping 4195 matching lines...) Expand 10 before | Expand all | Expand 10 after
15872 } 15874 }
15873 15875
15874 Node removeAt(int index) { 15876 Node removeAt(int index) {
15875 var result = this[index]; 15877 var result = this[index];
15876 if (result != null) { 15878 if (result != null) {
15877 _this.$dom_removeChild(result); 15879 _this.$dom_removeChild(result);
15878 } 15880 }
15879 return result; 15881 return result;
15880 } 15882 }
15881 15883
15882 void remove(Object object) { 15884 bool remove(Object object) {
15883 if (object is! Node) return; 15885 if (object is! Node) return false;
15884 Node node = object; 15886 Node node = object;
15885 if (!identical(_this, node.parentNode)) return; 15887 if (!identical(_this, node.parentNode)) return false;
15886 _this.$dom_removeChild(node); 15888 _this.$dom_removeChild(node);
15889 return true;
15887 } 15890 }
15888 15891
15889 void _filter(bool test(Node node), bool removeMatching) { 15892 void _filter(bool test(Node node), bool removeMatching) {
15890 // This implementation of removeWhere/retainWhere is more efficient 15893 // This implementation of removeWhere/retainWhere is more efficient
15891 // than the default in ListBase. Child nodes can be removed in constant 15894 // than the default in ListBase. Child nodes can be removed in constant
15892 // time. 15895 // time.
15893 Node child = _this.$dom_firstChild; 15896 Node child = _this.$dom_firstChild;
15894 while (child != null) { 15897 while (child != null) {
15895 Node nextChild = child.nextSibling; 15898 Node nextChild = child.nextSibling;
15896 if (test(child) == removeMatching) { 15899 if (test(child) == removeMatching) {
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
16520 } 16523 }
16521 16524
16522 Node removeAt(int pos) { 16525 Node removeAt(int pos) {
16523 throw new UnsupportedError("Cannot remove from immutable List."); 16526 throw new UnsupportedError("Cannot remove from immutable List.");
16524 } 16527 }
16525 16528
16526 Node removeLast() { 16529 Node removeLast() {
16527 throw new UnsupportedError("Cannot remove from immutable List."); 16530 throw new UnsupportedError("Cannot remove from immutable List.");
16528 } 16531 }
16529 16532
16530 void remove(Object object) { 16533 bool remove(Object object) {
16531 throw new UnsupportedError("Cannot remove from immutable List."); 16534 throw new UnsupportedError("Cannot remove from immutable List.");
16532 } 16535 }
16533 16536
16534 void removeWhere(bool test(Node element)) { 16537 void removeWhere(bool test(Node element)) {
16535 throw new UnsupportedError("Cannot remove from immutable List."); 16538 throw new UnsupportedError("Cannot remove from immutable List.");
16536 } 16539 }
16537 16540
16538 void retainWhere(bool test(Node element)) { 16541 void retainWhere(bool test(Node element)) {
16539 throw new UnsupportedError("Cannot remove from immutable List."); 16542 throw new UnsupportedError("Cannot remove from immutable List.");
16540 } 16543 }
(...skipping 2511 matching lines...) Expand 10 before | Expand all | Expand 10 after
19052 } 19055 }
19053 19056
19054 SourceBuffer removeAt(int pos) { 19057 SourceBuffer removeAt(int pos) {
19055 throw new UnsupportedError("Cannot remove from immutable List."); 19058 throw new UnsupportedError("Cannot remove from immutable List.");
19056 } 19059 }
19057 19060
19058 SourceBuffer removeLast() { 19061 SourceBuffer removeLast() {
19059 throw new UnsupportedError("Cannot remove from immutable List."); 19062 throw new UnsupportedError("Cannot remove from immutable List.");
19060 } 19063 }
19061 19064
19062 void remove(Object object) { 19065 bool remove(Object object) {
19063 throw new UnsupportedError("Cannot remove from immutable List."); 19066 throw new UnsupportedError("Cannot remove from immutable List.");
19064 } 19067 }
19065 19068
19066 void removeWhere(bool test(SourceBuffer element)) { 19069 void removeWhere(bool test(SourceBuffer element)) {
19067 throw new UnsupportedError("Cannot remove from immutable List."); 19070 throw new UnsupportedError("Cannot remove from immutable List.");
19068 } 19071 }
19069 19072
19070 void retainWhere(bool test(SourceBuffer element)) { 19073 void retainWhere(bool test(SourceBuffer element)) {
19071 throw new UnsupportedError("Cannot remove from immutable List."); 19074 throw new UnsupportedError("Cannot remove from immutable List.");
19072 } 19075 }
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
19352 } 19355 }
19353 19356
19354 SpeechGrammar removeAt(int pos) { 19357 SpeechGrammar removeAt(int pos) {
19355 throw new UnsupportedError("Cannot remove from immutable List."); 19358 throw new UnsupportedError("Cannot remove from immutable List.");
19356 } 19359 }
19357 19360
19358 SpeechGrammar removeLast() { 19361 SpeechGrammar removeLast() {
19359 throw new UnsupportedError("Cannot remove from immutable List."); 19362 throw new UnsupportedError("Cannot remove from immutable List.");
19360 } 19363 }
19361 19364
19362 void remove(Object object) { 19365 bool remove(Object object) {
19363 throw new UnsupportedError("Cannot remove from immutable List."); 19366 throw new UnsupportedError("Cannot remove from immutable List.");
19364 } 19367 }
19365 19368
19366 void removeWhere(bool test(SpeechGrammar element)) { 19369 void removeWhere(bool test(SpeechGrammar element)) {
19367 throw new UnsupportedError("Cannot remove from immutable List."); 19370 throw new UnsupportedError("Cannot remove from immutable List.");
19368 } 19371 }
19369 19372
19370 void retainWhere(bool test(SpeechGrammar element)) { 19373 void retainWhere(bool test(SpeechGrammar element)) {
19371 throw new UnsupportedError("Cannot remove from immutable List."); 19374 throw new UnsupportedError("Cannot remove from immutable List.");
19372 } 19375 }
(...skipping 1446 matching lines...) Expand 10 before | Expand all | Expand 10 after
20819 } 20822 }
20820 20823
20821 TextTrackCue removeAt(int pos) { 20824 TextTrackCue removeAt(int pos) {
20822 throw new UnsupportedError("Cannot remove from immutable List."); 20825 throw new UnsupportedError("Cannot remove from immutable List.");
20823 } 20826 }
20824 20827
20825 TextTrackCue removeLast() { 20828 TextTrackCue removeLast() {
20826 throw new UnsupportedError("Cannot remove from immutable List."); 20829 throw new UnsupportedError("Cannot remove from immutable List.");
20827 } 20830 }
20828 20831
20829 void remove(Object object) { 20832 bool remove(Object object) {
20830 throw new UnsupportedError("Cannot remove from immutable List."); 20833 throw new UnsupportedError("Cannot remove from immutable List.");
20831 } 20834 }
20832 20835
20833 void removeWhere(bool test(TextTrackCue element)) { 20836 void removeWhere(bool test(TextTrackCue element)) {
20834 throw new UnsupportedError("Cannot remove from immutable List."); 20837 throw new UnsupportedError("Cannot remove from immutable List.");
20835 } 20838 }
20836 20839
20837 void retainWhere(bool test(TextTrackCue element)) { 20840 void retainWhere(bool test(TextTrackCue element)) {
20838 throw new UnsupportedError("Cannot remove from immutable List."); 20841 throw new UnsupportedError("Cannot remove from immutable List.");
20839 } 20842 }
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
21044 } 21047 }
21045 21048
21046 TextTrack removeAt(int pos) { 21049 TextTrack removeAt(int pos) {
21047 throw new UnsupportedError("Cannot remove from immutable List."); 21050 throw new UnsupportedError("Cannot remove from immutable List.");
21048 } 21051 }
21049 21052
21050 TextTrack removeLast() { 21053 TextTrack removeLast() {
21051 throw new UnsupportedError("Cannot remove from immutable List."); 21054 throw new UnsupportedError("Cannot remove from immutable List.");
21052 } 21055 }
21053 21056
21054 void remove(Object object) { 21057 bool remove(Object object) {
21055 throw new UnsupportedError("Cannot remove from immutable List."); 21058 throw new UnsupportedError("Cannot remove from immutable List.");
21056 } 21059 }
21057 21060
21058 void removeWhere(bool test(TextTrack element)) { 21061 void removeWhere(bool test(TextTrack element)) {
21059 throw new UnsupportedError("Cannot remove from immutable List."); 21062 throw new UnsupportedError("Cannot remove from immutable List.");
21060 } 21063 }
21061 21064
21062 void retainWhere(bool test(TextTrack element)) { 21065 void retainWhere(bool test(TextTrack element)) {
21063 throw new UnsupportedError("Cannot remove from immutable List."); 21066 throw new UnsupportedError("Cannot remove from immutable List.");
21064 } 21067 }
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
21495 } 21498 }
21496 21499
21497 Touch removeAt(int pos) { 21500 Touch removeAt(int pos) {
21498 throw new UnsupportedError("Cannot remove from immutable List."); 21501 throw new UnsupportedError("Cannot remove from immutable List.");
21499 } 21502 }
21500 21503
21501 Touch removeLast() { 21504 Touch removeLast() {
21502 throw new UnsupportedError("Cannot remove from immutable List."); 21505 throw new UnsupportedError("Cannot remove from immutable List.");
21503 } 21506 }
21504 21507
21505 void remove(Object object) { 21508 bool remove(Object object) {
21506 throw new UnsupportedError("Cannot remove from immutable List."); 21509 throw new UnsupportedError("Cannot remove from immutable List.");
21507 } 21510 }
21508 21511
21509 void removeWhere(bool test(Touch element)) { 21512 void removeWhere(bool test(Touch element)) {
21510 throw new UnsupportedError("Cannot remove from immutable List."); 21513 throw new UnsupportedError("Cannot remove from immutable List.");
21511 } 21514 }
21512 21515
21513 void retainWhere(bool test(Touch element)) { 21516 void retainWhere(bool test(Touch element)) {
21514 throw new UnsupportedError("Cannot remove from immutable List."); 21517 throw new UnsupportedError("Cannot remove from immutable List.");
21515 } 21518 }
(...skipping 2481 matching lines...) Expand 10 before | Expand all | Expand 10 after
23997 } 24000 }
23998 24001
23999 Rect removeAt(int pos) { 24002 Rect removeAt(int pos) {
24000 throw new UnsupportedError("Cannot remove from immutable List."); 24003 throw new UnsupportedError("Cannot remove from immutable List.");
24001 } 24004 }
24002 24005
24003 Rect removeLast() { 24006 Rect removeLast() {
24004 throw new UnsupportedError("Cannot remove from immutable List."); 24007 throw new UnsupportedError("Cannot remove from immutable List.");
24005 } 24008 }
24006 24009
24007 void remove(Object object) { 24010 bool remove(Object object) {
24008 throw new UnsupportedError("Cannot remove from immutable List."); 24011 throw new UnsupportedError("Cannot remove from immutable List.");
24009 } 24012 }
24010 24013
24011 void removeWhere(bool test(Rect element)) { 24014 void removeWhere(bool test(Rect element)) {
24012 throw new UnsupportedError("Cannot remove from immutable List."); 24015 throw new UnsupportedError("Cannot remove from immutable List.");
24013 } 24016 }
24014 24017
24015 void retainWhere(bool test(Rect element)) { 24018 void retainWhere(bool test(Rect element)) {
24016 throw new UnsupportedError("Cannot remove from immutable List."); 24019 throw new UnsupportedError("Cannot remove from immutable List.");
24017 } 24020 }
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
24223 } 24226 }
24224 24227
24225 CssRule removeAt(int pos) { 24228 CssRule removeAt(int pos) {
24226 throw new UnsupportedError("Cannot remove from immutable List."); 24229 throw new UnsupportedError("Cannot remove from immutable List.");
24227 } 24230 }
24228 24231
24229 CssRule removeLast() { 24232 CssRule removeLast() {
24230 throw new UnsupportedError("Cannot remove from immutable List."); 24233 throw new UnsupportedError("Cannot remove from immutable List.");
24231 } 24234 }
24232 24235
24233 void remove(Object object) { 24236 bool remove(Object object) {
24234 throw new UnsupportedError("Cannot remove from immutable List."); 24237 throw new UnsupportedError("Cannot remove from immutable List.");
24235 } 24238 }
24236 24239
24237 void removeWhere(bool test(CssRule element)) { 24240 void removeWhere(bool test(CssRule element)) {
24238 throw new UnsupportedError("Cannot remove from immutable List."); 24241 throw new UnsupportedError("Cannot remove from immutable List.");
24239 } 24242 }
24240 24243
24241 void retainWhere(bool test(CssRule element)) { 24244 void retainWhere(bool test(CssRule element)) {
24242 throw new UnsupportedError("Cannot remove from immutable List."); 24245 throw new UnsupportedError("Cannot remove from immutable List.");
24243 } 24246 }
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
24440 } 24443 }
24441 24444
24442 _CSSValue removeAt(int pos) { 24445 _CSSValue removeAt(int pos) {
24443 throw new UnsupportedError("Cannot remove from immutable List."); 24446 throw new UnsupportedError("Cannot remove from immutable List.");
24444 } 24447 }
24445 24448
24446 _CSSValue removeLast() { 24449 _CSSValue removeLast() {
24447 throw new UnsupportedError("Cannot remove from immutable List."); 24450 throw new UnsupportedError("Cannot remove from immutable List.");
24448 } 24451 }
24449 24452
24450 void remove(Object object) { 24453 bool remove(Object object) {
24451 throw new UnsupportedError("Cannot remove from immutable List."); 24454 throw new UnsupportedError("Cannot remove from immutable List.");
24452 } 24455 }
24453 24456
24454 void removeWhere(bool test(_CSSValue element)) { 24457 void removeWhere(bool test(_CSSValue element)) {
24455 throw new UnsupportedError("Cannot remove from immutable List."); 24458 throw new UnsupportedError("Cannot remove from immutable List.");
24456 } 24459 }
24457 24460
24458 void retainWhere(bool test(_CSSValue element)) { 24461 void retainWhere(bool test(_CSSValue element)) {
24459 throw new UnsupportedError("Cannot remove from immutable List."); 24462 throw new UnsupportedError("Cannot remove from immutable List.");
24460 } 24463 }
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
24737 } 24740 }
24738 24741
24739 Entry removeAt(int pos) { 24742 Entry removeAt(int pos) {
24740 throw new UnsupportedError("Cannot remove from immutable List."); 24743 throw new UnsupportedError("Cannot remove from immutable List.");
24741 } 24744 }
24742 24745
24743 Entry removeLast() { 24746 Entry removeLast() {
24744 throw new UnsupportedError("Cannot remove from immutable List."); 24747 throw new UnsupportedError("Cannot remove from immutable List.");
24745 } 24748 }
24746 24749
24747 void remove(Object object) { 24750 bool remove(Object object) {
24748 throw new UnsupportedError("Cannot remove from immutable List."); 24751 throw new UnsupportedError("Cannot remove from immutable List.");
24749 } 24752 }
24750 24753
24751 void removeWhere(bool test(Entry element)) { 24754 void removeWhere(bool test(Entry element)) {
24752 throw new UnsupportedError("Cannot remove from immutable List."); 24755 throw new UnsupportedError("Cannot remove from immutable List.");
24753 } 24756 }
24754 24757
24755 void retainWhere(bool test(Entry element)) { 24758 void retainWhere(bool test(Entry element)) {
24756 throw new UnsupportedError("Cannot remove from immutable List."); 24759 throw new UnsupportedError("Cannot remove from immutable List.");
24757 } 24760 }
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
24954 } 24957 }
24955 24958
24956 _EntrySync removeAt(int pos) { 24959 _EntrySync removeAt(int pos) {
24957 throw new UnsupportedError("Cannot remove from immutable List."); 24960 throw new UnsupportedError("Cannot remove from immutable List.");
24958 } 24961 }
24959 24962
24960 _EntrySync removeLast() { 24963 _EntrySync removeLast() {
24961 throw new UnsupportedError("Cannot remove from immutable List."); 24964 throw new UnsupportedError("Cannot remove from immutable List.");
24962 } 24965 }
24963 24966
24964 void remove(Object object) { 24967 bool remove(Object object) {
24965 throw new UnsupportedError("Cannot remove from immutable List."); 24968 throw new UnsupportedError("Cannot remove from immutable List.");
24966 } 24969 }
24967 24970
24968 void removeWhere(bool test(_EntrySync element)) { 24971 void removeWhere(bool test(_EntrySync element)) {
24969 throw new UnsupportedError("Cannot remove from immutable List."); 24972 throw new UnsupportedError("Cannot remove from immutable List.");
24970 } 24973 }
24971 24974
24972 void retainWhere(bool test(_EntrySync element)) { 24975 void retainWhere(bool test(_EntrySync element)) {
24973 throw new UnsupportedError("Cannot remove from immutable List."); 24976 throw new UnsupportedError("Cannot remove from immutable List.");
24974 } 24977 }
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
25214 } 25217 }
25215 25218
25216 Gamepad removeAt(int pos) { 25219 Gamepad removeAt(int pos) {
25217 throw new UnsupportedError("Cannot remove from immutable List."); 25220 throw new UnsupportedError("Cannot remove from immutable List.");
25218 } 25221 }
25219 25222
25220 Gamepad removeLast() { 25223 Gamepad removeLast() {
25221 throw new UnsupportedError("Cannot remove from immutable List."); 25224 throw new UnsupportedError("Cannot remove from immutable List.");
25222 } 25225 }
25223 25226
25224 void remove(Object object) { 25227 bool remove(Object object) {
25225 throw new UnsupportedError("Cannot remove from immutable List."); 25228 throw new UnsupportedError("Cannot remove from immutable List.");
25226 } 25229 }
25227 25230
25228 void removeWhere(bool test(Gamepad element)) { 25231 void removeWhere(bool test(Gamepad element)) {
25229 throw new UnsupportedError("Cannot remove from immutable List."); 25232 throw new UnsupportedError("Cannot remove from immutable List.");
25230 } 25233 }
25231 25234
25232 void retainWhere(bool test(Gamepad element)) { 25235 void retainWhere(bool test(Gamepad element)) {
25233 throw new UnsupportedError("Cannot remove from immutable List."); 25236 throw new UnsupportedError("Cannot remove from immutable List.");
25234 } 25237 }
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
25494 } 25497 }
25495 25498
25496 Node removeAt(int pos) { 25499 Node removeAt(int pos) {
25497 throw new UnsupportedError("Cannot remove from immutable List."); 25500 throw new UnsupportedError("Cannot remove from immutable List.");
25498 } 25501 }
25499 25502
25500 Node removeLast() { 25503 Node removeLast() {
25501 throw new UnsupportedError("Cannot remove from immutable List."); 25504 throw new UnsupportedError("Cannot remove from immutable List.");
25502 } 25505 }
25503 25506
25504 void remove(Object object) { 25507 bool remove(Object object) {
25505 throw new UnsupportedError("Cannot remove from immutable List."); 25508 throw new UnsupportedError("Cannot remove from immutable List.");
25506 } 25509 }
25507 25510
25508 void removeWhere(bool test(Node element)) { 25511 void removeWhere(bool test(Node element)) {
25509 throw new UnsupportedError("Cannot remove from immutable List."); 25512 throw new UnsupportedError("Cannot remove from immutable List.");
25510 } 25513 }
25511 25514
25512 void retainWhere(bool test(Node element)) { 25515 void retainWhere(bool test(Node element)) {
25513 throw new UnsupportedError("Cannot remove from immutable List."); 25516 throw new UnsupportedError("Cannot remove from immutable List.");
25514 } 25517 }
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
25791 } 25794 }
25792 25795
25793 SpeechInputResult removeAt(int pos) { 25796 SpeechInputResult removeAt(int pos) {
25794 throw new UnsupportedError("Cannot remove from immutable List."); 25797 throw new UnsupportedError("Cannot remove from immutable List.");
25795 } 25798 }
25796 25799
25797 SpeechInputResult removeLast() { 25800 SpeechInputResult removeLast() {
25798 throw new UnsupportedError("Cannot remove from immutable List."); 25801 throw new UnsupportedError("Cannot remove from immutable List.");
25799 } 25802 }
25800 25803
25801 void remove(Object object) { 25804 bool remove(Object object) {
25802 throw new UnsupportedError("Cannot remove from immutable List."); 25805 throw new UnsupportedError("Cannot remove from immutable List.");
25803 } 25806 }
25804 25807
25805 void removeWhere(bool test(SpeechInputResult element)) { 25808 void removeWhere(bool test(SpeechInputResult element)) {
25806 throw new UnsupportedError("Cannot remove from immutable List."); 25809 throw new UnsupportedError("Cannot remove from immutable List.");
25807 } 25810 }
25808 25811
25809 void retainWhere(bool test(SpeechInputResult element)) { 25812 void retainWhere(bool test(SpeechInputResult element)) {
25810 throw new UnsupportedError("Cannot remove from immutable List."); 25813 throw new UnsupportedError("Cannot remove from immutable List.");
25811 } 25814 }
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
26008 } 26011 }
26009 26012
26010 SpeechRecognitionResult removeAt(int pos) { 26013 SpeechRecognitionResult removeAt(int pos) {
26011 throw new UnsupportedError("Cannot remove from immutable List."); 26014 throw new UnsupportedError("Cannot remove from immutable List.");
26012 } 26015 }
26013 26016
26014 SpeechRecognitionResult removeLast() { 26017 SpeechRecognitionResult removeLast() {
26015 throw new UnsupportedError("Cannot remove from immutable List."); 26018 throw new UnsupportedError("Cannot remove from immutable List.");
26016 } 26019 }
26017 26020
26018 void remove(Object object) { 26021 bool remove(Object object) {
26019 throw new UnsupportedError("Cannot remove from immutable List."); 26022 throw new UnsupportedError("Cannot remove from immutable List.");
26020 } 26023 }
26021 26024
26022 void removeWhere(bool test(SpeechRecognitionResult element)) { 26025 void removeWhere(bool test(SpeechRecognitionResult element)) {
26023 throw new UnsupportedError("Cannot remove from immutable List."); 26026 throw new UnsupportedError("Cannot remove from immutable List.");
26024 } 26027 }
26025 26028
26026 void retainWhere(bool test(SpeechRecognitionResult element)) { 26029 void retainWhere(bool test(SpeechRecognitionResult element)) {
26027 throw new UnsupportedError("Cannot remove from immutable List."); 26030 throw new UnsupportedError("Cannot remove from immutable List.");
26028 } 26031 }
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
26225 } 26228 }
26226 26229
26227 StyleSheet removeAt(int pos) { 26230 StyleSheet removeAt(int pos) {
26228 throw new UnsupportedError("Cannot remove from immutable List."); 26231 throw new UnsupportedError("Cannot remove from immutable List.");
26229 } 26232 }
26230 26233
26231 StyleSheet removeLast() { 26234 StyleSheet removeLast() {
26232 throw new UnsupportedError("Cannot remove from immutable List."); 26235 throw new UnsupportedError("Cannot remove from immutable List.");
26233 } 26236 }
26234 26237
26235 void remove(Object object) { 26238 bool remove(Object object) {
26236 throw new UnsupportedError("Cannot remove from immutable List."); 26239 throw new UnsupportedError("Cannot remove from immutable List.");
26237 } 26240 }
26238 26241
26239 void removeWhere(bool test(StyleSheet element)) { 26242 void removeWhere(bool test(StyleSheet element)) {
26240 throw new UnsupportedError("Cannot remove from immutable List."); 26243 throw new UnsupportedError("Cannot remove from immutable List.");
26241 } 26244 }
26242 26245
26243 void retainWhere(bool test(StyleSheet element)) { 26246 void retainWhere(bool test(StyleSheet element)) {
26244 throw new UnsupportedError("Cannot remove from immutable List."); 26247 throw new UnsupportedError("Cannot remove from immutable List.");
26245 } 26248 }
(...skipping 3660 matching lines...) Expand 10 before | Expand all | Expand 10 after
29906 _position = nextPosition; 29909 _position = nextPosition;
29907 return true; 29910 return true;
29908 } 29911 }
29909 _current = null; 29912 _current = null;
29910 _position = _array.length; 29913 _position = _array.length;
29911 return false; 29914 return false;
29912 } 29915 }
29913 29916
29914 T get current => _current; 29917 T get current => _current;
29915 } 29918 }
OLDNEW
« no previous file with comments | « sdk/lib/collection/queue.dart ('k') | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698