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

Side by Side Diff: sdk/lib/svg/dartium/svg_dartium.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
« no previous file with comments | « sdk/lib/svg/dart2js/svg_dart2js.dart ('k') | sdk/lib/web_sql/dart2js/web_sql_dart2js.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:nativewrappers'; 7 import 'dart:nativewrappers';
8 // DO NOT EDIT 8 // DO NOT EDIT
9 // Auto-generated dart:svg library. 9 // Auto-generated dart:svg library.
10 10
(...skipping 3338 matching lines...) Expand 10 before | Expand all | Expand 10 after
3349 Iterable<Length> where(bool f(Length element)) => 3349 Iterable<Length> where(bool f(Length element)) =>
3350 IterableMixinWorkaround.where(this, f); 3350 IterableMixinWorkaround.where(this, f);
3351 3351
3352 Iterable expand(Iterable f(Length element)) => 3352 Iterable expand(Iterable f(Length element)) =>
3353 IterableMixinWorkaround.expand(this, f); 3353 IterableMixinWorkaround.expand(this, f);
3354 3354
3355 bool every(bool f(Length element)) => IterableMixinWorkaround.every(this, f); 3355 bool every(bool f(Length element)) => IterableMixinWorkaround.every(this, f);
3356 3356
3357 bool any(bool f(Length element)) => IterableMixinWorkaround.any(this, f); 3357 bool any(bool f(Length element)) => IterableMixinWorkaround.any(this, f);
3358 3358
3359 List<Length> toList({ bool growable: false }) => 3359 List<Length> toList({ bool growable: true }) =>
3360 new List<Length>.from(this, growable: growable); 3360 new List<Length>.from(this, growable: growable);
3361 3361
3362 Set<Length> toSet() => new Set<Length>.from(this); 3362 Set<Length> toSet() => new Set<Length>.from(this);
3363 3363
3364 bool get isEmpty => this.length == 0; 3364 bool get isEmpty => this.length == 0;
3365 3365
3366 Iterable<Length> take(int n) => IterableMixinWorkaround.takeList(this, n); 3366 Iterable<Length> take(int n) => IterableMixinWorkaround.takeList(this, n);
3367 3367
3368 Iterable<Length> takeWhile(bool test(Length value)) { 3368 Iterable<Length> takeWhile(bool test(Length value)) {
3369 return IterableMixinWorkaround.takeWhile(this, test); 3369 return IterableMixinWorkaround.takeWhile(this, test);
(...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after
4052 Iterable<Number> where(bool f(Number element)) => 4052 Iterable<Number> where(bool f(Number element)) =>
4053 IterableMixinWorkaround.where(this, f); 4053 IterableMixinWorkaround.where(this, f);
4054 4054
4055 Iterable expand(Iterable f(Number element)) => 4055 Iterable expand(Iterable f(Number element)) =>
4056 IterableMixinWorkaround.expand(this, f); 4056 IterableMixinWorkaround.expand(this, f);
4057 4057
4058 bool every(bool f(Number element)) => IterableMixinWorkaround.every(this, f); 4058 bool every(bool f(Number element)) => IterableMixinWorkaround.every(this, f);
4059 4059
4060 bool any(bool f(Number element)) => IterableMixinWorkaround.any(this, f); 4060 bool any(bool f(Number element)) => IterableMixinWorkaround.any(this, f);
4061 4061
4062 List<Number> toList({ bool growable: false }) => 4062 List<Number> toList({ bool growable: true }) =>
4063 new List<Number>.from(this, growable: growable); 4063 new List<Number>.from(this, growable: growable);
4064 4064
4065 Set<Number> toSet() => new Set<Number>.from(this); 4065 Set<Number> toSet() => new Set<Number>.from(this);
4066 4066
4067 bool get isEmpty => this.length == 0; 4067 bool get isEmpty => this.length == 0;
4068 4068
4069 Iterable<Number> take(int n) => IterableMixinWorkaround.takeList(this, n); 4069 Iterable<Number> take(int n) => IterableMixinWorkaround.takeList(this, n);
4070 4070
4071 Iterable<Number> takeWhile(bool test(Number value)) { 4071 Iterable<Number> takeWhile(bool test(Number value)) {
4072 return IterableMixinWorkaround.takeWhile(this, test); 4072 return IterableMixinWorkaround.takeWhile(this, test);
(...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after
5231 Iterable<PathSeg> where(bool f(PathSeg element)) => 5231 Iterable<PathSeg> where(bool f(PathSeg element)) =>
5232 IterableMixinWorkaround.where(this, f); 5232 IterableMixinWorkaround.where(this, f);
5233 5233
5234 Iterable expand(Iterable f(PathSeg element)) => 5234 Iterable expand(Iterable f(PathSeg element)) =>
5235 IterableMixinWorkaround.expand(this, f); 5235 IterableMixinWorkaround.expand(this, f);
5236 5236
5237 bool every(bool f(PathSeg element)) => IterableMixinWorkaround.every(this, f); 5237 bool every(bool f(PathSeg element)) => IterableMixinWorkaround.every(this, f);
5238 5238
5239 bool any(bool f(PathSeg element)) => IterableMixinWorkaround.any(this, f); 5239 bool any(bool f(PathSeg element)) => IterableMixinWorkaround.any(this, f);
5240 5240
5241 List<PathSeg> toList({ bool growable: false }) => 5241 List<PathSeg> toList({ bool growable: true }) =>
5242 new List<PathSeg>.from(this, growable: growable); 5242 new List<PathSeg>.from(this, growable: growable);
5243 5243
5244 Set<PathSeg> toSet() => new Set<PathSeg>.from(this); 5244 Set<PathSeg> toSet() => new Set<PathSeg>.from(this);
5245 5245
5246 bool get isEmpty => this.length == 0; 5246 bool get isEmpty => this.length == 0;
5247 5247
5248 Iterable<PathSeg> take(int n) => IterableMixinWorkaround.takeList(this, n); 5248 Iterable<PathSeg> take(int n) => IterableMixinWorkaround.takeList(this, n);
5249 5249
5250 Iterable<PathSeg> takeWhile(bool test(PathSeg value)) { 5250 Iterable<PathSeg> takeWhile(bool test(PathSeg value)) {
5251 return IterableMixinWorkaround.takeWhile(this, test); 5251 return IterableMixinWorkaround.takeWhile(this, test);
(...skipping 963 matching lines...) Expand 10 before | Expand all | Expand 10 after
6215 Iterable<String> where(bool f(String element)) => 6215 Iterable<String> where(bool f(String element)) =>
6216 IterableMixinWorkaround.where(this, f); 6216 IterableMixinWorkaround.where(this, f);
6217 6217
6218 Iterable expand(Iterable f(String element)) => 6218 Iterable expand(Iterable f(String element)) =>
6219 IterableMixinWorkaround.expand(this, f); 6219 IterableMixinWorkaround.expand(this, f);
6220 6220
6221 bool every(bool f(String element)) => IterableMixinWorkaround.every(this, f); 6221 bool every(bool f(String element)) => IterableMixinWorkaround.every(this, f);
6222 6222
6223 bool any(bool f(String element)) => IterableMixinWorkaround.any(this, f); 6223 bool any(bool f(String element)) => IterableMixinWorkaround.any(this, f);
6224 6224
6225 List<String> toList({ bool growable: false }) => 6225 List<String> toList({ bool growable: true }) =>
6226 new List<String>.from(this, growable: growable); 6226 new List<String>.from(this, growable: growable);
6227 6227
6228 Set<String> toSet() => new Set<String>.from(this); 6228 Set<String> toSet() => new Set<String>.from(this);
6229 6229
6230 bool get isEmpty => this.length == 0; 6230 bool get isEmpty => this.length == 0;
6231 6231
6232 Iterable<String> take(int n) => IterableMixinWorkaround.takeList(this, n); 6232 Iterable<String> take(int n) => IterableMixinWorkaround.takeList(this, n);
6233 6233
6234 Iterable<String> takeWhile(bool test(String value)) { 6234 Iterable<String> takeWhile(bool test(String value)) {
6235 return IterableMixinWorkaround.takeWhile(this, test); 6235 return IterableMixinWorkaround.takeWhile(this, test);
(...skipping 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after
7468 Iterable<Transform> where(bool f(Transform element)) => 7468 Iterable<Transform> where(bool f(Transform element)) =>
7469 IterableMixinWorkaround.where(this, f); 7469 IterableMixinWorkaround.where(this, f);
7470 7470
7471 Iterable expand(Iterable f(Transform element)) => 7471 Iterable expand(Iterable f(Transform element)) =>
7472 IterableMixinWorkaround.expand(this, f); 7472 IterableMixinWorkaround.expand(this, f);
7473 7473
7474 bool every(bool f(Transform element)) => IterableMixinWorkaround.every(this, f ); 7474 bool every(bool f(Transform element)) => IterableMixinWorkaround.every(this, f );
7475 7475
7476 bool any(bool f(Transform element)) => IterableMixinWorkaround.any(this, f); 7476 bool any(bool f(Transform element)) => IterableMixinWorkaround.any(this, f);
7477 7477
7478 List<Transform> toList({ bool growable: false }) => 7478 List<Transform> toList({ bool growable: true }) =>
7479 new List<Transform>.from(this, growable: growable); 7479 new List<Transform>.from(this, growable: growable);
7480 7480
7481 Set<Transform> toSet() => new Set<Transform>.from(this); 7481 Set<Transform> toSet() => new Set<Transform>.from(this);
7482 7482
7483 bool get isEmpty => this.length == 0; 7483 bool get isEmpty => this.length == 0;
7484 7484
7485 Iterable<Transform> take(int n) => IterableMixinWorkaround.takeList(this, n); 7485 Iterable<Transform> take(int n) => IterableMixinWorkaround.takeList(this, n);
7486 7486
7487 Iterable<Transform> takeWhile(bool test(Transform value)) { 7487 Iterable<Transform> takeWhile(bool test(Transform value)) {
7488 return IterableMixinWorkaround.takeWhile(this, test); 7488 return IterableMixinWorkaround.takeWhile(this, test);
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
8041 Iterable<ElementInstance> where(bool f(ElementInstance element)) => 8041 Iterable<ElementInstance> where(bool f(ElementInstance element)) =>
8042 IterableMixinWorkaround.where(this, f); 8042 IterableMixinWorkaround.where(this, f);
8043 8043
8044 Iterable expand(Iterable f(ElementInstance element)) => 8044 Iterable expand(Iterable f(ElementInstance element)) =>
8045 IterableMixinWorkaround.expand(this, f); 8045 IterableMixinWorkaround.expand(this, f);
8046 8046
8047 bool every(bool f(ElementInstance element)) => IterableMixinWorkaround.every(t his, f); 8047 bool every(bool f(ElementInstance element)) => IterableMixinWorkaround.every(t his, f);
8048 8048
8049 bool any(bool f(ElementInstance element)) => IterableMixinWorkaround.any(this, f); 8049 bool any(bool f(ElementInstance element)) => IterableMixinWorkaround.any(this, f);
8050 8050
8051 List<ElementInstance> toList({ bool growable: false }) => 8051 List<ElementInstance> toList({ bool growable: true }) =>
8052 new List<ElementInstance>.from(this, growable: growable); 8052 new List<ElementInstance>.from(this, growable: growable);
8053 8053
8054 Set<ElementInstance> toSet() => new Set<ElementInstance>.from(this); 8054 Set<ElementInstance> toSet() => new Set<ElementInstance>.from(this);
8055 8055
8056 bool get isEmpty => this.length == 0; 8056 bool get isEmpty => this.length == 0;
8057 8057
8058 Iterable<ElementInstance> take(int n) => IterableMixinWorkaround.takeList(this , n); 8058 Iterable<ElementInstance> take(int n) => IterableMixinWorkaround.takeList(this , n);
8059 8059
8060 Iterable<ElementInstance> takeWhile(bool test(ElementInstance value)) { 8060 Iterable<ElementInstance> takeWhile(bool test(ElementInstance value)) {
8061 return IterableMixinWorkaround.takeWhile(this, test); 8061 return IterableMixinWorkaround.takeWhile(this, test);
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
8682 @DocsEditable 8682 @DocsEditable
8683 @DomName('SVGVKernElement') 8683 @DomName('SVGVKernElement')
8684 class _SVGVKernElement extends SvgElement { 8684 class _SVGVKernElement extends SvgElement {
8685 _SVGVKernElement.internal() : super.internal(); 8685 _SVGVKernElement.internal() : super.internal();
8686 8686
8687 @DomName('SVGVKernElement.SVGVKernElement') 8687 @DomName('SVGVKernElement.SVGVKernElement')
8688 @DocsEditable 8688 @DocsEditable
8689 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern"); 8689 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern");
8690 8690
8691 } 8691 }
OLDNEW
« no previous file with comments | « sdk/lib/svg/dart2js/svg_dart2js.dart ('k') | sdk/lib/web_sql/dart2js/web_sql_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698