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

Side by Side Diff: sdk/lib/svg/dart2js/svg_dart2js.dart

Issue 12328104: Change new List(n) to return fixed length list. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head. Created 7 years, 9 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
OLDNEW
1 library dart.dom.svg; 1 library dart.dom.svg;
2 2
3 import 'dart:async'; 3 import 'dart:async';
4 import 'dart:collection'; 4 import 'dart:collection';
5 import 'dart:html'; 5 import 'dart:html';
6 import 'dart:html_common'; 6 import 'dart:html_common';
7 import 'dart:_js_helper' show Creates, Returns, JavaScriptIndexingBehavior, JSNa me; 7 import 'dart:_js_helper' show Creates, Returns, JavaScriptIndexingBehavior, JSNa me;
8 import 'dart:_foreign_helper' show JS; 8 import 'dart:_foreign_helper' show JS;
9 // DO NOT EDIT - unless you are editing documentation as per: 9 // DO NOT EDIT - unless you are editing documentation as per:
10 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation 10 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
(...skipping 3075 matching lines...) Expand 10 before | Expand all | Expand 10 after
3086 Iterable<Length> where(bool f(Length element)) => 3086 Iterable<Length> where(bool f(Length element)) =>
3087 IterableMixinWorkaround.where(this, f); 3087 IterableMixinWorkaround.where(this, f);
3088 3088
3089 Iterable expand(Iterable f(Length element)) => 3089 Iterable expand(Iterable f(Length element)) =>
3090 IterableMixinWorkaround.expand(this, f); 3090 IterableMixinWorkaround.expand(this, f);
3091 3091
3092 bool every(bool f(Length element)) => IterableMixinWorkaround.every(this, f); 3092 bool every(bool f(Length element)) => IterableMixinWorkaround.every(this, f);
3093 3093
3094 bool any(bool f(Length element)) => IterableMixinWorkaround.any(this, f); 3094 bool any(bool f(Length element)) => IterableMixinWorkaround.any(this, f);
3095 3095
3096 List<Length> toList() => new List<Length>.from(this); 3096 List<Length> toList({ bool growable: false }) =>
3097 new List<Length>.from(this, growable: growable);
3098
3097 Set<Length> toSet() => new Set<Length>.from(this); 3099 Set<Length> toSet() => new Set<Length>.from(this);
3098 3100
3099 bool get isEmpty => this.length == 0; 3101 bool get isEmpty => this.length == 0;
3100 3102
3101 Iterable<Length> take(int n) => IterableMixinWorkaround.takeList(this, n); 3103 Iterable<Length> take(int n) => IterableMixinWorkaround.takeList(this, n);
3102 3104
3103 Iterable<Length> takeWhile(bool test(Length value)) { 3105 Iterable<Length> takeWhile(bool test(Length value)) {
3104 return IterableMixinWorkaround.takeWhile(this, test); 3106 return IterableMixinWorkaround.takeWhile(this, test);
3105 } 3107 }
3106 3108
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
3710 Iterable<Number> where(bool f(Number element)) => 3712 Iterable<Number> where(bool f(Number element)) =>
3711 IterableMixinWorkaround.where(this, f); 3713 IterableMixinWorkaround.where(this, f);
3712 3714
3713 Iterable expand(Iterable f(Number element)) => 3715 Iterable expand(Iterable f(Number element)) =>
3714 IterableMixinWorkaround.expand(this, f); 3716 IterableMixinWorkaround.expand(this, f);
3715 3717
3716 bool every(bool f(Number element)) => IterableMixinWorkaround.every(this, f); 3718 bool every(bool f(Number element)) => IterableMixinWorkaround.every(this, f);
3717 3719
3718 bool any(bool f(Number element)) => IterableMixinWorkaround.any(this, f); 3720 bool any(bool f(Number element)) => IterableMixinWorkaround.any(this, f);
3719 3721
3720 List<Number> toList() => new List<Number>.from(this); 3722 List<Number> toList({ bool growable: false }) =>
3723 new List<Number>.from(this, growable: growable);
3724
3721 Set<Number> toSet() => new Set<Number>.from(this); 3725 Set<Number> toSet() => new Set<Number>.from(this);
3722 3726
3723 bool get isEmpty => this.length == 0; 3727 bool get isEmpty => this.length == 0;
3724 3728
3725 Iterable<Number> take(int n) => IterableMixinWorkaround.takeList(this, n); 3729 Iterable<Number> take(int n) => IterableMixinWorkaround.takeList(this, n);
3726 3730
3727 Iterable<Number> takeWhile(bool test(Number value)) { 3731 Iterable<Number> takeWhile(bool test(Number value)) {
3728 return IterableMixinWorkaround.takeWhile(this, test); 3732 return IterableMixinWorkaround.takeWhile(this, test);
3729 } 3733 }
3730 3734
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after
4610 Iterable<PathSeg> where(bool f(PathSeg element)) => 4614 Iterable<PathSeg> where(bool f(PathSeg element)) =>
4611 IterableMixinWorkaround.where(this, f); 4615 IterableMixinWorkaround.where(this, f);
4612 4616
4613 Iterable expand(Iterable f(PathSeg element)) => 4617 Iterable expand(Iterable f(PathSeg element)) =>
4614 IterableMixinWorkaround.expand(this, f); 4618 IterableMixinWorkaround.expand(this, f);
4615 4619
4616 bool every(bool f(PathSeg element)) => IterableMixinWorkaround.every(this, f); 4620 bool every(bool f(PathSeg element)) => IterableMixinWorkaround.every(this, f);
4617 4621
4618 bool any(bool f(PathSeg element)) => IterableMixinWorkaround.any(this, f); 4622 bool any(bool f(PathSeg element)) => IterableMixinWorkaround.any(this, f);
4619 4623
4620 List<PathSeg> toList() => new List<PathSeg>.from(this); 4624 List<PathSeg> toList({ bool growable: false }) =>
4625 new List<PathSeg>.from(this, growable: growable);
4626
4621 Set<PathSeg> toSet() => new Set<PathSeg>.from(this); 4627 Set<PathSeg> toSet() => new Set<PathSeg>.from(this);
4622 4628
4623 bool get isEmpty => this.length == 0; 4629 bool get isEmpty => this.length == 0;
4624 4630
4625 Iterable<PathSeg> take(int n) => IterableMixinWorkaround.takeList(this, n); 4631 Iterable<PathSeg> take(int n) => IterableMixinWorkaround.takeList(this, n);
4626 4632
4627 Iterable<PathSeg> takeWhile(bool test(PathSeg value)) { 4633 Iterable<PathSeg> takeWhile(bool test(PathSeg value)) {
4628 return IterableMixinWorkaround.takeWhile(this, test); 4634 return IterableMixinWorkaround.takeWhile(this, test);
4629 } 4635 }
4630 4636
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after
5494 Iterable<String> where(bool f(String element)) => 5500 Iterable<String> where(bool f(String element)) =>
5495 IterableMixinWorkaround.where(this, f); 5501 IterableMixinWorkaround.where(this, f);
5496 5502
5497 Iterable expand(Iterable f(String element)) => 5503 Iterable expand(Iterable f(String element)) =>
5498 IterableMixinWorkaround.expand(this, f); 5504 IterableMixinWorkaround.expand(this, f);
5499 5505
5500 bool every(bool f(String element)) => IterableMixinWorkaround.every(this, f); 5506 bool every(bool f(String element)) => IterableMixinWorkaround.every(this, f);
5501 5507
5502 bool any(bool f(String element)) => IterableMixinWorkaround.any(this, f); 5508 bool any(bool f(String element)) => IterableMixinWorkaround.any(this, f);
5503 5509
5504 List<String> toList() => new List<String>.from(this); 5510 List<String> toList({ bool growable: false }) =>
5511 new List<String>.from(this, growable: growable);
5512
5505 Set<String> toSet() => new Set<String>.from(this); 5513 Set<String> toSet() => new Set<String>.from(this);
5506 5514
5507 bool get isEmpty => this.length == 0; 5515 bool get isEmpty => this.length == 0;
5508 5516
5509 Iterable<String> take(int n) => IterableMixinWorkaround.takeList(this, n); 5517 Iterable<String> take(int n) => IterableMixinWorkaround.takeList(this, n);
5510 5518
5511 Iterable<String> takeWhile(bool test(String value)) { 5519 Iterable<String> takeWhile(bool test(String value)) {
5512 return IterableMixinWorkaround.takeWhile(this, test); 5520 return IterableMixinWorkaround.takeWhile(this, test);
5513 } 5521 }
5514 5522
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after
6656 Iterable<Transform> where(bool f(Transform element)) => 6664 Iterable<Transform> where(bool f(Transform element)) =>
6657 IterableMixinWorkaround.where(this, f); 6665 IterableMixinWorkaround.where(this, f);
6658 6666
6659 Iterable expand(Iterable f(Transform element)) => 6667 Iterable expand(Iterable f(Transform element)) =>
6660 IterableMixinWorkaround.expand(this, f); 6668 IterableMixinWorkaround.expand(this, f);
6661 6669
6662 bool every(bool f(Transform element)) => IterableMixinWorkaround.every(this, f ); 6670 bool every(bool f(Transform element)) => IterableMixinWorkaround.every(this, f );
6663 6671
6664 bool any(bool f(Transform element)) => IterableMixinWorkaround.any(this, f); 6672 bool any(bool f(Transform element)) => IterableMixinWorkaround.any(this, f);
6665 6673
6666 List<Transform> toList() => new List<Transform>.from(this); 6674 List<Transform> toList({ bool growable: false }) =>
6675 new List<Transform>.from(this, growable: growable);
6676
6667 Set<Transform> toSet() => new Set<Transform>.from(this); 6677 Set<Transform> toSet() => new Set<Transform>.from(this);
6668 6678
6669 bool get isEmpty => this.length == 0; 6679 bool get isEmpty => this.length == 0;
6670 6680
6671 Iterable<Transform> take(int n) => IterableMixinWorkaround.takeList(this, n); 6681 Iterable<Transform> take(int n) => IterableMixinWorkaround.takeList(this, n);
6672 6682
6673 Iterable<Transform> takeWhile(bool test(Transform value)) { 6683 Iterable<Transform> takeWhile(bool test(Transform value)) {
6674 return IterableMixinWorkaround.takeWhile(this, test); 6684 return IterableMixinWorkaround.takeWhile(this, test);
6675 } 6685 }
6676 6686
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
7173 Iterable<ElementInstance> where(bool f(ElementInstance element)) => 7183 Iterable<ElementInstance> where(bool f(ElementInstance element)) =>
7174 IterableMixinWorkaround.where(this, f); 7184 IterableMixinWorkaround.where(this, f);
7175 7185
7176 Iterable expand(Iterable f(ElementInstance element)) => 7186 Iterable expand(Iterable f(ElementInstance element)) =>
7177 IterableMixinWorkaround.expand(this, f); 7187 IterableMixinWorkaround.expand(this, f);
7178 7188
7179 bool every(bool f(ElementInstance element)) => IterableMixinWorkaround.every(t his, f); 7189 bool every(bool f(ElementInstance element)) => IterableMixinWorkaround.every(t his, f);
7180 7190
7181 bool any(bool f(ElementInstance element)) => IterableMixinWorkaround.any(this, f); 7191 bool any(bool f(ElementInstance element)) => IterableMixinWorkaround.any(this, f);
7182 7192
7183 List<ElementInstance> toList() => new List<ElementInstance>.from(this); 7193 List<ElementInstance> toList({ bool growable: false }) =>
7194 new List<ElementInstance>.from(this, growable: growable);
7195
7184 Set<ElementInstance> toSet() => new Set<ElementInstance>.from(this); 7196 Set<ElementInstance> toSet() => new Set<ElementInstance>.from(this);
7185 7197
7186 bool get isEmpty => this.length == 0; 7198 bool get isEmpty => this.length == 0;
7187 7199
7188 Iterable<ElementInstance> take(int n) => IterableMixinWorkaround.takeList(this , n); 7200 Iterable<ElementInstance> take(int n) => IterableMixinWorkaround.takeList(this , n);
7189 7201
7190 Iterable<ElementInstance> takeWhile(bool test(ElementInstance value)) { 7202 Iterable<ElementInstance> takeWhile(bool test(ElementInstance value)) {
7191 return IterableMixinWorkaround.takeWhile(this, test); 7203 return IterableMixinWorkaround.takeWhile(this, test);
7192 } 7204 }
7193 7205
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
7727 7739
7728 7740
7729 @DocsEditable 7741 @DocsEditable
7730 @DomName('SVGVKernElement') 7742 @DomName('SVGVKernElement')
7731 class _SVGVKernElement extends SvgElement native "*SVGVKernElement" { 7743 class _SVGVKernElement extends SvgElement native "*SVGVKernElement" {
7732 7744
7733 @DomName('SVGVKernElement.SVGVKernElement') 7745 @DomName('SVGVKernElement.SVGVKernElement')
7734 @DocsEditable 7746 @DocsEditable
7735 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern"); 7747 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern");
7736 } 7748 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698