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

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

Issue 11414069: Make mappedBy lazy. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload due to error. 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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 } 466 }
467 467
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 Collection mappedBy(f(SVGAnimatedLength element)) => _Collections.mappedBy(thi s, [], f); 476 Iterable mappedBy(f(SVGAnimatedLength element)) => new MappedIterable(this, f) ;
477 477
478 Collection<SVGAnimatedLength> where(bool f(SVGAnimatedLength element)) => 478 Collection<SVGAnimatedLength> where(bool f(SVGAnimatedLength element)) =>
479 _Collections.where(this, <SVGAnimatedLength>[], f); 479 _Collections.where(this, <SVGAnimatedLength>[], f);
480 480
481 bool every(bool f(SVGAnimatedLength element)) => _Collections.every(this, f); 481 bool every(bool f(SVGAnimatedLength element)) => _Collections.every(this, f);
482 482
483 bool some(bool f(SVGAnimatedLength element)) => _Collections.some(this, f); 483 bool some(bool f(SVGAnimatedLength element)) => _Collections.some(this, f);
484 484
485 bool get isEmpty => this.length == 0; 485 bool get isEmpty => this.length == 0;
486 486
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 } 593 }
594 594
595 void addAll(Collection<SVGAnimatedNumber> collection) { 595 void addAll(Collection<SVGAnimatedNumber> collection) {
596 throw new UnsupportedError("Cannot add to immutable List."); 596 throw new UnsupportedError("Cannot add to immutable List.");
597 } 597 }
598 598
599 bool contains(SVGAnimatedNumber element) => _Collections.contains(this, elemen t); 599 bool contains(SVGAnimatedNumber element) => _Collections.contains(this, elemen t);
600 600
601 void forEach(void f(SVGAnimatedNumber element)) => _Collections.forEach(this, f); 601 void forEach(void f(SVGAnimatedNumber element)) => _Collections.forEach(this, f);
602 602
603 Collection mappedBy(f(SVGAnimatedNumber element)) => _Collections.mappedBy(thi s, [], f); 603 Iterable mappedBy(f(SVGAnimatedNumber element)) => new MappedIterable(this, f) ;
604 604
605 Collection<SVGAnimatedNumber> where(bool f(SVGAnimatedNumber element)) => 605 Collection<SVGAnimatedNumber> where(bool f(SVGAnimatedNumber element)) =>
606 _Collections.where(this, <SVGAnimatedNumber>[], f); 606 _Collections.where(this, <SVGAnimatedNumber>[], f);
607 607
608 bool every(bool f(SVGAnimatedNumber element)) => _Collections.every(this, f); 608 bool every(bool f(SVGAnimatedNumber element)) => _Collections.every(this, f);
609 609
610 bool some(bool f(SVGAnimatedNumber element)) => _Collections.some(this, f); 610 bool some(bool f(SVGAnimatedNumber element)) => _Collections.some(this, f);
611 611
612 bool get isEmpty => this.length == 0; 612 bool get isEmpty => this.length == 0;
613 613
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 } 760 }
761 761
762 void addAll(Collection<SVGAnimateTransformElement> collection) { 762 void addAll(Collection<SVGAnimateTransformElement> collection) {
763 throw new UnsupportedError("Cannot add to immutable List."); 763 throw new UnsupportedError("Cannot add to immutable List.");
764 } 764 }
765 765
766 bool contains(SVGAnimateTransformElement element) => _Collections.contains(thi s, element); 766 bool contains(SVGAnimateTransformElement element) => _Collections.contains(thi s, element);
767 767
768 void forEach(void f(SVGAnimateTransformElement element)) => _Collections.forEa ch(this, f); 768 void forEach(void f(SVGAnimateTransformElement element)) => _Collections.forEa ch(this, f);
769 769
770 Collection mappedBy(f(SVGAnimateTransformElement element)) => _Collections.map pedBy(this, [], f); 770 Iterable mappedBy(f(SVGAnimateTransformElement element)) => new MappedIterable (this, f);
771 771
772 Collection<SVGAnimateTransformElement> where(bool f(SVGAnimateTransformElement element)) => 772 Collection<SVGAnimateTransformElement> where(bool f(SVGAnimateTransformElement element)) =>
773 _Collections.where(this, <SVGAnimateTransformElement>[], f); 773 _Collections.where(this, <SVGAnimateTransformElement>[], f);
774 774
775 bool every(bool f(SVGAnimateTransformElement element)) => _Collections.every(t his, f); 775 bool every(bool f(SVGAnimateTransformElement element)) => _Collections.every(t his, f);
776 776
777 bool some(bool f(SVGAnimateTransformElement element)) => _Collections.some(thi s, f); 777 bool some(bool f(SVGAnimateTransformElement element)) => _Collections.some(thi s, f);
778 778
779 bool get isEmpty => this.length == 0; 779 bool get isEmpty => this.length == 0;
780 780
(...skipping 3038 matching lines...) Expand 10 before | Expand all | Expand 10 after
3819 } 3819 }
3820 3820
3821 void addAll(Collection<SVGLength> collection) { 3821 void addAll(Collection<SVGLength> collection) {
3822 throw new UnsupportedError("Cannot add to immutable List."); 3822 throw new UnsupportedError("Cannot add to immutable List.");
3823 } 3823 }
3824 3824
3825 bool contains(SVGLength element) => _Collections.contains(this, element); 3825 bool contains(SVGLength element) => _Collections.contains(this, element);
3826 3826
3827 void forEach(void f(SVGLength element)) => _Collections.forEach(this, f); 3827 void forEach(void f(SVGLength element)) => _Collections.forEach(this, f);
3828 3828
3829 Collection mappedBy(f(SVGLength element)) => _Collections.mappedBy(this, [], f ); 3829 Iterable mappedBy(f(SVGLength element)) => new MappedIterable(this, f);
3830 3830
3831 Collection<SVGLength> where(bool f(SVGLength element)) => 3831 Collection<SVGLength> where(bool f(SVGLength element)) =>
3832 _Collections.where(this, <SVGLength>[], f); 3832 _Collections.where(this, <SVGLength>[], f);
3833 3833
3834 bool every(bool f(SVGLength element)) => _Collections.every(this, f); 3834 bool every(bool f(SVGLength element)) => _Collections.every(this, f);
3835 3835
3836 bool some(bool f(SVGLength element)) => _Collections.some(this, f); 3836 bool some(bool f(SVGLength element)) => _Collections.some(this, f);
3837 3837
3838 bool get isEmpty => this.length == 0; 3838 bool get isEmpty => this.length == 0;
3839 3839
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
4466 } 4466 }
4467 4467
4468 void addAll(Collection<SVGNumber> collection) { 4468 void addAll(Collection<SVGNumber> collection) {
4469 throw new UnsupportedError("Cannot add to immutable List."); 4469 throw new UnsupportedError("Cannot add to immutable List.");
4470 } 4470 }
4471 4471
4472 bool contains(SVGNumber element) => _Collections.contains(this, element); 4472 bool contains(SVGNumber element) => _Collections.contains(this, element);
4473 4473
4474 void forEach(void f(SVGNumber element)) => _Collections.forEach(this, f); 4474 void forEach(void f(SVGNumber element)) => _Collections.forEach(this, f);
4475 4475
4476 Collection mappedBy(f(SVGNumber element)) => _Collections.mappedBy(this, [], f ); 4476 Iterable mappedBy(f(SVGNumber element)) => new MappedIterable(this, f);
4477 4477
4478 Collection<SVGNumber> where(bool f(SVGNumber element)) => 4478 Collection<SVGNumber> where(bool f(SVGNumber element)) =>
4479 _Collections.where(this, <SVGNumber>[], f); 4479 _Collections.where(this, <SVGNumber>[], f);
4480 4480
4481 bool every(bool f(SVGNumber element)) => _Collections.every(this, f); 4481 bool every(bool f(SVGNumber element)) => _Collections.every(this, f);
4482 4482
4483 bool some(bool f(SVGNumber element)) => _Collections.some(this, f); 4483 bool some(bool f(SVGNumber element)) => _Collections.some(this, f);
4484 4484
4485 bool get isEmpty => this.length == 0; 4485 bool get isEmpty => this.length == 0;
4486 4486
(...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after
5533 } 5533 }
5534 5534
5535 void addAll(Collection<SVGPathSeg> collection) { 5535 void addAll(Collection<SVGPathSeg> collection) {
5536 throw new UnsupportedError("Cannot add to immutable List."); 5536 throw new UnsupportedError("Cannot add to immutable List.");
5537 } 5537 }
5538 5538
5539 bool contains(SVGPathSeg element) => _Collections.contains(this, element); 5539 bool contains(SVGPathSeg element) => _Collections.contains(this, element);
5540 5540
5541 void forEach(void f(SVGPathSeg element)) => _Collections.forEach(this, f); 5541 void forEach(void f(SVGPathSeg element)) => _Collections.forEach(this, f);
5542 5542
5543 Collection mappedBy(f(SVGPathSeg element)) => _Collections.mappedBy(this, [], f); 5543 Iterable mappedBy(f(SVGPathSeg element)) => new MappedIterable(this, f);
5544 5544
5545 Collection<SVGPathSeg> where(bool f(SVGPathSeg element)) => 5545 Collection<SVGPathSeg> where(bool f(SVGPathSeg element)) =>
5546 _Collections.where(this, <SVGPathSeg>[], f); 5546 _Collections.where(this, <SVGPathSeg>[], f);
5547 5547
5548 bool every(bool f(SVGPathSeg element)) => _Collections.every(this, f); 5548 bool every(bool f(SVGPathSeg element)) => _Collections.every(this, f);
5549 5549
5550 bool some(bool f(SVGPathSeg element)) => _Collections.some(this, f); 5550 bool some(bool f(SVGPathSeg element)) => _Collections.some(this, f);
5551 5551
5552 bool get isEmpty => this.length == 0; 5552 bool get isEmpty => this.length == 0;
5553 5553
(...skipping 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after
6687 } 6687 }
6688 6688
6689 void addAll(Collection<String> collection) { 6689 void addAll(Collection<String> collection) {
6690 throw new UnsupportedError("Cannot add to immutable List."); 6690 throw new UnsupportedError("Cannot add to immutable List.");
6691 } 6691 }
6692 6692
6693 bool contains(String element) => _Collections.contains(this, element); 6693 bool contains(String element) => _Collections.contains(this, element);
6694 6694
6695 void forEach(void f(String element)) => _Collections.forEach(this, f); 6695 void forEach(void f(String element)) => _Collections.forEach(this, f);
6696 6696
6697 Collection mappedBy(f(String element)) => _Collections.mappedBy(this, [], f); 6697 Iterable mappedBy(f(String element)) => new MappedIterable(this, f);
6698 6698
6699 Collection<String> where(bool f(String element)) => 6699 Collection<String> where(bool f(String element)) =>
6700 _Collections.where(this, <String>[], f); 6700 _Collections.where(this, <String>[], f);
6701 6701
6702 bool every(bool f(String element)) => _Collections.every(this, f); 6702 bool every(bool f(String element)) => _Collections.every(this, f);
6703 6703
6704 bool some(bool f(String element)) => _Collections.some(this, f); 6704 bool some(bool f(String element)) => _Collections.some(this, f);
6705 6705
6706 bool get isEmpty => this.length == 0; 6706 bool get isEmpty => this.length == 0;
6707 6707
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
7418 } 7418 }
7419 7419
7420 void addAll(Collection<SVGTransform> collection) { 7420 void addAll(Collection<SVGTransform> collection) {
7421 throw new UnsupportedError("Cannot add to immutable List."); 7421 throw new UnsupportedError("Cannot add to immutable List.");
7422 } 7422 }
7423 7423
7424 bool contains(SVGTransform element) => _Collections.contains(this, element); 7424 bool contains(SVGTransform element) => _Collections.contains(this, element);
7425 7425
7426 void forEach(void f(SVGTransform element)) => _Collections.forEach(this, f); 7426 void forEach(void f(SVGTransform element)) => _Collections.forEach(this, f);
7427 7427
7428 Collection mappedBy(f(SVGTransform element)) => _Collections.mappedBy(this, [] , f); 7428 Iterable mappedBy(f(SVGTransform element)) => new MappedIterable(this, f);
7429 7429
7430 Collection<SVGTransform> where(bool f(SVGTransform element)) => 7430 Collection<SVGTransform> where(bool f(SVGTransform element)) =>
7431 _Collections.where(this, <SVGTransform>[], f); 7431 _Collections.where(this, <SVGTransform>[], f);
7432 7432
7433 bool every(bool f(SVGTransform element)) => _Collections.every(this, f); 7433 bool every(bool f(SVGTransform element)) => _Collections.every(this, f);
7434 7434
7435 bool some(bool f(SVGTransform element)) => _Collections.some(this, f); 7435 bool some(bool f(SVGTransform element)) => _Collections.some(this, f);
7436 7436
7437 bool get isEmpty => this.length == 0; 7437 bool get isEmpty => this.length == 0;
7438 7438
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
7901 } 7901 }
7902 7902
7903 void addAll(Collection<SVGElementInstance> collection) { 7903 void addAll(Collection<SVGElementInstance> collection) {
7904 throw new UnsupportedError("Cannot add to immutable List."); 7904 throw new UnsupportedError("Cannot add to immutable List.");
7905 } 7905 }
7906 7906
7907 bool contains(SVGElementInstance element) => _Collections.contains(this, eleme nt); 7907 bool contains(SVGElementInstance element) => _Collections.contains(this, eleme nt);
7908 7908
7909 void forEach(void f(SVGElementInstance element)) => _Collections.forEach(this, f); 7909 void forEach(void f(SVGElementInstance element)) => _Collections.forEach(this, f);
7910 7910
7911 Collection mappedBy(f(SVGElementInstance element)) => _Collections.mappedBy(th is, [], f); 7911 Iterable mappedBy(f(SVGElementInstance element)) => new MappedIterable(this, f );
7912 7912
7913 Collection<SVGElementInstance> where(bool f(SVGElementInstance element)) => 7913 Collection<SVGElementInstance> where(bool f(SVGElementInstance element)) =>
7914 _Collections.where(this, <SVGElementInstance>[], f); 7914 _Collections.where(this, <SVGElementInstance>[], f);
7915 7915
7916 bool every(bool f(SVGElementInstance element)) => _Collections.every(this, f); 7916 bool every(bool f(SVGElementInstance element)) => _Collections.every(this, f);
7917 7917
7918 bool some(bool f(SVGElementInstance element)) => _Collections.some(this, f); 7918 bool some(bool f(SVGElementInstance element)) => _Collections.some(this, f);
7919 7919
7920 bool get isEmpty => this.length == 0; 7920 bool get isEmpty => this.length == 0;
7921 7921
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
7954 List<SVGElementInstance> getRange(int start, int rangeLength) => 7954 List<SVGElementInstance> getRange(int start, int rangeLength) =>
7955 _Lists.getRange(this, start, rangeLength, <SVGElementInstance>[]); 7955 _Lists.getRange(this, start, rangeLength, <SVGElementInstance>[]);
7956 7956
7957 // -- end List<SVGElementInstance> mixins. 7957 // -- end List<SVGElementInstance> mixins.
7958 7958
7959 7959
7960 /** @domName SVGElementInstanceList.item */ 7960 /** @domName SVGElementInstanceList.item */
7961 SVGElementInstance item(int index) native "SVGElementInstanceList_item_Callbac k"; 7961 SVGElementInstance item(int index) native "SVGElementInstanceList_item_Callbac k";
7962 7962
7963 } 7963 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698