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

Side by Side Diff: sdk/lib/svg/dart2js/svg_dart2js.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 // DO NOT EDIT 4 // DO NOT EDIT
5 // Auto-generated dart:svg library. 5 // Auto-generated dart:svg library.
6 6
7 7
8 8
9 9
10 10
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 } 342 }
343 343
344 void addAll(Collection<SVGAnimatedLength> collection) { 344 void addAll(Collection<SVGAnimatedLength> collection) {
345 throw new UnsupportedError("Cannot add to immutable List."); 345 throw new UnsupportedError("Cannot add to immutable List.");
346 } 346 }
347 347
348 bool contains(SVGAnimatedLength element) => _Collections.contains(this, elemen t); 348 bool contains(SVGAnimatedLength element) => _Collections.contains(this, elemen t);
349 349
350 void forEach(void f(SVGAnimatedLength element)) => _Collections.forEach(this, f); 350 void forEach(void f(SVGAnimatedLength element)) => _Collections.forEach(this, f);
351 351
352 Collection mappedBy(f(SVGAnimatedLength element)) => _Collections.mappedBy(thi s, [], f); 352 Iterable mappedBy(f(SVGAnimatedLength element)) => new MappedIterable(this, f) ;
353 353
354 Collection<SVGAnimatedLength> where(bool f(SVGAnimatedLength element)) => 354 Collection<SVGAnimatedLength> where(bool f(SVGAnimatedLength element)) =>
355 _Collections.where(this, <SVGAnimatedLength>[], f); 355 _Collections.where(this, <SVGAnimatedLength>[], f);
356 356
357 bool every(bool f(SVGAnimatedLength element)) => _Collections.every(this, f); 357 bool every(bool f(SVGAnimatedLength element)) => _Collections.every(this, f);
358 358
359 bool some(bool f(SVGAnimatedLength element)) => _Collections.some(this, f); 359 bool some(bool f(SVGAnimatedLength element)) => _Collections.some(this, f);
360 360
361 bool get isEmpty => this.length == 0; 361 bool get isEmpty => this.length == 0;
362 362
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 } 453 }
454 454
455 void addAll(Collection<SVGAnimatedNumber> collection) { 455 void addAll(Collection<SVGAnimatedNumber> collection) {
456 throw new UnsupportedError("Cannot add to immutable List."); 456 throw new UnsupportedError("Cannot add to immutable List.");
457 } 457 }
458 458
459 bool contains(SVGAnimatedNumber element) => _Collections.contains(this, elemen t); 459 bool contains(SVGAnimatedNumber element) => _Collections.contains(this, elemen t);
460 460
461 void forEach(void f(SVGAnimatedNumber element)) => _Collections.forEach(this, f); 461 void forEach(void f(SVGAnimatedNumber element)) => _Collections.forEach(this, f);
462 462
463 Collection mappedBy(f(SVGAnimatedNumber element)) => _Collections.mappedBy(thi s, [], f); 463 Iterable mappedBy(f(SVGAnimatedNumber element)) => new MappedIterable(this, f) ;
464 464
465 Collection<SVGAnimatedNumber> where(bool f(SVGAnimatedNumber element)) => 465 Collection<SVGAnimatedNumber> where(bool f(SVGAnimatedNumber element)) =>
466 _Collections.where(this, <SVGAnimatedNumber>[], f); 466 _Collections.where(this, <SVGAnimatedNumber>[], f);
467 467
468 bool every(bool f(SVGAnimatedNumber element)) => _Collections.every(this, f); 468 bool every(bool f(SVGAnimatedNumber element)) => _Collections.every(this, f);
469 469
470 bool some(bool f(SVGAnimatedNumber element)) => _Collections.some(this, f); 470 bool some(bool f(SVGAnimatedNumber element)) => _Collections.some(this, f);
471 471
472 bool get isEmpty => this.length == 0; 472 bool get isEmpty => this.length == 0;
473 473
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 } 592 }
593 593
594 void addAll(Collection<SVGAnimateTransformElement> collection) { 594 void addAll(Collection<SVGAnimateTransformElement> collection) {
595 throw new UnsupportedError("Cannot add to immutable List."); 595 throw new UnsupportedError("Cannot add to immutable List.");
596 } 596 }
597 597
598 bool contains(SVGAnimateTransformElement element) => _Collections.contains(thi s, element); 598 bool contains(SVGAnimateTransformElement element) => _Collections.contains(thi s, element);
599 599
600 void forEach(void f(SVGAnimateTransformElement element)) => _Collections.forEa ch(this, f); 600 void forEach(void f(SVGAnimateTransformElement element)) => _Collections.forEa ch(this, f);
601 601
602 Collection mappedBy(f(SVGAnimateTransformElement element)) => _Collections.map pedBy(this, [], f); 602 Iterable mappedBy(f(SVGAnimateTransformElement element)) => new MappedIterable (this, f);
603 603
604 Collection<SVGAnimateTransformElement> where(bool f(SVGAnimateTransformElement element)) => 604 Collection<SVGAnimateTransformElement> where(bool f(SVGAnimateTransformElement element)) =>
605 _Collections.where(this, <SVGAnimateTransformElement>[], f); 605 _Collections.where(this, <SVGAnimateTransformElement>[], f);
606 606
607 bool every(bool f(SVGAnimateTransformElement element)) => _Collections.every(t his, f); 607 bool every(bool f(SVGAnimateTransformElement element)) => _Collections.every(t his, f);
608 608
609 bool some(bool f(SVGAnimateTransformElement element)) => _Collections.some(thi s, f); 609 bool some(bool f(SVGAnimateTransformElement element)) => _Collections.some(thi s, f);
610 610
611 bool get isEmpty => this.length == 0; 611 bool get isEmpty => this.length == 0;
612 612
(...skipping 2400 matching lines...) Expand 10 before | Expand all | Expand 10 after
3013 } 3013 }
3014 3014
3015 void addAll(Collection<SVGLength> collection) { 3015 void addAll(Collection<SVGLength> collection) {
3016 throw new UnsupportedError("Cannot add to immutable List."); 3016 throw new UnsupportedError("Cannot add to immutable List.");
3017 } 3017 }
3018 3018
3019 bool contains(SVGLength element) => _Collections.contains(this, element); 3019 bool contains(SVGLength element) => _Collections.contains(this, element);
3020 3020
3021 void forEach(void f(SVGLength element)) => _Collections.forEach(this, f); 3021 void forEach(void f(SVGLength element)) => _Collections.forEach(this, f);
3022 3022
3023 Collection mappedBy(f(SVGLength element)) => _Collections.mappedBy(this, [], f ); 3023 Iterable mappedBy(f(SVGLength element)) => new MappedIterable(this, f);
3024 3024
3025 Collection<SVGLength> where(bool f(SVGLength element)) => 3025 Collection<SVGLength> where(bool f(SVGLength element)) =>
3026 _Collections.where(this, <SVGLength>[], f); 3026 _Collections.where(this, <SVGLength>[], f);
3027 3027
3028 bool every(bool f(SVGLength element)) => _Collections.every(this, f); 3028 bool every(bool f(SVGLength element)) => _Collections.every(this, f);
3029 3029
3030 bool some(bool f(SVGLength element)) => _Collections.some(this, f); 3030 bool some(bool f(SVGLength element)) => _Collections.some(this, f);
3031 3031
3032 bool get isEmpty => this.length == 0; 3032 bool get isEmpty => this.length == 0;
3033 3033
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
3502 } 3502 }
3503 3503
3504 void addAll(Collection<SVGNumber> collection) { 3504 void addAll(Collection<SVGNumber> collection) {
3505 throw new UnsupportedError("Cannot add to immutable List."); 3505 throw new UnsupportedError("Cannot add to immutable List.");
3506 } 3506 }
3507 3507
3508 bool contains(SVGNumber element) => _Collections.contains(this, element); 3508 bool contains(SVGNumber element) => _Collections.contains(this, element);
3509 3509
3510 void forEach(void f(SVGNumber element)) => _Collections.forEach(this, f); 3510 void forEach(void f(SVGNumber element)) => _Collections.forEach(this, f);
3511 3511
3512 Collection mappedBy(f(SVGNumber element)) => _Collections.mappedBy(this, [], f ); 3512 Iterable mappedBy(f(SVGNumber element)) => new MappedIterable(this, f);
3513 3513
3514 Collection<SVGNumber> where(bool f(SVGNumber element)) => 3514 Collection<SVGNumber> where(bool f(SVGNumber element)) =>
3515 _Collections.where(this, <SVGNumber>[], f); 3515 _Collections.where(this, <SVGNumber>[], f);
3516 3516
3517 bool every(bool f(SVGNumber element)) => _Collections.every(this, f); 3517 bool every(bool f(SVGNumber element)) => _Collections.every(this, f);
3518 3518
3519 bool some(bool f(SVGNumber element)) => _Collections.some(this, f); 3519 bool some(bool f(SVGNumber element)) => _Collections.some(this, f);
3520 3520
3521 bool get isEmpty => this.length == 0; 3521 bool get isEmpty => this.length == 0;
3522 3522
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
4161 } 4161 }
4162 4162
4163 void addAll(Collection<SVGPathSeg> collection) { 4163 void addAll(Collection<SVGPathSeg> collection) {
4164 throw new UnsupportedError("Cannot add to immutable List."); 4164 throw new UnsupportedError("Cannot add to immutable List.");
4165 } 4165 }
4166 4166
4167 bool contains(SVGPathSeg element) => _Collections.contains(this, element); 4167 bool contains(SVGPathSeg element) => _Collections.contains(this, element);
4168 4168
4169 void forEach(void f(SVGPathSeg element)) => _Collections.forEach(this, f); 4169 void forEach(void f(SVGPathSeg element)) => _Collections.forEach(this, f);
4170 4170
4171 Collection mappedBy(f(SVGPathSeg element)) => _Collections.mappedBy(this, [], f); 4171 Iterable mappedBy(f(SVGPathSeg element)) => new MappedIterable(this, f);
4172 4172
4173 Collection<SVGPathSeg> where(bool f(SVGPathSeg element)) => 4173 Collection<SVGPathSeg> where(bool f(SVGPathSeg element)) =>
4174 _Collections.where(this, <SVGPathSeg>[], f); 4174 _Collections.where(this, <SVGPathSeg>[], f);
4175 4175
4176 bool every(bool f(SVGPathSeg element)) => _Collections.every(this, f); 4176 bool every(bool f(SVGPathSeg element)) => _Collections.every(this, f);
4177 4177
4178 bool some(bool f(SVGPathSeg element)) => _Collections.some(this, f); 4178 bool some(bool f(SVGPathSeg element)) => _Collections.some(this, f);
4179 4179
4180 bool get isEmpty => this.length == 0; 4180 bool get isEmpty => this.length == 0;
4181 4181
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after
5030 } 5030 }
5031 5031
5032 void addAll(Collection<String> collection) { 5032 void addAll(Collection<String> collection) {
5033 throw new UnsupportedError("Cannot add to immutable List."); 5033 throw new UnsupportedError("Cannot add to immutable List.");
5034 } 5034 }
5035 5035
5036 bool contains(String element) => _Collections.contains(this, element); 5036 bool contains(String element) => _Collections.contains(this, element);
5037 5037
5038 void forEach(void f(String element)) => _Collections.forEach(this, f); 5038 void forEach(void f(String element)) => _Collections.forEach(this, f);
5039 5039
5040 Collection mappedBy(f(String element)) => _Collections.mappedBy(this, [], f); 5040 Iterable mappedBy(f(String element)) => new MappedIterable(this, f);
5041 5041
5042 Collection<String> where(bool f(String element)) => 5042 Collection<String> where(bool f(String element)) =>
5043 _Collections.where(this, <String>[], f); 5043 _Collections.where(this, <String>[], f);
5044 5044
5045 bool every(bool f(String element)) => _Collections.every(this, f); 5045 bool every(bool f(String element)) => _Collections.every(this, f);
5046 5046
5047 bool some(bool f(String element)) => _Collections.some(this, f); 5047 bool some(bool f(String element)) => _Collections.some(this, f);
5048 5048
5049 bool get isEmpty => this.length == 0; 5049 bool get isEmpty => this.length == 0;
5050 5050
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
5594 } 5594 }
5595 5595
5596 void addAll(Collection<SVGTransform> collection) { 5596 void addAll(Collection<SVGTransform> collection) {
5597 throw new UnsupportedError("Cannot add to immutable List."); 5597 throw new UnsupportedError("Cannot add to immutable List.");
5598 } 5598 }
5599 5599
5600 bool contains(SVGTransform element) => _Collections.contains(this, element); 5600 bool contains(SVGTransform element) => _Collections.contains(this, element);
5601 5601
5602 void forEach(void f(SVGTransform element)) => _Collections.forEach(this, f); 5602 void forEach(void f(SVGTransform element)) => _Collections.forEach(this, f);
5603 5603
5604 Collection mappedBy(f(SVGTransform element)) => _Collections.mappedBy(this, [] , f); 5604 Iterable mappedBy(f(SVGTransform element)) => new MappedIterable(this, f);
5605 5605
5606 Collection<SVGTransform> where(bool f(SVGTransform element)) => 5606 Collection<SVGTransform> where(bool f(SVGTransform element)) =>
5607 _Collections.where(this, <SVGTransform>[], f); 5607 _Collections.where(this, <SVGTransform>[], f);
5608 5608
5609 bool every(bool f(SVGTransform element)) => _Collections.every(this, f); 5609 bool every(bool f(SVGTransform element)) => _Collections.every(this, f);
5610 5610
5611 bool some(bool f(SVGTransform element)) => _Collections.some(this, f); 5611 bool some(bool f(SVGTransform element)) => _Collections.some(this, f);
5612 5612
5613 bool get isEmpty => this.length == 0; 5613 bool get isEmpty => this.length == 0;
5614 5614
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
5972 } 5972 }
5973 5973
5974 void addAll(Collection<SVGElementInstance> collection) { 5974 void addAll(Collection<SVGElementInstance> collection) {
5975 throw new UnsupportedError("Cannot add to immutable List."); 5975 throw new UnsupportedError("Cannot add to immutable List.");
5976 } 5976 }
5977 5977
5978 bool contains(SVGElementInstance element) => _Collections.contains(this, eleme nt); 5978 bool contains(SVGElementInstance element) => _Collections.contains(this, eleme nt);
5979 5979
5980 void forEach(void f(SVGElementInstance element)) => _Collections.forEach(this, f); 5980 void forEach(void f(SVGElementInstance element)) => _Collections.forEach(this, f);
5981 5981
5982 Collection mappedBy(f(SVGElementInstance element)) => _Collections.mappedBy(th is, [], f); 5982 Iterable mappedBy(f(SVGElementInstance element)) => new MappedIterable(this, f );
5983 5983
5984 Collection<SVGElementInstance> where(bool f(SVGElementInstance element)) => 5984 Collection<SVGElementInstance> where(bool f(SVGElementInstance element)) =>
5985 _Collections.where(this, <SVGElementInstance>[], f); 5985 _Collections.where(this, <SVGElementInstance>[], f);
5986 5986
5987 bool every(bool f(SVGElementInstance element)) => _Collections.every(this, f); 5987 bool every(bool f(SVGElementInstance element)) => _Collections.every(this, f);
5988 5988
5989 bool some(bool f(SVGElementInstance element)) => _Collections.some(this, f); 5989 bool some(bool f(SVGElementInstance element)) => _Collections.some(this, f);
5990 5990
5991 bool get isEmpty => this.length == 0; 5991 bool get isEmpty => this.length == 0;
5992 5992
(...skipping 30 matching lines...) Expand all
6023 } 6023 }
6024 6024
6025 List<SVGElementInstance> getRange(int start, int rangeLength) => 6025 List<SVGElementInstance> getRange(int start, int rangeLength) =>
6026 _Lists.getRange(this, start, rangeLength, <SVGElementInstance>[]); 6026 _Lists.getRange(this, start, rangeLength, <SVGElementInstance>[]);
6027 6027
6028 // -- end List<SVGElementInstance> mixins. 6028 // -- end List<SVGElementInstance> mixins.
6029 6029
6030 /** @domName SVGElementInstanceList.item */ 6030 /** @domName SVGElementInstanceList.item */
6031 SVGElementInstance item(int index) native; 6031 SVGElementInstance item(int index) native;
6032 } 6032 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698