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

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

Issue 14175013: Add setAll, insertAll, replaceRange and fillRange. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
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 3129 matching lines...) Expand 10 before | Expand all | Expand 10 after
3140 Length get single { 3140 Length get single {
3141 if (length == 1) return this[0]; 3141 if (length == 1) return this[0];
3142 if (length == 0) throw new StateError("No elements"); 3142 if (length == 0) throw new StateError("No elements");
3143 throw new StateError("More than one element"); 3143 throw new StateError("More than one element");
3144 } 3144 }
3145 3145
3146 void insert(int index, Length element) { 3146 void insert(int index, Length element) {
3147 throw new UnsupportedError("Cannot add to immutable List."); 3147 throw new UnsupportedError("Cannot add to immutable List.");
3148 } 3148 }
3149 3149
3150 void insertAll(int index, Iterable<Length> iterable) {
3151 throw new UnsupportedError("Cannot add to immutable List.");
3152 }
3153
3154 void setAll(int index, Iterable<Length> iterable) {
3155 throw new UnsupportedError("Cannot modify an immutable List.");
3156 }
3157
3150 Length removeAt(int pos) { 3158 Length removeAt(int pos) {
3151 throw new UnsupportedError("Cannot remove from immutable List."); 3159 throw new UnsupportedError("Cannot remove from immutable List.");
3152 } 3160 }
3153 3161
3154 Length removeLast() { 3162 Length removeLast() {
3155 throw new UnsupportedError("Cannot remove from immutable List."); 3163 throw new UnsupportedError("Cannot remove from immutable List.");
3156 } 3164 }
3157 3165
3158 void remove(Object object) { 3166 void remove(Object object) {
3159 throw new UnsupportedError("Cannot remove from immutable List."); 3167 throw new UnsupportedError("Cannot remove from immutable List.");
3160 } 3168 }
3161 3169
3162 void removeWhere(bool test(Length element)) { 3170 void removeWhere(bool test(Length element)) {
3163 throw new UnsupportedError("Cannot remove from immutable List."); 3171 throw new UnsupportedError("Cannot remove from immutable List.");
3164 } 3172 }
3165 3173
3166 void retainWhere(bool test(Length element)) { 3174 void retainWhere(bool test(Length element)) {
3167 throw new UnsupportedError("Cannot remove from immutable List."); 3175 throw new UnsupportedError("Cannot remove from immutable List.");
3168 } 3176 }
3169 3177
3170 void setRange(int start, int end, Iterable<Length> iterable, [int skipCount]) { 3178 void setRange(int start, int end, Iterable<Length> iterable, [int skipCount]) {
3171 throw new UnsupportedError("Cannot setRange on immutable List."); 3179 throw new UnsupportedError("Cannot setRange on immutable List.");
3172 } 3180 }
3173 3181
3174 void removeRange(int start, int end) { 3182 void removeRange(int start, int end) {
3175 throw new UnsupportedError("Cannot removeRange on immutable List."); 3183 throw new UnsupportedError("Cannot removeRange on immutable List.");
3176 } 3184 }
3177 3185
3186 void replaceRange(int start, int end, Iterable<Length> iterable) {
3187 throw new UnsupportedError("Cannot modify an immutable List.");
3188 }
3189
3190 void fillRange(int start, int end, [Length fillValue]) {
3191 throw new UnsupportedError("Cannot modify an immutable List.");
3192 }
3193
3178 Iterable<Length> getRange(int start, int end) => 3194 Iterable<Length> getRange(int start, int end) =>
3179 IterableMixinWorkaround.getRangeList(this, start, end); 3195 IterableMixinWorkaround.getRangeList(this, start, end);
3180 3196
3181 List<Length> sublist(int start, [int end]) { 3197 List<Length> sublist(int start, [int end]) {
3182 if (end == null) end = length; 3198 if (end == null) end = length;
3183 return Lists.getRange(this, start, end, <Length>[]); 3199 return Lists.getRange(this, start, end, <Length>[]);
3184 } 3200 }
3185 3201
3186 Map<int, Length> asMap() => 3202 Map<int, Length> asMap() =>
3187 IterableMixinWorkaround.asMapList(this); 3203 IterableMixinWorkaround.asMapList(this);
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
3768 Number get single { 3784 Number get single {
3769 if (length == 1) return this[0]; 3785 if (length == 1) return this[0];
3770 if (length == 0) throw new StateError("No elements"); 3786 if (length == 0) throw new StateError("No elements");
3771 throw new StateError("More than one element"); 3787 throw new StateError("More than one element");
3772 } 3788 }
3773 3789
3774 void insert(int index, Number element) { 3790 void insert(int index, Number element) {
3775 throw new UnsupportedError("Cannot add to immutable List."); 3791 throw new UnsupportedError("Cannot add to immutable List.");
3776 } 3792 }
3777 3793
3794 void insertAll(int index, Iterable<Number> iterable) {
3795 throw new UnsupportedError("Cannot add to immutable List.");
3796 }
3797
3798 void setAll(int index, Iterable<Number> iterable) {
3799 throw new UnsupportedError("Cannot modify an immutable List.");
3800 }
3801
3778 Number removeAt(int pos) { 3802 Number removeAt(int pos) {
3779 throw new UnsupportedError("Cannot remove from immutable List."); 3803 throw new UnsupportedError("Cannot remove from immutable List.");
3780 } 3804 }
3781 3805
3782 Number removeLast() { 3806 Number removeLast() {
3783 throw new UnsupportedError("Cannot remove from immutable List."); 3807 throw new UnsupportedError("Cannot remove from immutable List.");
3784 } 3808 }
3785 3809
3786 void remove(Object object) { 3810 void remove(Object object) {
3787 throw new UnsupportedError("Cannot remove from immutable List."); 3811 throw new UnsupportedError("Cannot remove from immutable List.");
3788 } 3812 }
3789 3813
3790 void removeWhere(bool test(Number element)) { 3814 void removeWhere(bool test(Number element)) {
3791 throw new UnsupportedError("Cannot remove from immutable List."); 3815 throw new UnsupportedError("Cannot remove from immutable List.");
3792 } 3816 }
3793 3817
3794 void retainWhere(bool test(Number element)) { 3818 void retainWhere(bool test(Number element)) {
3795 throw new UnsupportedError("Cannot remove from immutable List."); 3819 throw new UnsupportedError("Cannot remove from immutable List.");
3796 } 3820 }
3797 3821
3798 void setRange(int start, int end, Iterable<Number> iterable, [int skipCount]) { 3822 void setRange(int start, int end, Iterable<Number> iterable, [int skipCount]) {
3799 throw new UnsupportedError("Cannot setRange on immutable List."); 3823 throw new UnsupportedError("Cannot setRange on immutable List.");
3800 } 3824 }
3801 3825
3802 void removeRange(int start, int end) { 3826 void removeRange(int start, int end) {
3803 throw new UnsupportedError("Cannot removeRange on immutable List."); 3827 throw new UnsupportedError("Cannot removeRange on immutable List.");
3804 } 3828 }
3805 3829
3830 void replaceRange(int start, int end, Iterable<Number> iterable) {
3831 throw new UnsupportedError("Cannot modify an immutable List.");
3832 }
3833
3834 void fillRange(int start, int end, [Number fillValue]) {
3835 throw new UnsupportedError("Cannot modify an immutable List.");
3836 }
3837
3806 Iterable<Number> getRange(int start, int end) => 3838 Iterable<Number> getRange(int start, int end) =>
3807 IterableMixinWorkaround.getRangeList(this, start, end); 3839 IterableMixinWorkaround.getRangeList(this, start, end);
3808 3840
3809 List<Number> sublist(int start, [int end]) { 3841 List<Number> sublist(int start, [int end]) {
3810 if (end == null) end = length; 3842 if (end == null) end = length;
3811 return Lists.getRange(this, start, end, <Number>[]); 3843 return Lists.getRange(this, start, end, <Number>[]);
3812 } 3844 }
3813 3845
3814 Map<int, Number> asMap() => 3846 Map<int, Number> asMap() =>
3815 IterableMixinWorkaround.asMapList(this); 3847 IterableMixinWorkaround.asMapList(this);
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after
4627 PathSeg get single { 4659 PathSeg get single {
4628 if (length == 1) return this[0]; 4660 if (length == 1) return this[0];
4629 if (length == 0) throw new StateError("No elements"); 4661 if (length == 0) throw new StateError("No elements");
4630 throw new StateError("More than one element"); 4662 throw new StateError("More than one element");
4631 } 4663 }
4632 4664
4633 void insert(int index, PathSeg element) { 4665 void insert(int index, PathSeg element) {
4634 throw new UnsupportedError("Cannot add to immutable List."); 4666 throw new UnsupportedError("Cannot add to immutable List.");
4635 } 4667 }
4636 4668
4669 void insertAll(int index, Iterable<PathSeg> iterable) {
4670 throw new UnsupportedError("Cannot add to immutable List.");
4671 }
4672
4673 void setAll(int index, Iterable<PathSeg> iterable) {
4674 throw new UnsupportedError("Cannot modify an immutable List.");
4675 }
4676
4637 PathSeg removeAt(int pos) { 4677 PathSeg removeAt(int pos) {
4638 throw new UnsupportedError("Cannot remove from immutable List."); 4678 throw new UnsupportedError("Cannot remove from immutable List.");
4639 } 4679 }
4640 4680
4641 PathSeg removeLast() { 4681 PathSeg removeLast() {
4642 throw new UnsupportedError("Cannot remove from immutable List."); 4682 throw new UnsupportedError("Cannot remove from immutable List.");
4643 } 4683 }
4644 4684
4645 void remove(Object object) { 4685 void remove(Object object) {
4646 throw new UnsupportedError("Cannot remove from immutable List."); 4686 throw new UnsupportedError("Cannot remove from immutable List.");
4647 } 4687 }
4648 4688
4649 void removeWhere(bool test(PathSeg element)) { 4689 void removeWhere(bool test(PathSeg element)) {
4650 throw new UnsupportedError("Cannot remove from immutable List."); 4690 throw new UnsupportedError("Cannot remove from immutable List.");
4651 } 4691 }
4652 4692
4653 void retainWhere(bool test(PathSeg element)) { 4693 void retainWhere(bool test(PathSeg element)) {
4654 throw new UnsupportedError("Cannot remove from immutable List."); 4694 throw new UnsupportedError("Cannot remove from immutable List.");
4655 } 4695 }
4656 4696
4657 void setRange(int start, int end, Iterable<PathSeg> iterable, [int skipCount]) { 4697 void setRange(int start, int end, Iterable<PathSeg> iterable, [int skipCount]) {
4658 throw new UnsupportedError("Cannot setRange on immutable List."); 4698 throw new UnsupportedError("Cannot setRange on immutable List.");
4659 } 4699 }
4660 4700
4661 void removeRange(int start, int end) { 4701 void removeRange(int start, int end) {
4662 throw new UnsupportedError("Cannot removeRange on immutable List."); 4702 throw new UnsupportedError("Cannot removeRange on immutable List.");
4663 } 4703 }
4664 4704
4705 void replaceRange(int start, int end, Iterable<PathSeg> iterable) {
4706 throw new UnsupportedError("Cannot modify an immutable List.");
4707 }
4708
4709 void fillRange(int start, int end, [PathSeg fillValue]) {
4710 throw new UnsupportedError("Cannot modify an immutable List.");
4711 }
4712
4665 Iterable<PathSeg> getRange(int start, int end) => 4713 Iterable<PathSeg> getRange(int start, int end) =>
4666 IterableMixinWorkaround.getRangeList(this, start, end); 4714 IterableMixinWorkaround.getRangeList(this, start, end);
4667 4715
4668 List<PathSeg> sublist(int start, [int end]) { 4716 List<PathSeg> sublist(int start, [int end]) {
4669 if (end == null) end = length; 4717 if (end == null) end = length;
4670 return Lists.getRange(this, start, end, <PathSeg>[]); 4718 return Lists.getRange(this, start, end, <PathSeg>[]);
4671 } 4719 }
4672 4720
4673 Map<int, PathSeg> asMap() => 4721 Map<int, PathSeg> asMap() =>
4674 IterableMixinWorkaround.asMapList(this); 4722 IterableMixinWorkaround.asMapList(this);
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after
5516 String get single { 5564 String get single {
5517 if (length == 1) return this[0]; 5565 if (length == 1) return this[0];
5518 if (length == 0) throw new StateError("No elements"); 5566 if (length == 0) throw new StateError("No elements");
5519 throw new StateError("More than one element"); 5567 throw new StateError("More than one element");
5520 } 5568 }
5521 5569
5522 void insert(int index, String element) { 5570 void insert(int index, String element) {
5523 throw new UnsupportedError("Cannot add to immutable List."); 5571 throw new UnsupportedError("Cannot add to immutable List.");
5524 } 5572 }
5525 5573
5574 void insertAll(int index, Iterable<String> iterable) {
5575 throw new UnsupportedError("Cannot add to immutable List.");
5576 }
5577
5578 void setAll(int index, Iterable<String> iterable) {
5579 throw new UnsupportedError("Cannot modify an immutable List.");
5580 }
5581
5526 String removeAt(int pos) { 5582 String removeAt(int pos) {
5527 throw new UnsupportedError("Cannot remove from immutable List."); 5583 throw new UnsupportedError("Cannot remove from immutable List.");
5528 } 5584 }
5529 5585
5530 String removeLast() { 5586 String removeLast() {
5531 throw new UnsupportedError("Cannot remove from immutable List."); 5587 throw new UnsupportedError("Cannot remove from immutable List.");
5532 } 5588 }
5533 5589
5534 void remove(Object object) { 5590 void remove(Object object) {
5535 throw new UnsupportedError("Cannot remove from immutable List."); 5591 throw new UnsupportedError("Cannot remove from immutable List.");
5536 } 5592 }
5537 5593
5538 void removeWhere(bool test(String element)) { 5594 void removeWhere(bool test(String element)) {
5539 throw new UnsupportedError("Cannot remove from immutable List."); 5595 throw new UnsupportedError("Cannot remove from immutable List.");
5540 } 5596 }
5541 5597
5542 void retainWhere(bool test(String element)) { 5598 void retainWhere(bool test(String element)) {
5543 throw new UnsupportedError("Cannot remove from immutable List."); 5599 throw new UnsupportedError("Cannot remove from immutable List.");
5544 } 5600 }
5545 5601
5546 void setRange(int start, int end, Iterable<String> iterable, [int skipCount]) { 5602 void setRange(int start, int end, Iterable<String> iterable, [int skipCount]) {
5547 throw new UnsupportedError("Cannot setRange on immutable List."); 5603 throw new UnsupportedError("Cannot setRange on immutable List.");
5548 } 5604 }
5549 5605
5550 void removeRange(int start, int end) { 5606 void removeRange(int start, int end) {
5551 throw new UnsupportedError("Cannot removeRange on immutable List."); 5607 throw new UnsupportedError("Cannot removeRange on immutable List.");
5552 } 5608 }
5553 5609
5610 void replaceRange(int start, int end, Iterable<String> iterable) {
5611 throw new UnsupportedError("Cannot modify an immutable List.");
5612 }
5613
5614 void fillRange(int start, int end, [String fillValue]) {
5615 throw new UnsupportedError("Cannot modify an immutable List.");
5616 }
5617
5554 Iterable<String> getRange(int start, int end) => 5618 Iterable<String> getRange(int start, int end) =>
5555 IterableMixinWorkaround.getRangeList(this, start, end); 5619 IterableMixinWorkaround.getRangeList(this, start, end);
5556 5620
5557 List<String> sublist(int start, [int end]) { 5621 List<String> sublist(int start, [int end]) {
5558 if (end == null) end = length; 5622 if (end == null) end = length;
5559 return Lists.getRange(this, start, end, <String>[]); 5623 return Lists.getRange(this, start, end, <String>[]);
5560 } 5624 }
5561 5625
5562 Map<int, String> asMap() => 5626 Map<int, String> asMap() =>
5563 IterableMixinWorkaround.asMapList(this); 5627 IterableMixinWorkaround.asMapList(this);
(...skipping 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after
6678 Transform get single { 6742 Transform get single {
6679 if (length == 1) return this[0]; 6743 if (length == 1) return this[0];
6680 if (length == 0) throw new StateError("No elements"); 6744 if (length == 0) throw new StateError("No elements");
6681 throw new StateError("More than one element"); 6745 throw new StateError("More than one element");
6682 } 6746 }
6683 6747
6684 void insert(int index, Transform element) { 6748 void insert(int index, Transform element) {
6685 throw new UnsupportedError("Cannot add to immutable List."); 6749 throw new UnsupportedError("Cannot add to immutable List.");
6686 } 6750 }
6687 6751
6752 void insertAll(int index, Iterable<Transform> iterable) {
6753 throw new UnsupportedError("Cannot add to immutable List.");
6754 }
6755
6756 void setAll(int index, Iterable<Transform> iterable) {
6757 throw new UnsupportedError("Cannot modify an immutable List.");
6758 }
6759
6688 Transform removeAt(int pos) { 6760 Transform removeAt(int pos) {
6689 throw new UnsupportedError("Cannot remove from immutable List."); 6761 throw new UnsupportedError("Cannot remove from immutable List.");
6690 } 6762 }
6691 6763
6692 Transform removeLast() { 6764 Transform removeLast() {
6693 throw new UnsupportedError("Cannot remove from immutable List."); 6765 throw new UnsupportedError("Cannot remove from immutable List.");
6694 } 6766 }
6695 6767
6696 void remove(Object object) { 6768 void remove(Object object) {
6697 throw new UnsupportedError("Cannot remove from immutable List."); 6769 throw new UnsupportedError("Cannot remove from immutable List.");
6698 } 6770 }
6699 6771
6700 void removeWhere(bool test(Transform element)) { 6772 void removeWhere(bool test(Transform element)) {
6701 throw new UnsupportedError("Cannot remove from immutable List."); 6773 throw new UnsupportedError("Cannot remove from immutable List.");
6702 } 6774 }
6703 6775
6704 void retainWhere(bool test(Transform element)) { 6776 void retainWhere(bool test(Transform element)) {
6705 throw new UnsupportedError("Cannot remove from immutable List."); 6777 throw new UnsupportedError("Cannot remove from immutable List.");
6706 } 6778 }
6707 6779
6708 void setRange(int start, int end, Iterable<Transform> iterable, [int skipCount ]) { 6780 void setRange(int start, int end, Iterable<Transform> iterable, [int skipCount ]) {
6709 throw new UnsupportedError("Cannot setRange on immutable List."); 6781 throw new UnsupportedError("Cannot setRange on immutable List.");
6710 } 6782 }
6711 6783
6712 void removeRange(int start, int end) { 6784 void removeRange(int start, int end) {
6713 throw new UnsupportedError("Cannot removeRange on immutable List."); 6785 throw new UnsupportedError("Cannot removeRange on immutable List.");
6714 } 6786 }
6715 6787
6788 void replaceRange(int start, int end, Iterable<Transform> iterable) {
6789 throw new UnsupportedError("Cannot modify an immutable List.");
6790 }
6791
6792 void fillRange(int start, int end, [Transform fillValue]) {
6793 throw new UnsupportedError("Cannot modify an immutable List.");
6794 }
6795
6716 Iterable<Transform> getRange(int start, int end) => 6796 Iterable<Transform> getRange(int start, int end) =>
6717 IterableMixinWorkaround.getRangeList(this, start, end); 6797 IterableMixinWorkaround.getRangeList(this, start, end);
6718 6798
6719 List<Transform> sublist(int start, [int end]) { 6799 List<Transform> sublist(int start, [int end]) {
6720 if (end == null) end = length; 6800 if (end == null) end = length;
6721 return Lists.getRange(this, start, end, <Transform>[]); 6801 return Lists.getRange(this, start, end, <Transform>[]);
6722 } 6802 }
6723 6803
6724 Map<int, Transform> asMap() => 6804 Map<int, Transform> asMap() =>
6725 IterableMixinWorkaround.asMapList(this); 6805 IterableMixinWorkaround.asMapList(this);
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
7201 ElementInstance get single { 7281 ElementInstance get single {
7202 if (length == 1) return this[0]; 7282 if (length == 1) return this[0];
7203 if (length == 0) throw new StateError("No elements"); 7283 if (length == 0) throw new StateError("No elements");
7204 throw new StateError("More than one element"); 7284 throw new StateError("More than one element");
7205 } 7285 }
7206 7286
7207 void insert(int index, ElementInstance element) { 7287 void insert(int index, ElementInstance element) {
7208 throw new UnsupportedError("Cannot add to immutable List."); 7288 throw new UnsupportedError("Cannot add to immutable List.");
7209 } 7289 }
7210 7290
7291 void insertAll(int index, Iterable<ElementInstance> iterable) {
7292 throw new UnsupportedError("Cannot add to immutable List.");
7293 }
7294
7295 void setAll(int index, Iterable<ElementInstance> iterable) {
7296 throw new UnsupportedError("Cannot modify an immutable List.");
7297 }
7298
7211 ElementInstance removeAt(int pos) { 7299 ElementInstance removeAt(int pos) {
7212 throw new UnsupportedError("Cannot remove from immutable List."); 7300 throw new UnsupportedError("Cannot remove from immutable List.");
7213 } 7301 }
7214 7302
7215 ElementInstance removeLast() { 7303 ElementInstance removeLast() {
7216 throw new UnsupportedError("Cannot remove from immutable List."); 7304 throw new UnsupportedError("Cannot remove from immutable List.");
7217 } 7305 }
7218 7306
7219 void remove(Object object) { 7307 void remove(Object object) {
7220 throw new UnsupportedError("Cannot remove from immutable List."); 7308 throw new UnsupportedError("Cannot remove from immutable List.");
7221 } 7309 }
7222 7310
7223 void removeWhere(bool test(ElementInstance element)) { 7311 void removeWhere(bool test(ElementInstance element)) {
7224 throw new UnsupportedError("Cannot remove from immutable List."); 7312 throw new UnsupportedError("Cannot remove from immutable List.");
7225 } 7313 }
7226 7314
7227 void retainWhere(bool test(ElementInstance element)) { 7315 void retainWhere(bool test(ElementInstance element)) {
7228 throw new UnsupportedError("Cannot remove from immutable List."); 7316 throw new UnsupportedError("Cannot remove from immutable List.");
7229 } 7317 }
7230 7318
7231 void setRange(int start, int end, Iterable<ElementInstance> iterable, [int ski pCount]) { 7319 void setRange(int start, int end, Iterable<ElementInstance> iterable, [int ski pCount]) {
7232 throw new UnsupportedError("Cannot setRange on immutable List."); 7320 throw new UnsupportedError("Cannot setRange on immutable List.");
7233 } 7321 }
7234 7322
7235 void removeRange(int start, int end) { 7323 void removeRange(int start, int end) {
7236 throw new UnsupportedError("Cannot removeRange on immutable List."); 7324 throw new UnsupportedError("Cannot removeRange on immutable List.");
7237 } 7325 }
7238 7326
7327 void replaceRange(int start, int end, Iterable<ElementInstance> iterable) {
7328 throw new UnsupportedError("Cannot modify an immutable List.");
7329 }
7330
7331 void fillRange(int start, int end, [ElementInstance fillValue]) {
7332 throw new UnsupportedError("Cannot modify an immutable List.");
7333 }
7334
7239 Iterable<ElementInstance> getRange(int start, int end) => 7335 Iterable<ElementInstance> getRange(int start, int end) =>
7240 IterableMixinWorkaround.getRangeList(this, start, end); 7336 IterableMixinWorkaround.getRangeList(this, start, end);
7241 7337
7242 List<ElementInstance> sublist(int start, [int end]) { 7338 List<ElementInstance> sublist(int start, [int end]) {
7243 if (end == null) end = length; 7339 if (end == null) end = length;
7244 return Lists.getRange(this, start, end, <ElementInstance>[]); 7340 return Lists.getRange(this, start, end, <ElementInstance>[]);
7245 } 7341 }
7246 7342
7247 Map<int, ElementInstance> asMap() => 7343 Map<int, ElementInstance> asMap() =>
7248 IterableMixinWorkaround.asMapList(this); 7344 IterableMixinWorkaround.asMapList(this);
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
7529 7625
7530 7626
7531 @DocsEditable 7627 @DocsEditable
7532 @DomName('SVGVKernElement') 7628 @DomName('SVGVKernElement')
7533 abstract class _SVGVKernElement extends SvgElement native "*SVGVKernElement" { 7629 abstract class _SVGVKernElement extends SvgElement native "*SVGVKernElement" {
7534 7630
7535 @DomName('SVGVKernElement.SVGVKernElement') 7631 @DomName('SVGVKernElement.SVGVKernElement')
7536 @DocsEditable 7632 @DocsEditable
7537 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern"); 7633 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern");
7538 } 7634 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698