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

Side by Side Diff: sdk/lib/svg/dart2js/svg_dart2js.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/io/websocket_impl.dart ('k') | sdk/lib/svg/dartium/svg_dartium.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:_js_helper' show Creates, Returns, JavaScriptIndexingBehavior, JSNa me; 8 import 'dart:_js_helper' show Creates, Returns, JavaScriptIndexingBehavior, JSNa me;
9 import 'dart:_foreign_helper' show JS; 9 import 'dart:_foreign_helper' show JS;
10 // DO NOT EDIT - unless you are editing documentation as per: 10 // DO NOT EDIT - unless you are editing documentation as per:
(...skipping 3150 matching lines...) Expand 10 before | Expand all | Expand 10 after
3161 } 3161 }
3162 3162
3163 void removeWhere(bool test(Length element)) { 3163 void removeWhere(bool test(Length element)) {
3164 throw new UnsupportedError("Cannot remove from immutable List."); 3164 throw new UnsupportedError("Cannot remove from immutable List.");
3165 } 3165 }
3166 3166
3167 void retainWhere(bool test(Length element)) { 3167 void retainWhere(bool test(Length element)) {
3168 throw new UnsupportedError("Cannot remove from immutable List."); 3168 throw new UnsupportedError("Cannot remove from immutable List.");
3169 } 3169 }
3170 3170
3171 void setRange(int start, int rangeLength, List<Length> from, [int startFrom]) { 3171 void setRange(int start, int end, Iterable<Length> iterable, [int skipCount]) {
3172 throw new UnsupportedError("Cannot setRange on immutable List."); 3172 throw new UnsupportedError("Cannot setRange on immutable List.");
3173 } 3173 }
3174 3174
3175 void removeRange(int start, int rangeLength) { 3175 void removeRange(int start, int rangeLength) {
3176 throw new UnsupportedError("Cannot removeRange on immutable List."); 3176 throw new UnsupportedError("Cannot removeRange on immutable List.");
3177 } 3177 }
3178 3178
3179 void insertRange(int start, int rangeLength, [Length initialValue]) { 3179 void insertRange(int start, int rangeLength, [Length initialValue]) {
3180 throw new UnsupportedError("Cannot insertRange on immutable List."); 3180 throw new UnsupportedError("Cannot insertRange on immutable List.");
3181 } 3181 }
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
3793 } 3793 }
3794 3794
3795 void removeWhere(bool test(Number element)) { 3795 void removeWhere(bool test(Number element)) {
3796 throw new UnsupportedError("Cannot remove from immutable List."); 3796 throw new UnsupportedError("Cannot remove from immutable List.");
3797 } 3797 }
3798 3798
3799 void retainWhere(bool test(Number element)) { 3799 void retainWhere(bool test(Number element)) {
3800 throw new UnsupportedError("Cannot remove from immutable List."); 3800 throw new UnsupportedError("Cannot remove from immutable List.");
3801 } 3801 }
3802 3802
3803 void setRange(int start, int rangeLength, List<Number> from, [int startFrom]) { 3803 void setRange(int start, int end, Iterable<Number> iterable, [int skipCount]) {
3804 throw new UnsupportedError("Cannot setRange on immutable List."); 3804 throw new UnsupportedError("Cannot setRange on immutable List.");
3805 } 3805 }
3806 3806
3807 void removeRange(int start, int rangeLength) { 3807 void removeRange(int start, int rangeLength) {
3808 throw new UnsupportedError("Cannot removeRange on immutable List."); 3808 throw new UnsupportedError("Cannot removeRange on immutable List.");
3809 } 3809 }
3810 3810
3811 void insertRange(int start, int rangeLength, [Number initialValue]) { 3811 void insertRange(int start, int rangeLength, [Number initialValue]) {
3812 throw new UnsupportedError("Cannot insertRange on immutable List."); 3812 throw new UnsupportedError("Cannot insertRange on immutable List.");
3813 } 3813 }
(...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after
4656 } 4656 }
4657 4657
4658 void removeWhere(bool test(PathSeg element)) { 4658 void removeWhere(bool test(PathSeg element)) {
4659 throw new UnsupportedError("Cannot remove from immutable List."); 4659 throw new UnsupportedError("Cannot remove from immutable List.");
4660 } 4660 }
4661 4661
4662 void retainWhere(bool test(PathSeg element)) { 4662 void retainWhere(bool test(PathSeg element)) {
4663 throw new UnsupportedError("Cannot remove from immutable List."); 4663 throw new UnsupportedError("Cannot remove from immutable List.");
4664 } 4664 }
4665 4665
4666 void setRange(int start, int rangeLength, List<PathSeg> from, [int startFrom]) { 4666 void setRange(int start, int end, Iterable<PathSeg> iterable, [int skipCount]) {
4667 throw new UnsupportedError("Cannot setRange on immutable List."); 4667 throw new UnsupportedError("Cannot setRange on immutable List.");
4668 } 4668 }
4669 4669
4670 void removeRange(int start, int rangeLength) { 4670 void removeRange(int start, int rangeLength) {
4671 throw new UnsupportedError("Cannot removeRange on immutable List."); 4671 throw new UnsupportedError("Cannot removeRange on immutable List.");
4672 } 4672 }
4673 4673
4674 void insertRange(int start, int rangeLength, [PathSeg initialValue]) { 4674 void insertRange(int start, int rangeLength, [PathSeg initialValue]) {
4675 throw new UnsupportedError("Cannot insertRange on immutable List."); 4675 throw new UnsupportedError("Cannot insertRange on immutable List.");
4676 } 4676 }
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after
5549 } 5549 }
5550 5550
5551 void removeWhere(bool test(String element)) { 5551 void removeWhere(bool test(String element)) {
5552 throw new UnsupportedError("Cannot remove from immutable List."); 5552 throw new UnsupportedError("Cannot remove from immutable List.");
5553 } 5553 }
5554 5554
5555 void retainWhere(bool test(String element)) { 5555 void retainWhere(bool test(String element)) {
5556 throw new UnsupportedError("Cannot remove from immutable List."); 5556 throw new UnsupportedError("Cannot remove from immutable List.");
5557 } 5557 }
5558 5558
5559 void setRange(int start, int rangeLength, List<String> from, [int startFrom]) { 5559 void setRange(int start, int end, Iterable<String> iterable, [int skipCount]) {
5560 throw new UnsupportedError("Cannot setRange on immutable List."); 5560 throw new UnsupportedError("Cannot setRange on immutable List.");
5561 } 5561 }
5562 5562
5563 void removeRange(int start, int rangeLength) { 5563 void removeRange(int start, int rangeLength) {
5564 throw new UnsupportedError("Cannot removeRange on immutable List."); 5564 throw new UnsupportedError("Cannot removeRange on immutable List.");
5565 } 5565 }
5566 5566
5567 void insertRange(int start, int rangeLength, [String initialValue]) { 5567 void insertRange(int start, int rangeLength, [String initialValue]) {
5568 throw new UnsupportedError("Cannot insertRange on immutable List."); 5568 throw new UnsupportedError("Cannot insertRange on immutable List.");
5569 } 5569 }
(...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after
6715 } 6715 }
6716 6716
6717 void removeWhere(bool test(Transform element)) { 6717 void removeWhere(bool test(Transform element)) {
6718 throw new UnsupportedError("Cannot remove from immutable List."); 6718 throw new UnsupportedError("Cannot remove from immutable List.");
6719 } 6719 }
6720 6720
6721 void retainWhere(bool test(Transform element)) { 6721 void retainWhere(bool test(Transform element)) {
6722 throw new UnsupportedError("Cannot remove from immutable List."); 6722 throw new UnsupportedError("Cannot remove from immutable List.");
6723 } 6723 }
6724 6724
6725 void setRange(int start, int rangeLength, List<Transform> from, [int startFrom ]) { 6725 void setRange(int start, int end, Iterable<Transform> iterable, [int skipCount ]) {
6726 throw new UnsupportedError("Cannot setRange on immutable List."); 6726 throw new UnsupportedError("Cannot setRange on immutable List.");
6727 } 6727 }
6728 6728
6729 void removeRange(int start, int rangeLength) { 6729 void removeRange(int start, int rangeLength) {
6730 throw new UnsupportedError("Cannot removeRange on immutable List."); 6730 throw new UnsupportedError("Cannot removeRange on immutable List.");
6731 } 6731 }
6732 6732
6733 void insertRange(int start, int rangeLength, [Transform initialValue]) { 6733 void insertRange(int start, int rangeLength, [Transform initialValue]) {
6734 throw new UnsupportedError("Cannot insertRange on immutable List."); 6734 throw new UnsupportedError("Cannot insertRange on immutable List.");
6735 } 6735 }
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
7242 } 7242 }
7243 7243
7244 void removeWhere(bool test(ElementInstance element)) { 7244 void removeWhere(bool test(ElementInstance element)) {
7245 throw new UnsupportedError("Cannot remove from immutable List."); 7245 throw new UnsupportedError("Cannot remove from immutable List.");
7246 } 7246 }
7247 7247
7248 void retainWhere(bool test(ElementInstance element)) { 7248 void retainWhere(bool test(ElementInstance element)) {
7249 throw new UnsupportedError("Cannot remove from immutable List."); 7249 throw new UnsupportedError("Cannot remove from immutable List.");
7250 } 7250 }
7251 7251
7252 void setRange(int start, int rangeLength, List<ElementInstance> from, [int sta rtFrom]) { 7252 void setRange(int start, int end, Iterable<ElementInstance> iterable, [int ski pCount]) {
7253 throw new UnsupportedError("Cannot setRange on immutable List."); 7253 throw new UnsupportedError("Cannot setRange on immutable List.");
7254 } 7254 }
7255 7255
7256 void removeRange(int start, int rangeLength) { 7256 void removeRange(int start, int rangeLength) {
7257 throw new UnsupportedError("Cannot removeRange on immutable List."); 7257 throw new UnsupportedError("Cannot removeRange on immutable List.");
7258 } 7258 }
7259 7259
7260 void insertRange(int start, int rangeLength, [ElementInstance initialValue]) { 7260 void insertRange(int start, int rangeLength, [ElementInstance initialValue]) {
7261 throw new UnsupportedError("Cannot insertRange on immutable List."); 7261 throw new UnsupportedError("Cannot insertRange on immutable List.");
7262 } 7262 }
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
7554 7554
7555 7555
7556 @DocsEditable 7556 @DocsEditable
7557 @DomName('SVGVKernElement') 7557 @DomName('SVGVKernElement')
7558 abstract class _SVGVKernElement extends SvgElement native "*SVGVKernElement" { 7558 abstract class _SVGVKernElement extends SvgElement native "*SVGVKernElement" {
7559 7559
7560 @DomName('SVGVKernElement.SVGVKernElement') 7560 @DomName('SVGVKernElement.SVGVKernElement')
7561 @DocsEditable 7561 @DocsEditable
7562 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern"); 7562 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern");
7563 } 7563 }
OLDNEW
« no previous file with comments | « sdk/lib/io/websocket_impl.dart ('k') | sdk/lib/svg/dartium/svg_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698