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

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

Issue 12401002: Make List.from and Iterable.toList default to not growable. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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({ bool growable: false }) => 3096 List<Length> toList({ bool growable: true }) =>
3097 new List<Length>.from(this, growable: growable); 3097 new List<Length>.from(this, growable: growable);
3098 3098
3099 Set<Length> toSet() => new Set<Length>.from(this); 3099 Set<Length> toSet() => new Set<Length>.from(this);
3100 3100
3101 bool get isEmpty => this.length == 0; 3101 bool get isEmpty => this.length == 0;
3102 3102
3103 Iterable<Length> take(int n) => IterableMixinWorkaround.takeList(this, n); 3103 Iterable<Length> take(int n) => IterableMixinWorkaround.takeList(this, n);
3104 3104
3105 Iterable<Length> takeWhile(bool test(Length value)) { 3105 Iterable<Length> takeWhile(bool test(Length value)) {
3106 return IterableMixinWorkaround.takeWhile(this, test); 3106 return IterableMixinWorkaround.takeWhile(this, test);
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
3712 Iterable<Number> where(bool f(Number element)) => 3712 Iterable<Number> where(bool f(Number element)) =>
3713 IterableMixinWorkaround.where(this, f); 3713 IterableMixinWorkaround.where(this, f);
3714 3714
3715 Iterable expand(Iterable f(Number element)) => 3715 Iterable expand(Iterable f(Number element)) =>
3716 IterableMixinWorkaround.expand(this, f); 3716 IterableMixinWorkaround.expand(this, f);
3717 3717
3718 bool every(bool f(Number element)) => IterableMixinWorkaround.every(this, f); 3718 bool every(bool f(Number element)) => IterableMixinWorkaround.every(this, f);
3719 3719
3720 bool any(bool f(Number element)) => IterableMixinWorkaround.any(this, f); 3720 bool any(bool f(Number element)) => IterableMixinWorkaround.any(this, f);
3721 3721
3722 List<Number> toList({ bool growable: false }) => 3722 List<Number> toList({ bool growable: true }) =>
3723 new List<Number>.from(this, growable: growable); 3723 new List<Number>.from(this, growable: growable);
3724 3724
3725 Set<Number> toSet() => new Set<Number>.from(this); 3725 Set<Number> toSet() => new Set<Number>.from(this);
3726 3726
3727 bool get isEmpty => this.length == 0; 3727 bool get isEmpty => this.length == 0;
3728 3728
3729 Iterable<Number> take(int n) => IterableMixinWorkaround.takeList(this, n); 3729 Iterable<Number> take(int n) => IterableMixinWorkaround.takeList(this, n);
3730 3730
3731 Iterable<Number> takeWhile(bool test(Number value)) { 3731 Iterable<Number> takeWhile(bool test(Number value)) {
3732 return IterableMixinWorkaround.takeWhile(this, test); 3732 return IterableMixinWorkaround.takeWhile(this, test);
(...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after
4614 Iterable<PathSeg> where(bool f(PathSeg element)) => 4614 Iterable<PathSeg> where(bool f(PathSeg element)) =>
4615 IterableMixinWorkaround.where(this, f); 4615 IterableMixinWorkaround.where(this, f);
4616 4616
4617 Iterable expand(Iterable f(PathSeg element)) => 4617 Iterable expand(Iterable f(PathSeg element)) =>
4618 IterableMixinWorkaround.expand(this, f); 4618 IterableMixinWorkaround.expand(this, f);
4619 4619
4620 bool every(bool f(PathSeg element)) => IterableMixinWorkaround.every(this, f); 4620 bool every(bool f(PathSeg element)) => IterableMixinWorkaround.every(this, f);
4621 4621
4622 bool any(bool f(PathSeg element)) => IterableMixinWorkaround.any(this, f); 4622 bool any(bool f(PathSeg element)) => IterableMixinWorkaround.any(this, f);
4623 4623
4624 List<PathSeg> toList({ bool growable: false }) => 4624 List<PathSeg> toList({ bool growable: true }) =>
4625 new List<PathSeg>.from(this, growable: growable); 4625 new List<PathSeg>.from(this, growable: growable);
4626 4626
4627 Set<PathSeg> toSet() => new Set<PathSeg>.from(this); 4627 Set<PathSeg> toSet() => new Set<PathSeg>.from(this);
4628 4628
4629 bool get isEmpty => this.length == 0; 4629 bool get isEmpty => this.length == 0;
4630 4630
4631 Iterable<PathSeg> take(int n) => IterableMixinWorkaround.takeList(this, n); 4631 Iterable<PathSeg> take(int n) => IterableMixinWorkaround.takeList(this, n);
4632 4632
4633 Iterable<PathSeg> takeWhile(bool test(PathSeg value)) { 4633 Iterable<PathSeg> takeWhile(bool test(PathSeg value)) {
4634 return IterableMixinWorkaround.takeWhile(this, test); 4634 return IterableMixinWorkaround.takeWhile(this, test);
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after
5500 Iterable<String> where(bool f(String element)) => 5500 Iterable<String> where(bool f(String element)) =>
5501 IterableMixinWorkaround.where(this, f); 5501 IterableMixinWorkaround.where(this, f);
5502 5502
5503 Iterable expand(Iterable f(String element)) => 5503 Iterable expand(Iterable f(String element)) =>
5504 IterableMixinWorkaround.expand(this, f); 5504 IterableMixinWorkaround.expand(this, f);
5505 5505
5506 bool every(bool f(String element)) => IterableMixinWorkaround.every(this, f); 5506 bool every(bool f(String element)) => IterableMixinWorkaround.every(this, f);
5507 5507
5508 bool any(bool f(String element)) => IterableMixinWorkaround.any(this, f); 5508 bool any(bool f(String element)) => IterableMixinWorkaround.any(this, f);
5509 5509
5510 List<String> toList({ bool growable: false }) => 5510 List<String> toList({ bool growable: true }) =>
5511 new List<String>.from(this, growable: growable); 5511 new List<String>.from(this, growable: growable);
5512 5512
5513 Set<String> toSet() => new Set<String>.from(this); 5513 Set<String> toSet() => new Set<String>.from(this);
5514 5514
5515 bool get isEmpty => this.length == 0; 5515 bool get isEmpty => this.length == 0;
5516 5516
5517 Iterable<String> take(int n) => IterableMixinWorkaround.takeList(this, n); 5517 Iterable<String> take(int n) => IterableMixinWorkaround.takeList(this, n);
5518 5518
5519 Iterable<String> takeWhile(bool test(String value)) { 5519 Iterable<String> takeWhile(bool test(String value)) {
5520 return IterableMixinWorkaround.takeWhile(this, test); 5520 return IterableMixinWorkaround.takeWhile(this, test);
(...skipping 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after
6664 Iterable<Transform> where(bool f(Transform element)) => 6664 Iterable<Transform> where(bool f(Transform element)) =>
6665 IterableMixinWorkaround.where(this, f); 6665 IterableMixinWorkaround.where(this, f);
6666 6666
6667 Iterable expand(Iterable f(Transform element)) => 6667 Iterable expand(Iterable f(Transform element)) =>
6668 IterableMixinWorkaround.expand(this, f); 6668 IterableMixinWorkaround.expand(this, f);
6669 6669
6670 bool every(bool f(Transform element)) => IterableMixinWorkaround.every(this, f ); 6670 bool every(bool f(Transform element)) => IterableMixinWorkaround.every(this, f );
6671 6671
6672 bool any(bool f(Transform element)) => IterableMixinWorkaround.any(this, f); 6672 bool any(bool f(Transform element)) => IterableMixinWorkaround.any(this, f);
6673 6673
6674 List<Transform> toList({ bool growable: false }) => 6674 List<Transform> toList({ bool growable: true }) =>
6675 new List<Transform>.from(this, growable: growable); 6675 new List<Transform>.from(this, growable: growable);
6676 6676
6677 Set<Transform> toSet() => new Set<Transform>.from(this); 6677 Set<Transform> toSet() => new Set<Transform>.from(this);
6678 6678
6679 bool get isEmpty => this.length == 0; 6679 bool get isEmpty => this.length == 0;
6680 6680
6681 Iterable<Transform> take(int n) => IterableMixinWorkaround.takeList(this, n); 6681 Iterable<Transform> take(int n) => IterableMixinWorkaround.takeList(this, n);
6682 6682
6683 Iterable<Transform> takeWhile(bool test(Transform value)) { 6683 Iterable<Transform> takeWhile(bool test(Transform value)) {
6684 return IterableMixinWorkaround.takeWhile(this, test); 6684 return IterableMixinWorkaround.takeWhile(this, test);
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
7183 Iterable<ElementInstance> where(bool f(ElementInstance element)) => 7183 Iterable<ElementInstance> where(bool f(ElementInstance element)) =>
7184 IterableMixinWorkaround.where(this, f); 7184 IterableMixinWorkaround.where(this, f);
7185 7185
7186 Iterable expand(Iterable f(ElementInstance element)) => 7186 Iterable expand(Iterable f(ElementInstance element)) =>
7187 IterableMixinWorkaround.expand(this, f); 7187 IterableMixinWorkaround.expand(this, f);
7188 7188
7189 bool every(bool f(ElementInstance element)) => IterableMixinWorkaround.every(t his, f); 7189 bool every(bool f(ElementInstance element)) => IterableMixinWorkaround.every(t his, f);
7190 7190
7191 bool any(bool f(ElementInstance element)) => IterableMixinWorkaround.any(this, f); 7191 bool any(bool f(ElementInstance element)) => IterableMixinWorkaround.any(this, f);
7192 7192
7193 List<ElementInstance> toList({ bool growable: false }) => 7193 List<ElementInstance> toList({ bool growable: true }) =>
7194 new List<ElementInstance>.from(this, growable: growable); 7194 new List<ElementInstance>.from(this, growable: growable);
7195 7195
7196 Set<ElementInstance> toSet() => new Set<ElementInstance>.from(this); 7196 Set<ElementInstance> toSet() => new Set<ElementInstance>.from(this);
7197 7197
7198 bool get isEmpty => this.length == 0; 7198 bool get isEmpty => this.length == 0;
7199 7199
7200 Iterable<ElementInstance> take(int n) => IterableMixinWorkaround.takeList(this , n); 7200 Iterable<ElementInstance> take(int n) => IterableMixinWorkaround.takeList(this , n);
7201 7201
7202 Iterable<ElementInstance> takeWhile(bool test(ElementInstance value)) { 7202 Iterable<ElementInstance> takeWhile(bool test(ElementInstance value)) {
7203 return IterableMixinWorkaround.takeWhile(this, test); 7203 return IterableMixinWorkaround.takeWhile(this, test);
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
7739 7739
7740 7740
7741 @DocsEditable 7741 @DocsEditable
7742 @DomName('SVGVKernElement') 7742 @DomName('SVGVKernElement')
7743 class _SVGVKernElement extends SvgElement native "*SVGVKernElement" { 7743 class _SVGVKernElement extends SvgElement native "*SVGVKernElement" {
7744 7744
7745 @DomName('SVGVKernElement.SVGVKernElement') 7745 @DomName('SVGVKernElement.SVGVKernElement')
7746 @DocsEditable 7746 @DocsEditable
7747 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern"); 7747 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern");
7748 } 7748 }
OLDNEW
« no previous file with comments | « sdk/lib/html/html_common/filtered_element_list.dart ('k') | sdk/lib/svg/dartium/svg_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698