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

Side by Side Diff: sdk/lib/svg/dartium/svg_dartium.dart

Issue 11412086: Make 'where' lazy. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: FilteredIterable/Iterator -> WhereIterable/Iterator. Created 8 years, 1 month 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:html'; 3 import 'dart:html';
4 import 'dart:nativewrappers'; 4 import 'dart:nativewrappers';
5 // DO NOT EDIT 5 // DO NOT EDIT
6 // Auto-generated dart:svg library. 6 // Auto-generated dart:svg library.
7 7
8 8
9 9
10 10
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 void addAll(Collection<SVGAnimatedLength> collection) { 468 void addAll(Collection<SVGAnimatedLength> collection) {
469 throw new UnsupportedError("Cannot add to immutable List."); 469 throw new UnsupportedError("Cannot add to immutable List.");
470 } 470 }
471 471
472 bool contains(SVGAnimatedLength element) => _Collections.contains(this, elemen t); 472 bool contains(SVGAnimatedLength element) => _Collections.contains(this, elemen t);
473 473
474 void forEach(void f(SVGAnimatedLength element)) => _Collections.forEach(this, f); 474 void forEach(void f(SVGAnimatedLength element)) => _Collections.forEach(this, f);
475 475
476 Iterable mappedBy(f(SVGAnimatedLength element)) => new MappedIterable(this, f) ; 476 Iterable mappedBy(f(SVGAnimatedLength element)) => new MappedIterable(this, f) ;
477 477
478 Collection<SVGAnimatedLength> where(bool f(SVGAnimatedLength element)) => 478 Iterable<SVGAnimatedLength> where(bool f(SVGAnimatedLength element)) => new Wh ereIterable<SVGAnimatedLength>(this, f);
479 _Collections.where(this, <SVGAnimatedLength>[], f);
480 479
481 bool every(bool f(SVGAnimatedLength element)) => _Collections.every(this, f); 480 bool every(bool f(SVGAnimatedLength element)) => _Collections.every(this, f);
482 481
483 bool some(bool f(SVGAnimatedLength element)) => _Collections.some(this, f); 482 bool some(bool f(SVGAnimatedLength element)) => _Collections.some(this, f);
484 483
485 bool get isEmpty => this.length == 0; 484 bool get isEmpty => this.length == 0;
486 485
487 // From List<SVGAnimatedLength>: 486 // From List<SVGAnimatedLength>:
488 487
489 void sort([Comparator<SVGAnimatedLength> compare = Comparable.compare]) { 488 void sort([Comparator<SVGAnimatedLength> compare = Comparable.compare]) {
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 void addAll(Collection<SVGAnimatedNumber> collection) { 594 void addAll(Collection<SVGAnimatedNumber> collection) {
596 throw new UnsupportedError("Cannot add to immutable List."); 595 throw new UnsupportedError("Cannot add to immutable List.");
597 } 596 }
598 597
599 bool contains(SVGAnimatedNumber element) => _Collections.contains(this, elemen t); 598 bool contains(SVGAnimatedNumber element) => _Collections.contains(this, elemen t);
600 599
601 void forEach(void f(SVGAnimatedNumber element)) => _Collections.forEach(this, f); 600 void forEach(void f(SVGAnimatedNumber element)) => _Collections.forEach(this, f);
602 601
603 Iterable mappedBy(f(SVGAnimatedNumber element)) => new MappedIterable(this, f) ; 602 Iterable mappedBy(f(SVGAnimatedNumber element)) => new MappedIterable(this, f) ;
604 603
605 Collection<SVGAnimatedNumber> where(bool f(SVGAnimatedNumber element)) => 604 Iterable<SVGAnimatedNumber> where(bool f(SVGAnimatedNumber element)) => new Wh ereIterable<SVGAnimatedNumber>(this, f);
606 _Collections.where(this, <SVGAnimatedNumber>[], f);
607 605
608 bool every(bool f(SVGAnimatedNumber element)) => _Collections.every(this, f); 606 bool every(bool f(SVGAnimatedNumber element)) => _Collections.every(this, f);
609 607
610 bool some(bool f(SVGAnimatedNumber element)) => _Collections.some(this, f); 608 bool some(bool f(SVGAnimatedNumber element)) => _Collections.some(this, f);
611 609
612 bool get isEmpty => this.length == 0; 610 bool get isEmpty => this.length == 0;
613 611
614 // From List<SVGAnimatedNumber>: 612 // From List<SVGAnimatedNumber>:
615 613
616 void sort([Comparator<SVGAnimatedNumber> compare = Comparable.compare]) { 614 void sort([Comparator<SVGAnimatedNumber> compare = Comparable.compare]) {
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 void addAll(Collection<SVGAnimateTransformElement> collection) { 760 void addAll(Collection<SVGAnimateTransformElement> collection) {
763 throw new UnsupportedError("Cannot add to immutable List."); 761 throw new UnsupportedError("Cannot add to immutable List.");
764 } 762 }
765 763
766 bool contains(SVGAnimateTransformElement element) => _Collections.contains(thi s, element); 764 bool contains(SVGAnimateTransformElement element) => _Collections.contains(thi s, element);
767 765
768 void forEach(void f(SVGAnimateTransformElement element)) => _Collections.forEa ch(this, f); 766 void forEach(void f(SVGAnimateTransformElement element)) => _Collections.forEa ch(this, f);
769 767
770 Iterable mappedBy(f(SVGAnimateTransformElement element)) => new MappedIterable (this, f); 768 Iterable mappedBy(f(SVGAnimateTransformElement element)) => new MappedIterable (this, f);
771 769
772 Collection<SVGAnimateTransformElement> where(bool f(SVGAnimateTransformElement element)) => 770 Iterable<SVGAnimateTransformElement> where(bool f(SVGAnimateTransformElement e lement)) => new WhereIterable<SVGAnimateTransformElement>(this, f);
773 _Collections.where(this, <SVGAnimateTransformElement>[], f);
774 771
775 bool every(bool f(SVGAnimateTransformElement element)) => _Collections.every(t his, f); 772 bool every(bool f(SVGAnimateTransformElement element)) => _Collections.every(t his, f);
776 773
777 bool some(bool f(SVGAnimateTransformElement element)) => _Collections.some(thi s, f); 774 bool some(bool f(SVGAnimateTransformElement element)) => _Collections.some(thi s, f);
778 775
779 bool get isEmpty => this.length == 0; 776 bool get isEmpty => this.length == 0;
780 777
781 // From List<SVGAnimateTransformElement>: 778 // From List<SVGAnimateTransformElement>:
782 779
783 void sort([Comparator<SVGAnimateTransformElement> compare = Comparable.compare ]) { 780 void sort([Comparator<SVGAnimateTransformElement> compare = Comparable.compare ]) {
(...skipping 3037 matching lines...) Expand 10 before | Expand all | Expand 10 after
3821 void addAll(Collection<SVGLength> collection) { 3818 void addAll(Collection<SVGLength> collection) {
3822 throw new UnsupportedError("Cannot add to immutable List."); 3819 throw new UnsupportedError("Cannot add to immutable List.");
3823 } 3820 }
3824 3821
3825 bool contains(SVGLength element) => _Collections.contains(this, element); 3822 bool contains(SVGLength element) => _Collections.contains(this, element);
3826 3823
3827 void forEach(void f(SVGLength element)) => _Collections.forEach(this, f); 3824 void forEach(void f(SVGLength element)) => _Collections.forEach(this, f);
3828 3825
3829 Iterable mappedBy(f(SVGLength element)) => new MappedIterable(this, f); 3826 Iterable mappedBy(f(SVGLength element)) => new MappedIterable(this, f);
3830 3827
3831 Collection<SVGLength> where(bool f(SVGLength element)) => 3828 Iterable<SVGLength> where(bool f(SVGLength element)) => new WhereIterable<SVGL ength>(this, f);
3832 _Collections.where(this, <SVGLength>[], f);
3833 3829
3834 bool every(bool f(SVGLength element)) => _Collections.every(this, f); 3830 bool every(bool f(SVGLength element)) => _Collections.every(this, f);
3835 3831
3836 bool some(bool f(SVGLength element)) => _Collections.some(this, f); 3832 bool some(bool f(SVGLength element)) => _Collections.some(this, f);
3837 3833
3838 bool get isEmpty => this.length == 0; 3834 bool get isEmpty => this.length == 0;
3839 3835
3840 // From List<SVGLength>: 3836 // From List<SVGLength>:
3841 3837
3842 void sort([Comparator<SVGLength> compare = Comparable.compare]) { 3838 void sort([Comparator<SVGLength> compare = Comparable.compare]) {
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
4468 void addAll(Collection<SVGNumber> collection) { 4464 void addAll(Collection<SVGNumber> collection) {
4469 throw new UnsupportedError("Cannot add to immutable List."); 4465 throw new UnsupportedError("Cannot add to immutable List.");
4470 } 4466 }
4471 4467
4472 bool contains(SVGNumber element) => _Collections.contains(this, element); 4468 bool contains(SVGNumber element) => _Collections.contains(this, element);
4473 4469
4474 void forEach(void f(SVGNumber element)) => _Collections.forEach(this, f); 4470 void forEach(void f(SVGNumber element)) => _Collections.forEach(this, f);
4475 4471
4476 Iterable mappedBy(f(SVGNumber element)) => new MappedIterable(this, f); 4472 Iterable mappedBy(f(SVGNumber element)) => new MappedIterable(this, f);
4477 4473
4478 Collection<SVGNumber> where(bool f(SVGNumber element)) => 4474 Iterable<SVGNumber> where(bool f(SVGNumber element)) => new WhereIterable<SVGN umber>(this, f);
4479 _Collections.where(this, <SVGNumber>[], f);
4480 4475
4481 bool every(bool f(SVGNumber element)) => _Collections.every(this, f); 4476 bool every(bool f(SVGNumber element)) => _Collections.every(this, f);
4482 4477
4483 bool some(bool f(SVGNumber element)) => _Collections.some(this, f); 4478 bool some(bool f(SVGNumber element)) => _Collections.some(this, f);
4484 4479
4485 bool get isEmpty => this.length == 0; 4480 bool get isEmpty => this.length == 0;
4486 4481
4487 // From List<SVGNumber>: 4482 // From List<SVGNumber>:
4488 4483
4489 void sort([Comparator<SVGNumber> compare = Comparable.compare]) { 4484 void sort([Comparator<SVGNumber> compare = Comparable.compare]) {
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after
5535 void addAll(Collection<SVGPathSeg> collection) { 5530 void addAll(Collection<SVGPathSeg> collection) {
5536 throw new UnsupportedError("Cannot add to immutable List."); 5531 throw new UnsupportedError("Cannot add to immutable List.");
5537 } 5532 }
5538 5533
5539 bool contains(SVGPathSeg element) => _Collections.contains(this, element); 5534 bool contains(SVGPathSeg element) => _Collections.contains(this, element);
5540 5535
5541 void forEach(void f(SVGPathSeg element)) => _Collections.forEach(this, f); 5536 void forEach(void f(SVGPathSeg element)) => _Collections.forEach(this, f);
5542 5537
5543 Iterable mappedBy(f(SVGPathSeg element)) => new MappedIterable(this, f); 5538 Iterable mappedBy(f(SVGPathSeg element)) => new MappedIterable(this, f);
5544 5539
5545 Collection<SVGPathSeg> where(bool f(SVGPathSeg element)) => 5540 Iterable<SVGPathSeg> where(bool f(SVGPathSeg element)) => new WhereIterable<SV GPathSeg>(this, f);
5546 _Collections.where(this, <SVGPathSeg>[], f);
5547 5541
5548 bool every(bool f(SVGPathSeg element)) => _Collections.every(this, f); 5542 bool every(bool f(SVGPathSeg element)) => _Collections.every(this, f);
5549 5543
5550 bool some(bool f(SVGPathSeg element)) => _Collections.some(this, f); 5544 bool some(bool f(SVGPathSeg element)) => _Collections.some(this, f);
5551 5545
5552 bool get isEmpty => this.length == 0; 5546 bool get isEmpty => this.length == 0;
5553 5547
5554 // From List<SVGPathSeg>: 5548 // From List<SVGPathSeg>:
5555 5549
5556 void sort([Comparator<SVGPathSeg> compare = Comparable.compare]) { 5550 void sort([Comparator<SVGPathSeg> compare = Comparable.compare]) {
(...skipping 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after
6689 void addAll(Collection<String> collection) { 6683 void addAll(Collection<String> collection) {
6690 throw new UnsupportedError("Cannot add to immutable List."); 6684 throw new UnsupportedError("Cannot add to immutable List.");
6691 } 6685 }
6692 6686
6693 bool contains(String element) => _Collections.contains(this, element); 6687 bool contains(String element) => _Collections.contains(this, element);
6694 6688
6695 void forEach(void f(String element)) => _Collections.forEach(this, f); 6689 void forEach(void f(String element)) => _Collections.forEach(this, f);
6696 6690
6697 Iterable mappedBy(f(String element)) => new MappedIterable(this, f); 6691 Iterable mappedBy(f(String element)) => new MappedIterable(this, f);
6698 6692
6699 Collection<String> where(bool f(String element)) => 6693 Iterable<String> where(bool f(String element)) => new WhereIterable<String>(th is, f);
6700 _Collections.where(this, <String>[], f);
6701 6694
6702 bool every(bool f(String element)) => _Collections.every(this, f); 6695 bool every(bool f(String element)) => _Collections.every(this, f);
6703 6696
6704 bool some(bool f(String element)) => _Collections.some(this, f); 6697 bool some(bool f(String element)) => _Collections.some(this, f);
6705 6698
6706 bool get isEmpty => this.length == 0; 6699 bool get isEmpty => this.length == 0;
6707 6700
6708 // From List<String>: 6701 // From List<String>:
6709 6702
6710 void sort([Comparator<String> compare = Comparable.compare]) { 6703 void sort([Comparator<String> compare = Comparable.compare]) {
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after
7420 void addAll(Collection<SVGTransform> collection) { 7413 void addAll(Collection<SVGTransform> collection) {
7421 throw new UnsupportedError("Cannot add to immutable List."); 7414 throw new UnsupportedError("Cannot add to immutable List.");
7422 } 7415 }
7423 7416
7424 bool contains(SVGTransform element) => _Collections.contains(this, element); 7417 bool contains(SVGTransform element) => _Collections.contains(this, element);
7425 7418
7426 void forEach(void f(SVGTransform element)) => _Collections.forEach(this, f); 7419 void forEach(void f(SVGTransform element)) => _Collections.forEach(this, f);
7427 7420
7428 Iterable mappedBy(f(SVGTransform element)) => new MappedIterable(this, f); 7421 Iterable mappedBy(f(SVGTransform element)) => new MappedIterable(this, f);
7429 7422
7430 Collection<SVGTransform> where(bool f(SVGTransform element)) => 7423 Iterable<SVGTransform> where(bool f(SVGTransform element)) => new WhereIterabl e<SVGTransform>(this, f);
7431 _Collections.where(this, <SVGTransform>[], f);
7432 7424
7433 bool every(bool f(SVGTransform element)) => _Collections.every(this, f); 7425 bool every(bool f(SVGTransform element)) => _Collections.every(this, f);
7434 7426
7435 bool some(bool f(SVGTransform element)) => _Collections.some(this, f); 7427 bool some(bool f(SVGTransform element)) => _Collections.some(this, f);
7436 7428
7437 bool get isEmpty => this.length == 0; 7429 bool get isEmpty => this.length == 0;
7438 7430
7439 // From List<SVGTransform>: 7431 // From List<SVGTransform>:
7440 7432
7441 void sort([Comparator<SVGTransform> compare = Comparable.compare]) { 7433 void sort([Comparator<SVGTransform> compare = Comparable.compare]) {
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
7903 void addAll(Collection<SVGElementInstance> collection) { 7895 void addAll(Collection<SVGElementInstance> collection) {
7904 throw new UnsupportedError("Cannot add to immutable List."); 7896 throw new UnsupportedError("Cannot add to immutable List.");
7905 } 7897 }
7906 7898
7907 bool contains(SVGElementInstance element) => _Collections.contains(this, eleme nt); 7899 bool contains(SVGElementInstance element) => _Collections.contains(this, eleme nt);
7908 7900
7909 void forEach(void f(SVGElementInstance element)) => _Collections.forEach(this, f); 7901 void forEach(void f(SVGElementInstance element)) => _Collections.forEach(this, f);
7910 7902
7911 Iterable mappedBy(f(SVGElementInstance element)) => new MappedIterable(this, f ); 7903 Iterable mappedBy(f(SVGElementInstance element)) => new MappedIterable(this, f );
7912 7904
7913 Collection<SVGElementInstance> where(bool f(SVGElementInstance element)) => 7905 Iterable<SVGElementInstance> where(bool f(SVGElementInstance element)) => new WhereIterable<SVGElementInstance>(this, f);
7914 _Collections.where(this, <SVGElementInstance>[], f);
7915 7906
7916 bool every(bool f(SVGElementInstance element)) => _Collections.every(this, f); 7907 bool every(bool f(SVGElementInstance element)) => _Collections.every(this, f);
7917 7908
7918 bool some(bool f(SVGElementInstance element)) => _Collections.some(this, f); 7909 bool some(bool f(SVGElementInstance element)) => _Collections.some(this, f);
7919 7910
7920 bool get isEmpty => this.length == 0; 7911 bool get isEmpty => this.length == 0;
7921 7912
7922 // From List<SVGElementInstance>: 7913 // From List<SVGElementInstance>:
7923 7914
7924 void sort([Comparator<SVGElementInstance> compare = Comparable.compare]) { 7915 void sort([Comparator<SVGElementInstance> compare = Comparable.compare]) {
(...skipping 29 matching lines...) Expand all
7954 List<SVGElementInstance> getRange(int start, int rangeLength) => 7945 List<SVGElementInstance> getRange(int start, int rangeLength) =>
7955 _Lists.getRange(this, start, rangeLength, <SVGElementInstance>[]); 7946 _Lists.getRange(this, start, rangeLength, <SVGElementInstance>[]);
7956 7947
7957 // -- end List<SVGElementInstance> mixins. 7948 // -- end List<SVGElementInstance> mixins.
7958 7949
7959 7950
7960 /** @domName SVGElementInstanceList.item */ 7951 /** @domName SVGElementInstanceList.item */
7961 SVGElementInstance item(int index) native "SVGElementInstanceList_item_Callbac k"; 7952 SVGElementInstance item(int index) native "SVGElementInstanceList_item_Callbac k";
7962 7953
7963 } 7954 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698