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

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

Issue 13863012: Refactor List.setRange function. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments. Created 7 years, 8 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/utf/utf8.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:_collection-dev'; 5 import 'dart:_collection-dev';
6 import 'dart:html'; 6 import 'dart:html';
7 import 'dart:html_common'; 7 import 'dart:html_common';
8 import 'dart:nativewrappers'; 8 import 'dart:nativewrappers';
9 // DO NOT EDIT 9 // DO NOT EDIT
10 // Auto-generated dart:svg library. 10 // Auto-generated dart:svg library.
(...skipping 3411 matching lines...) Expand 10 before | Expand all | Expand 10 after
3422 } 3422 }
3423 3423
3424 void removeWhere(bool test(Length element)) { 3424 void removeWhere(bool test(Length element)) {
3425 throw new UnsupportedError("Cannot remove from immutable List."); 3425 throw new UnsupportedError("Cannot remove from immutable List.");
3426 } 3426 }
3427 3427
3428 void retainWhere(bool test(Length element)) { 3428 void retainWhere(bool test(Length element)) {
3429 throw new UnsupportedError("Cannot remove from immutable List."); 3429 throw new UnsupportedError("Cannot remove from immutable List.");
3430 } 3430 }
3431 3431
3432 void setRange(int start, int rangeLength, List<Length> from, [int startFrom]) { 3432 void setRange(int start, int end, Iterable<Length> iterable, [int skipCount]) {
3433 throw new UnsupportedError("Cannot setRange on immutable List."); 3433 throw new UnsupportedError("Cannot setRange on immutable List.");
3434 } 3434 }
3435 3435
3436 void removeRange(int start, int rangeLength) { 3436 void removeRange(int start, int rangeLength) {
3437 throw new UnsupportedError("Cannot removeRange on immutable List."); 3437 throw new UnsupportedError("Cannot removeRange on immutable List.");
3438 } 3438 }
3439 3439
3440 void insertRange(int start, int rangeLength, [Length initialValue]) { 3440 void insertRange(int start, int rangeLength, [Length initialValue]) {
3441 throw new UnsupportedError("Cannot insertRange on immutable List."); 3441 throw new UnsupportedError("Cannot insertRange on immutable List.");
3442 } 3442 }
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
4131 } 4131 }
4132 4132
4133 void removeWhere(bool test(Number element)) { 4133 void removeWhere(bool test(Number element)) {
4134 throw new UnsupportedError("Cannot remove from immutable List."); 4134 throw new UnsupportedError("Cannot remove from immutable List.");
4135 } 4135 }
4136 4136
4137 void retainWhere(bool test(Number element)) { 4137 void retainWhere(bool test(Number element)) {
4138 throw new UnsupportedError("Cannot remove from immutable List."); 4138 throw new UnsupportedError("Cannot remove from immutable List.");
4139 } 4139 }
4140 4140
4141 void setRange(int start, int rangeLength, List<Number> from, [int startFrom]) { 4141 void setRange(int start, int end, Iterable<Number> iterable, [int skipCount]) {
4142 throw new UnsupportedError("Cannot setRange on immutable List."); 4142 throw new UnsupportedError("Cannot setRange on immutable List.");
4143 } 4143 }
4144 4144
4145 void removeRange(int start, int rangeLength) { 4145 void removeRange(int start, int rangeLength) {
4146 throw new UnsupportedError("Cannot removeRange on immutable List."); 4146 throw new UnsupportedError("Cannot removeRange on immutable List.");
4147 } 4147 }
4148 4148
4149 void insertRange(int start, int rangeLength, [Number initialValue]) { 4149 void insertRange(int start, int rangeLength, [Number initialValue]) {
4150 throw new UnsupportedError("Cannot insertRange on immutable List."); 4150 throw new UnsupportedError("Cannot insertRange on immutable List.");
4151 } 4151 }
(...skipping 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after
5267 } 5267 }
5268 5268
5269 void removeWhere(bool test(PathSeg element)) { 5269 void removeWhere(bool test(PathSeg element)) {
5270 throw new UnsupportedError("Cannot remove from immutable List."); 5270 throw new UnsupportedError("Cannot remove from immutable List.");
5271 } 5271 }
5272 5272
5273 void retainWhere(bool test(PathSeg element)) { 5273 void retainWhere(bool test(PathSeg element)) {
5274 throw new UnsupportedError("Cannot remove from immutable List."); 5274 throw new UnsupportedError("Cannot remove from immutable List.");
5275 } 5275 }
5276 5276
5277 void setRange(int start, int rangeLength, List<PathSeg> from, [int startFrom]) { 5277 void setRange(int start, int end, Iterable<PathSeg> iterable, [int skipCount]) {
5278 throw new UnsupportedError("Cannot setRange on immutable List."); 5278 throw new UnsupportedError("Cannot setRange on immutable List.");
5279 } 5279 }
5280 5280
5281 void removeRange(int start, int rangeLength) { 5281 void removeRange(int start, int rangeLength) {
5282 throw new UnsupportedError("Cannot removeRange on immutable List."); 5282 throw new UnsupportedError("Cannot removeRange on immutable List.");
5283 } 5283 }
5284 5284
5285 void insertRange(int start, int rangeLength, [PathSeg initialValue]) { 5285 void insertRange(int start, int rangeLength, [PathSeg initialValue]) {
5286 throw new UnsupportedError("Cannot insertRange on immutable List."); 5286 throw new UnsupportedError("Cannot insertRange on immutable List.");
5287 } 5287 }
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after
6257 } 6257 }
6258 6258
6259 void removeWhere(bool test(String element)) { 6259 void removeWhere(bool test(String element)) {
6260 throw new UnsupportedError("Cannot remove from immutable List."); 6260 throw new UnsupportedError("Cannot remove from immutable List.");
6261 } 6261 }
6262 6262
6263 void retainWhere(bool test(String element)) { 6263 void retainWhere(bool test(String element)) {
6264 throw new UnsupportedError("Cannot remove from immutable List."); 6264 throw new UnsupportedError("Cannot remove from immutable List.");
6265 } 6265 }
6266 6266
6267 void setRange(int start, int rangeLength, List<String> from, [int startFrom]) { 6267 void setRange(int start, int end, Iterable<String> iterable, [int skipCount]) {
6268 throw new UnsupportedError("Cannot setRange on immutable List."); 6268 throw new UnsupportedError("Cannot setRange on immutable List.");
6269 } 6269 }
6270 6270
6271 void removeRange(int start, int rangeLength) { 6271 void removeRange(int start, int rangeLength) {
6272 throw new UnsupportedError("Cannot removeRange on immutable List."); 6272 throw new UnsupportedError("Cannot removeRange on immutable List.");
6273 } 6273 }
6274 6274
6275 void insertRange(int start, int rangeLength, [String initialValue]) { 6275 void insertRange(int start, int rangeLength, [String initialValue]) {
6276 throw new UnsupportedError("Cannot insertRange on immutable List."); 6276 throw new UnsupportedError("Cannot insertRange on immutable List.");
6277 } 6277 }
(...skipping 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after
7512 } 7512 }
7513 7513
7514 void removeWhere(bool test(Transform element)) { 7514 void removeWhere(bool test(Transform element)) {
7515 throw new UnsupportedError("Cannot remove from immutable List."); 7515 throw new UnsupportedError("Cannot remove from immutable List.");
7516 } 7516 }
7517 7517
7518 void retainWhere(bool test(Transform element)) { 7518 void retainWhere(bool test(Transform element)) {
7519 throw new UnsupportedError("Cannot remove from immutable List."); 7519 throw new UnsupportedError("Cannot remove from immutable List.");
7520 } 7520 }
7521 7521
7522 void setRange(int start, int rangeLength, List<Transform> from, [int startFrom ]) { 7522 void setRange(int start, int end, Iterable<Transform> iterable, [int skipCount ]) {
7523 throw new UnsupportedError("Cannot setRange on immutable List."); 7523 throw new UnsupportedError("Cannot setRange on immutable List.");
7524 } 7524 }
7525 7525
7526 void removeRange(int start, int rangeLength) { 7526 void removeRange(int start, int rangeLength) {
7527 throw new UnsupportedError("Cannot removeRange on immutable List."); 7527 throw new UnsupportedError("Cannot removeRange on immutable List.");
7528 } 7528 }
7529 7529
7530 void insertRange(int start, int rangeLength, [Transform initialValue]) { 7530 void insertRange(int start, int rangeLength, [Transform initialValue]) {
7531 throw new UnsupportedError("Cannot insertRange on immutable List."); 7531 throw new UnsupportedError("Cannot insertRange on immutable List.");
7532 } 7532 }
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
8093 } 8093 }
8094 8094
8095 void removeWhere(bool test(ElementInstance element)) { 8095 void removeWhere(bool test(ElementInstance element)) {
8096 throw new UnsupportedError("Cannot remove from immutable List."); 8096 throw new UnsupportedError("Cannot remove from immutable List.");
8097 } 8097 }
8098 8098
8099 void retainWhere(bool test(ElementInstance element)) { 8099 void retainWhere(bool test(ElementInstance element)) {
8100 throw new UnsupportedError("Cannot remove from immutable List."); 8100 throw new UnsupportedError("Cannot remove from immutable List.");
8101 } 8101 }
8102 8102
8103 void setRange(int start, int rangeLength, List<ElementInstance> from, [int sta rtFrom]) { 8103 void setRange(int start, int end, Iterable<ElementInstance> iterable, [int ski pCount]) {
8104 throw new UnsupportedError("Cannot setRange on immutable List."); 8104 throw new UnsupportedError("Cannot setRange on immutable List.");
8105 } 8105 }
8106 8106
8107 void removeRange(int start, int rangeLength) { 8107 void removeRange(int start, int rangeLength) {
8108 throw new UnsupportedError("Cannot removeRange on immutable List."); 8108 throw new UnsupportedError("Cannot removeRange on immutable List.");
8109 } 8109 }
8110 8110
8111 void insertRange(int start, int rangeLength, [ElementInstance initialValue]) { 8111 void insertRange(int start, int rangeLength, [ElementInstance initialValue]) {
8112 throw new UnsupportedError("Cannot insertRange on immutable List."); 8112 throw new UnsupportedError("Cannot insertRange on immutable List.");
8113 } 8113 }
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
8470 @DocsEditable 8470 @DocsEditable
8471 @DomName('SVGVKernElement') 8471 @DomName('SVGVKernElement')
8472 abstract class _SVGVKernElement extends SvgElement { 8472 abstract class _SVGVKernElement extends SvgElement {
8473 _SVGVKernElement.internal() : super.internal(); 8473 _SVGVKernElement.internal() : super.internal();
8474 8474
8475 @DomName('SVGVKernElement.SVGVKernElement') 8475 @DomName('SVGVKernElement.SVGVKernElement')
8476 @DocsEditable 8476 @DocsEditable
8477 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern"); 8477 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern");
8478 8478
8479 } 8479 }
OLDNEW
« no previous file with comments | « sdk/lib/svg/dart2js/svg_dart2js.dart ('k') | sdk/lib/utf/utf8.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698