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

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

Issue 12383073: Add List.insert. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use insertBefore and add is-check. 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 3169 matching lines...) Expand 10 before | Expand all | Expand 10 after
3180 if (length == 0) throw new StateError("No elements"); 3180 if (length == 0) throw new StateError("No elements");
3181 throw new StateError("More than one element"); 3181 throw new StateError("More than one element");
3182 } 3182 }
3183 3183
3184 Length min([int compare(Length a, Length b)]) => 3184 Length min([int compare(Length a, Length b)]) =>
3185 IterableMixinWorkaround.min(this, compare); 3185 IterableMixinWorkaround.min(this, compare);
3186 3186
3187 Length max([int compare(Length a, Length b)]) => 3187 Length max([int compare(Length a, Length b)]) =>
3188 IterableMixinWorkaround.max(this, compare); 3188 IterableMixinWorkaround.max(this, compare);
3189 3189
3190 void insert(int index, Length element) {
3191 throw new UnsupportedError("Cannot add to immutable List.");
3192 }
3193
3190 Length removeAt(int pos) { 3194 Length removeAt(int pos) {
3191 throw new UnsupportedError("Cannot remove from immutable List."); 3195 throw new UnsupportedError("Cannot remove from immutable List.");
3192 } 3196 }
3193 3197
3194 Length removeLast() { 3198 Length removeLast() {
3195 throw new UnsupportedError("Cannot remove from immutable List."); 3199 throw new UnsupportedError("Cannot remove from immutable List.");
3196 } 3200 }
3197 3201
3198 void remove(Object object) { 3202 void remove(Object object) {
3199 throw new UnsupportedError("Cannot remove from immutable List."); 3203 throw new UnsupportedError("Cannot remove from immutable List.");
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
3809 if (length == 0) throw new StateError("No elements"); 3813 if (length == 0) throw new StateError("No elements");
3810 throw new StateError("More than one element"); 3814 throw new StateError("More than one element");
3811 } 3815 }
3812 3816
3813 Number min([int compare(Number a, Number b)]) => 3817 Number min([int compare(Number a, Number b)]) =>
3814 IterableMixinWorkaround.min(this, compare); 3818 IterableMixinWorkaround.min(this, compare);
3815 3819
3816 Number max([int compare(Number a, Number b)]) => 3820 Number max([int compare(Number a, Number b)]) =>
3817 IterableMixinWorkaround.max(this, compare); 3821 IterableMixinWorkaround.max(this, compare);
3818 3822
3823 void insert(int index, Number element) {
3824 throw new UnsupportedError("Cannot add to immutable List.");
3825 }
3826
3819 Number removeAt(int pos) { 3827 Number removeAt(int pos) {
3820 throw new UnsupportedError("Cannot remove from immutable List."); 3828 throw new UnsupportedError("Cannot remove from immutable List.");
3821 } 3829 }
3822 3830
3823 Number removeLast() { 3831 Number removeLast() {
3824 throw new UnsupportedError("Cannot remove from immutable List."); 3832 throw new UnsupportedError("Cannot remove from immutable List.");
3825 } 3833 }
3826 3834
3827 void remove(Object object) { 3835 void remove(Object object) {
3828 throw new UnsupportedError("Cannot remove from immutable List."); 3836 throw new UnsupportedError("Cannot remove from immutable List.");
(...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after
4714 if (length == 0) throw new StateError("No elements"); 4722 if (length == 0) throw new StateError("No elements");
4715 throw new StateError("More than one element"); 4723 throw new StateError("More than one element");
4716 } 4724 }
4717 4725
4718 PathSeg min([int compare(PathSeg a, PathSeg b)]) => 4726 PathSeg min([int compare(PathSeg a, PathSeg b)]) =>
4719 IterableMixinWorkaround.min(this, compare); 4727 IterableMixinWorkaround.min(this, compare);
4720 4728
4721 PathSeg max([int compare(PathSeg a, PathSeg b)]) => 4729 PathSeg max([int compare(PathSeg a, PathSeg b)]) =>
4722 IterableMixinWorkaround.max(this, compare); 4730 IterableMixinWorkaround.max(this, compare);
4723 4731
4732 void insert(int index, PathSeg element) {
4733 throw new UnsupportedError("Cannot add to immutable List.");
4734 }
4735
4724 PathSeg removeAt(int pos) { 4736 PathSeg removeAt(int pos) {
4725 throw new UnsupportedError("Cannot remove from immutable List."); 4737 throw new UnsupportedError("Cannot remove from immutable List.");
4726 } 4738 }
4727 4739
4728 PathSeg removeLast() { 4740 PathSeg removeLast() {
4729 throw new UnsupportedError("Cannot remove from immutable List."); 4741 throw new UnsupportedError("Cannot remove from immutable List.");
4730 } 4742 }
4731 4743
4732 void remove(Object object) { 4744 void remove(Object object) {
4733 throw new UnsupportedError("Cannot remove from immutable List."); 4745 throw new UnsupportedError("Cannot remove from immutable List.");
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after
5604 if (length == 0) throw new StateError("No elements"); 5616 if (length == 0) throw new StateError("No elements");
5605 throw new StateError("More than one element"); 5617 throw new StateError("More than one element");
5606 } 5618 }
5607 5619
5608 String min([int compare(String a, String b)]) => 5620 String min([int compare(String a, String b)]) =>
5609 IterableMixinWorkaround.min(this, compare); 5621 IterableMixinWorkaround.min(this, compare);
5610 5622
5611 String max([int compare(String a, String b)]) => 5623 String max([int compare(String a, String b)]) =>
5612 IterableMixinWorkaround.max(this, compare); 5624 IterableMixinWorkaround.max(this, compare);
5613 5625
5626 void insert(int index, String element) {
5627 throw new UnsupportedError("Cannot add to immutable List.");
5628 }
5629
5614 String removeAt(int pos) { 5630 String removeAt(int pos) {
5615 throw new UnsupportedError("Cannot remove from immutable List."); 5631 throw new UnsupportedError("Cannot remove from immutable List.");
5616 } 5632 }
5617 5633
5618 String removeLast() { 5634 String removeLast() {
5619 throw new UnsupportedError("Cannot remove from immutable List."); 5635 throw new UnsupportedError("Cannot remove from immutable List.");
5620 } 5636 }
5621 5637
5622 void remove(Object object) { 5638 void remove(Object object) {
5623 throw new UnsupportedError("Cannot remove from immutable List."); 5639 throw new UnsupportedError("Cannot remove from immutable List.");
(...skipping 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after
6771 if (length == 0) throw new StateError("No elements"); 6787 if (length == 0) throw new StateError("No elements");
6772 throw new StateError("More than one element"); 6788 throw new StateError("More than one element");
6773 } 6789 }
6774 6790
6775 Transform min([int compare(Transform a, Transform b)]) => 6791 Transform min([int compare(Transform a, Transform b)]) =>
6776 IterableMixinWorkaround.min(this, compare); 6792 IterableMixinWorkaround.min(this, compare);
6777 6793
6778 Transform max([int compare(Transform a, Transform b)]) => 6794 Transform max([int compare(Transform a, Transform b)]) =>
6779 IterableMixinWorkaround.max(this, compare); 6795 IterableMixinWorkaround.max(this, compare);
6780 6796
6797 void insert(int index, Transform element) {
6798 throw new UnsupportedError("Cannot add to immutable List.");
6799 }
6800
6781 Transform removeAt(int pos) { 6801 Transform removeAt(int pos) {
6782 throw new UnsupportedError("Cannot remove from immutable List."); 6802 throw new UnsupportedError("Cannot remove from immutable List.");
6783 } 6803 }
6784 6804
6785 Transform removeLast() { 6805 Transform removeLast() {
6786 throw new UnsupportedError("Cannot remove from immutable List."); 6806 throw new UnsupportedError("Cannot remove from immutable List.");
6787 } 6807 }
6788 6808
6789 void remove(Object object) { 6809 void remove(Object object) {
6790 throw new UnsupportedError("Cannot remove from immutable List."); 6810 throw new UnsupportedError("Cannot remove from immutable List.");
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
7295 if (length == 0) throw new StateError("No elements"); 7315 if (length == 0) throw new StateError("No elements");
7296 throw new StateError("More than one element"); 7316 throw new StateError("More than one element");
7297 } 7317 }
7298 7318
7299 ElementInstance min([int compare(ElementInstance a, ElementInstance b)]) => 7319 ElementInstance min([int compare(ElementInstance a, ElementInstance b)]) =>
7300 IterableMixinWorkaround.min(this, compare); 7320 IterableMixinWorkaround.min(this, compare);
7301 7321
7302 ElementInstance max([int compare(ElementInstance a, ElementInstance b)]) => 7322 ElementInstance max([int compare(ElementInstance a, ElementInstance b)]) =>
7303 IterableMixinWorkaround.max(this, compare); 7323 IterableMixinWorkaround.max(this, compare);
7304 7324
7325 void insert(int index, ElementInstance element) {
7326 throw new UnsupportedError("Cannot add to immutable List.");
7327 }
7328
7305 ElementInstance removeAt(int pos) { 7329 ElementInstance removeAt(int pos) {
7306 throw new UnsupportedError("Cannot remove from immutable List."); 7330 throw new UnsupportedError("Cannot remove from immutable List.");
7307 } 7331 }
7308 7332
7309 ElementInstance removeLast() { 7333 ElementInstance removeLast() {
7310 throw new UnsupportedError("Cannot remove from immutable List."); 7334 throw new UnsupportedError("Cannot remove from immutable List.");
7311 } 7335 }
7312 7336
7313 void remove(Object object) { 7337 void remove(Object object) {
7314 throw new UnsupportedError("Cannot remove from immutable List."); 7338 throw new UnsupportedError("Cannot remove from immutable List.");
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
7759 7783
7760 7784
7761 @DocsEditable 7785 @DocsEditable
7762 @DomName('SVGVKernElement') 7786 @DomName('SVGVKernElement')
7763 class _SVGVKernElement extends SvgElement native "*SVGVKernElement" { 7787 class _SVGVKernElement extends SvgElement native "*SVGVKernElement" {
7764 7788
7765 @DomName('SVGVKernElement.SVGVKernElement') 7789 @DomName('SVGVKernElement.SVGVKernElement')
7766 @DocsEditable 7790 @DocsEditable
7767 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern"); 7791 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern");
7768 } 7792 }
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