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/svg/dartium/svg_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 svg; 1 library svg;
2 2
3 import 'dart:collection'; 3 import 'dart:collection';
4 import 'dart:html'; 4 import 'dart:html';
5 import 'dart:html_common'; 5 import 'dart:html_common';
6 import 'dart:nativewrappers'; 6 import 'dart:nativewrappers';
7 // DO NOT EDIT 7 // DO NOT EDIT
8 // Auto-generated dart:svg library. 8 // Auto-generated dart:svg library.
9 9
10 10
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 Collections.filter(this, <AnimatedLength>[], f); 495 Collections.filter(this, <AnimatedLength>[], f);
496 496
497 bool every(bool f(AnimatedLength element)) => Collections.every(this, f); 497 bool every(bool f(AnimatedLength element)) => Collections.every(this, f);
498 498
499 bool some(bool f(AnimatedLength element)) => Collections.some(this, f); 499 bool some(bool f(AnimatedLength element)) => Collections.some(this, f);
500 500
501 bool get isEmpty => this.length == 0; 501 bool get isEmpty => this.length == 0;
502 502
503 // From List<AnimatedLength>: 503 // From List<AnimatedLength>:
504 504
505 void sort([Comparator<AnimatedLength> compare = Comparable.compare]) { 505 void sort([int compare(AnimatedLength a, AnimatedLength b)]) {
506 throw new UnsupportedError("Cannot sort immutable List."); 506 throw new UnsupportedError("Cannot sort immutable List.");
507 } 507 }
508 508
509 int indexOf(AnimatedLength element, [int start = 0]) => 509 int indexOf(AnimatedLength element, [int start = 0]) =>
510 Lists.indexOf(this, element, start, this.length); 510 Lists.indexOf(this, element, start, this.length);
511 511
512 int lastIndexOf(AnimatedLength element, [int start]) { 512 int lastIndexOf(AnimatedLength element, [int start]) {
513 if (start == null) start = length - 1; 513 if (start == null) start = length - 1;
514 return Lists.lastIndexOf(this, element, start); 514 return Lists.lastIndexOf(this, element, start);
515 } 515 }
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 Collections.filter(this, <AnimatedNumber>[], f); 632 Collections.filter(this, <AnimatedNumber>[], f);
633 633
634 bool every(bool f(AnimatedNumber element)) => Collections.every(this, f); 634 bool every(bool f(AnimatedNumber element)) => Collections.every(this, f);
635 635
636 bool some(bool f(AnimatedNumber element)) => Collections.some(this, f); 636 bool some(bool f(AnimatedNumber element)) => Collections.some(this, f);
637 637
638 bool get isEmpty => this.length == 0; 638 bool get isEmpty => this.length == 0;
639 639
640 // From List<AnimatedNumber>: 640 // From List<AnimatedNumber>:
641 641
642 void sort([Comparator<AnimatedNumber> compare = Comparable.compare]) { 642 void sort([int compare(AnimatedNumber a, AnimatedNumber b)]) {
643 throw new UnsupportedError("Cannot sort immutable List."); 643 throw new UnsupportedError("Cannot sort immutable List.");
644 } 644 }
645 645
646 int indexOf(AnimatedNumber element, [int start = 0]) => 646 int indexOf(AnimatedNumber element, [int start = 0]) =>
647 Lists.indexOf(this, element, start, this.length); 647 Lists.indexOf(this, element, start, this.length);
648 648
649 int lastIndexOf(AnimatedNumber element, [int start]) { 649 int lastIndexOf(AnimatedNumber element, [int start]) {
650 if (start == null) start = length - 1; 650 if (start == null) start = length - 1;
651 return Lists.lastIndexOf(this, element, start); 651 return Lists.lastIndexOf(this, element, start);
652 } 652 }
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
809 Collections.filter(this, <AnimateTransformElement>[], f); 809 Collections.filter(this, <AnimateTransformElement>[], f);
810 810
811 bool every(bool f(AnimateTransformElement element)) => Collections.every(this, f); 811 bool every(bool f(AnimateTransformElement element)) => Collections.every(this, f);
812 812
813 bool some(bool f(AnimateTransformElement element)) => Collections.some(this, f ); 813 bool some(bool f(AnimateTransformElement element)) => Collections.some(this, f );
814 814
815 bool get isEmpty => this.length == 0; 815 bool get isEmpty => this.length == 0;
816 816
817 // From List<AnimateTransformElement>: 817 // From List<AnimateTransformElement>:
818 818
819 void sort([Comparator<AnimateTransformElement> compare = Comparable.compare]) { 819 void sort([int compare(AnimateTransformElement a, AnimateTransformElement b)]) {
820 throw new UnsupportedError("Cannot sort immutable List."); 820 throw new UnsupportedError("Cannot sort immutable List.");
821 } 821 }
822 822
823 int indexOf(AnimateTransformElement element, [int start = 0]) => 823 int indexOf(AnimateTransformElement element, [int start = 0]) =>
824 Lists.indexOf(this, element, start, this.length); 824 Lists.indexOf(this, element, start, this.length);
825 825
826 int lastIndexOf(AnimateTransformElement element, [int start]) { 826 int lastIndexOf(AnimateTransformElement element, [int start]) {
827 if (start == null) start = length - 1; 827 if (start == null) start = length - 1;
828 return Lists.lastIndexOf(this, element, start); 828 return Lists.lastIndexOf(this, element, start);
829 } 829 }
(...skipping 2960 matching lines...) Expand 10 before | Expand all | Expand 10 after
3790 Collections.filter(this, <Length>[], f); 3790 Collections.filter(this, <Length>[], f);
3791 3791
3792 bool every(bool f(Length element)) => Collections.every(this, f); 3792 bool every(bool f(Length element)) => Collections.every(this, f);
3793 3793
3794 bool some(bool f(Length element)) => Collections.some(this, f); 3794 bool some(bool f(Length element)) => Collections.some(this, f);
3795 3795
3796 bool get isEmpty => this.length == 0; 3796 bool get isEmpty => this.length == 0;
3797 3797
3798 // From List<Length>: 3798 // From List<Length>:
3799 3799
3800 void sort([Comparator<Length> compare = Comparable.compare]) { 3800 void sort([int compare(Length a, Length b)]) {
3801 throw new UnsupportedError("Cannot sort immutable List."); 3801 throw new UnsupportedError("Cannot sort immutable List.");
3802 } 3802 }
3803 3803
3804 int indexOf(Length element, [int start = 0]) => 3804 int indexOf(Length element, [int start = 0]) =>
3805 Lists.indexOf(this, element, start, this.length); 3805 Lists.indexOf(this, element, start, this.length);
3806 3806
3807 int lastIndexOf(Length element, [int start]) { 3807 int lastIndexOf(Length element, [int start]) {
3808 if (start == null) start = length - 1; 3808 if (start == null) start = length - 1;
3809 return Lists.lastIndexOf(this, element, start); 3809 return Lists.lastIndexOf(this, element, start);
3810 } 3810 }
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
4457 Collections.filter(this, <Number>[], f); 4457 Collections.filter(this, <Number>[], f);
4458 4458
4459 bool every(bool f(Number element)) => Collections.every(this, f); 4459 bool every(bool f(Number element)) => Collections.every(this, f);
4460 4460
4461 bool some(bool f(Number element)) => Collections.some(this, f); 4461 bool some(bool f(Number element)) => Collections.some(this, f);
4462 4462
4463 bool get isEmpty => this.length == 0; 4463 bool get isEmpty => this.length == 0;
4464 4464
4465 // From List<Number>: 4465 // From List<Number>:
4466 4466
4467 void sort([Comparator<Number> compare = Comparable.compare]) { 4467 void sort([int compare(Number a, Number b)]) {
4468 throw new UnsupportedError("Cannot sort immutable List."); 4468 throw new UnsupportedError("Cannot sort immutable List.");
4469 } 4469 }
4470 4470
4471 int indexOf(Number element, [int start = 0]) => 4471 int indexOf(Number element, [int start = 0]) =>
4472 Lists.indexOf(this, element, start, this.length); 4472 Lists.indexOf(this, element, start, this.length);
4473 4473
4474 int lastIndexOf(Number element, [int start]) { 4474 int lastIndexOf(Number element, [int start]) {
4475 if (start == null) start = length - 1; 4475 if (start == null) start = length - 1;
4476 return Lists.lastIndexOf(this, element, start); 4476 return Lists.lastIndexOf(this, element, start);
4477 } 4477 }
(...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after
5536 Collections.filter(this, <PathSeg>[], f); 5536 Collections.filter(this, <PathSeg>[], f);
5537 5537
5538 bool every(bool f(PathSeg element)) => Collections.every(this, f); 5538 bool every(bool f(PathSeg element)) => Collections.every(this, f);
5539 5539
5540 bool some(bool f(PathSeg element)) => Collections.some(this, f); 5540 bool some(bool f(PathSeg element)) => Collections.some(this, f);
5541 5541
5542 bool get isEmpty => this.length == 0; 5542 bool get isEmpty => this.length == 0;
5543 5543
5544 // From List<PathSeg>: 5544 // From List<PathSeg>:
5545 5545
5546 void sort([Comparator<PathSeg> compare = Comparable.compare]) { 5546 void sort([int compare(PathSeg a, PathSeg b)]) {
5547 throw new UnsupportedError("Cannot sort immutable List."); 5547 throw new UnsupportedError("Cannot sort immutable List.");
5548 } 5548 }
5549 5549
5550 int indexOf(PathSeg element, [int start = 0]) => 5550 int indexOf(PathSeg element, [int start = 0]) =>
5551 Lists.indexOf(this, element, start, this.length); 5551 Lists.indexOf(this, element, start, this.length);
5552 5552
5553 int lastIndexOf(PathSeg element, [int start]) { 5553 int lastIndexOf(PathSeg element, [int start]) {
5554 if (start == null) start = length - 1; 5554 if (start == null) start = length - 1;
5555 return Lists.lastIndexOf(this, element, start); 5555 return Lists.lastIndexOf(this, element, start);
5556 } 5556 }
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after
6453 Collections.filter(this, <String>[], f); 6453 Collections.filter(this, <String>[], f);
6454 6454
6455 bool every(bool f(String element)) => Collections.every(this, f); 6455 bool every(bool f(String element)) => Collections.every(this, f);
6456 6456
6457 bool some(bool f(String element)) => Collections.some(this, f); 6457 bool some(bool f(String element)) => Collections.some(this, f);
6458 6458
6459 bool get isEmpty => this.length == 0; 6459 bool get isEmpty => this.length == 0;
6460 6460
6461 // From List<String>: 6461 // From List<String>:
6462 6462
6463 void sort([Comparator<String> compare = Comparable.compare]) { 6463 void sort([int compare(String a, String b)]) {
6464 throw new UnsupportedError("Cannot sort immutable List."); 6464 throw new UnsupportedError("Cannot sort immutable List.");
6465 } 6465 }
6466 6466
6467 int indexOf(String element, [int start = 0]) => 6467 int indexOf(String element, [int start = 0]) =>
6468 Lists.indexOf(this, element, start, this.length); 6468 Lists.indexOf(this, element, start, this.length);
6469 6469
6470 int lastIndexOf(String element, [int start]) { 6470 int lastIndexOf(String element, [int start]) {
6471 if (start == null) start = length - 1; 6471 if (start == null) start = length - 1;
6472 return Lists.lastIndexOf(this, element, start); 6472 return Lists.lastIndexOf(this, element, start);
6473 } 6473 }
(...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after
7664 Collections.filter(this, <Transform>[], f); 7664 Collections.filter(this, <Transform>[], f);
7665 7665
7666 bool every(bool f(Transform element)) => Collections.every(this, f); 7666 bool every(bool f(Transform element)) => Collections.every(this, f);
7667 7667
7668 bool some(bool f(Transform element)) => Collections.some(this, f); 7668 bool some(bool f(Transform element)) => Collections.some(this, f);
7669 7669
7670 bool get isEmpty => this.length == 0; 7670 bool get isEmpty => this.length == 0;
7671 7671
7672 // From List<Transform>: 7672 // From List<Transform>:
7673 7673
7674 void sort([Comparator<Transform> compare = Comparable.compare]) { 7674 void sort([int compare(Transform a, Transform b)]) {
7675 throw new UnsupportedError("Cannot sort immutable List."); 7675 throw new UnsupportedError("Cannot sort immutable List.");
7676 } 7676 }
7677 7677
7678 int indexOf(Transform element, [int start = 0]) => 7678 int indexOf(Transform element, [int start = 0]) =>
7679 Lists.indexOf(this, element, start, this.length); 7679 Lists.indexOf(this, element, start, this.length);
7680 7680
7681 int lastIndexOf(Transform element, [int start]) { 7681 int lastIndexOf(Transform element, [int start]) {
7682 if (start == null) start = length - 1; 7682 if (start == null) start = length - 1;
7683 return Lists.lastIndexOf(this, element, start); 7683 return Lists.lastIndexOf(this, element, start);
7684 } 7684 }
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
8163 Collections.filter(this, <ElementInstance>[], f); 8163 Collections.filter(this, <ElementInstance>[], f);
8164 8164
8165 bool every(bool f(ElementInstance element)) => Collections.every(this, f); 8165 bool every(bool f(ElementInstance element)) => Collections.every(this, f);
8166 8166
8167 bool some(bool f(ElementInstance element)) => Collections.some(this, f); 8167 bool some(bool f(ElementInstance element)) => Collections.some(this, f);
8168 8168
8169 bool get isEmpty => this.length == 0; 8169 bool get isEmpty => this.length == 0;
8170 8170
8171 // From List<ElementInstance>: 8171 // From List<ElementInstance>:
8172 8172
8173 void sort([Comparator<ElementInstance> compare = Comparable.compare]) { 8173 void sort([int compare(ElementInstance a, ElementInstance b)]) {
8174 throw new UnsupportedError("Cannot sort immutable List."); 8174 throw new UnsupportedError("Cannot sort immutable List.");
8175 } 8175 }
8176 8176
8177 int indexOf(ElementInstance element, [int start = 0]) => 8177 int indexOf(ElementInstance element, [int start = 0]) =>
8178 Lists.indexOf(this, element, start, this.length); 8178 Lists.indexOf(this, element, start, this.length);
8179 8179
8180 int lastIndexOf(ElementInstance element, [int start]) { 8180 int lastIndexOf(ElementInstance element, [int start]) {
8181 if (start == null) start = length - 1; 8181 if (start == null) start = length - 1;
8182 return Lists.lastIndexOf(this, element, start); 8182 return Lists.lastIndexOf(this, element, start);
8183 } 8183 }
(...skipping 25 matching lines...) Expand all
8209 List<ElementInstance> getRange(int start, int rangeLength) => 8209 List<ElementInstance> getRange(int start, int rangeLength) =>
8210 Lists.getRange(this, start, rangeLength, <ElementInstance>[]); 8210 Lists.getRange(this, start, rangeLength, <ElementInstance>[]);
8211 8211
8212 // -- end List<ElementInstance> mixins. 8212 // -- end List<ElementInstance> mixins.
8213 8213
8214 8214
8215 /** @domName SVGElementInstanceList.item */ 8215 /** @domName SVGElementInstanceList.item */
8216 ElementInstance item(int index) native "SVGElementInstanceList_item_Callback"; 8216 ElementInstance item(int index) native "SVGElementInstanceList_item_Callback";
8217 8217
8218 } 8218 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698