| OLD | NEW |
| 1 library svg; | 1 library 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 | 10 // DO NOT EDIT |
| (...skipping 3667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3678 throw new UnsupportedError("Cannot add to immutable List."); | 3678 throw new UnsupportedError("Cannot add to immutable List."); |
| 3679 } | 3679 } |
| 3680 | 3680 |
| 3681 // From List<Length>: | 3681 // From List<Length>: |
| 3682 void set length(int value) { | 3682 void set length(int value) { |
| 3683 throw new UnsupportedError("Cannot resize immutable List."); | 3683 throw new UnsupportedError("Cannot resize immutable List."); |
| 3684 } | 3684 } |
| 3685 | 3685 |
| 3686 // clear() defined by IDL. | 3686 // clear() defined by IDL. |
| 3687 | 3687 |
| 3688 List<Length> get reversed => | 3688 List<Length> get reversed { |
| 3689 new ReversedListView<Length>(this, 0, null); | 3689 return IterableMixinWorkaround.reversedList(this); |
| 3690 } |
| 3690 | 3691 |
| 3691 void sort([int compare(Length a, Length b)]) { | 3692 void sort([int compare(Length a, Length b)]) { |
| 3692 throw new UnsupportedError("Cannot sort immutable List."); | 3693 throw new UnsupportedError("Cannot sort immutable List."); |
| 3693 } | 3694 } |
| 3694 | 3695 |
| 3695 int indexOf(Length element, [int start = 0]) => | 3696 int indexOf(Length element, [int start = 0]) => |
| 3696 Lists.indexOf(this, element, start, this.length); | 3697 Lists.indexOf(this, element, start, this.length); |
| 3697 | 3698 |
| 3698 int lastIndexOf(Length element, [int start]) { | 3699 int lastIndexOf(Length element, [int start]) { |
| 3699 if (start == null) start = length - 1; | 3700 if (start == null) start = length - 1; |
| (...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4362 throw new UnsupportedError("Cannot add to immutable List."); | 4363 throw new UnsupportedError("Cannot add to immutable List."); |
| 4363 } | 4364 } |
| 4364 | 4365 |
| 4365 // From List<Number>: | 4366 // From List<Number>: |
| 4366 void set length(int value) { | 4367 void set length(int value) { |
| 4367 throw new UnsupportedError("Cannot resize immutable List."); | 4368 throw new UnsupportedError("Cannot resize immutable List."); |
| 4368 } | 4369 } |
| 4369 | 4370 |
| 4370 // clear() defined by IDL. | 4371 // clear() defined by IDL. |
| 4371 | 4372 |
| 4372 List<Number> get reversed => | 4373 List<Number> get reversed { |
| 4373 new ReversedListView<Number>(this, 0, null); | 4374 return IterableMixinWorkaround.reversedList(this); |
| 4375 } |
| 4374 | 4376 |
| 4375 void sort([int compare(Number a, Number b)]) { | 4377 void sort([int compare(Number a, Number b)]) { |
| 4376 throw new UnsupportedError("Cannot sort immutable List."); | 4378 throw new UnsupportedError("Cannot sort immutable List."); |
| 4377 } | 4379 } |
| 4378 | 4380 |
| 4379 int indexOf(Number element, [int start = 0]) => | 4381 int indexOf(Number element, [int start = 0]) => |
| 4380 Lists.indexOf(this, element, start, this.length); | 4382 Lists.indexOf(this, element, start, this.length); |
| 4381 | 4383 |
| 4382 int lastIndexOf(Number element, [int start]) { | 4384 int lastIndexOf(Number element, [int start]) { |
| 4383 if (start == null) start = length - 1; | 4385 if (start == null) start = length - 1; |
| (...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5268 throw new UnsupportedError("Cannot add to immutable List."); | 5270 throw new UnsupportedError("Cannot add to immutable List."); |
| 5269 } | 5271 } |
| 5270 | 5272 |
| 5271 // From List<PathSeg>: | 5273 // From List<PathSeg>: |
| 5272 void set length(int value) { | 5274 void set length(int value) { |
| 5273 throw new UnsupportedError("Cannot resize immutable List."); | 5275 throw new UnsupportedError("Cannot resize immutable List."); |
| 5274 } | 5276 } |
| 5275 | 5277 |
| 5276 // clear() defined by IDL. | 5278 // clear() defined by IDL. |
| 5277 | 5279 |
| 5278 List<PathSeg> get reversed => | 5280 List<PathSeg> get reversed { |
| 5279 new ReversedListView<PathSeg>(this, 0, null); | 5281 return IterableMixinWorkaround.reversedList(this); |
| 5282 } |
| 5280 | 5283 |
| 5281 void sort([int compare(PathSeg a, PathSeg b)]) { | 5284 void sort([int compare(PathSeg a, PathSeg b)]) { |
| 5282 throw new UnsupportedError("Cannot sort immutable List."); | 5285 throw new UnsupportedError("Cannot sort immutable List."); |
| 5283 } | 5286 } |
| 5284 | 5287 |
| 5285 int indexOf(PathSeg element, [int start = 0]) => | 5288 int indexOf(PathSeg element, [int start = 0]) => |
| 5286 Lists.indexOf(this, element, start, this.length); | 5289 Lists.indexOf(this, element, start, this.length); |
| 5287 | 5290 |
| 5288 int lastIndexOf(PathSeg element, [int start]) { | 5291 int lastIndexOf(PathSeg element, [int start]) { |
| 5289 if (start == null) start = length - 1; | 5292 if (start == null) start = length - 1; |
| (...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6193 throw new UnsupportedError("Cannot add to immutable List."); | 6196 throw new UnsupportedError("Cannot add to immutable List."); |
| 6194 } | 6197 } |
| 6195 | 6198 |
| 6196 // From List<String>: | 6199 // From List<String>: |
| 6197 void set length(int value) { | 6200 void set length(int value) { |
| 6198 throw new UnsupportedError("Cannot resize immutable List."); | 6201 throw new UnsupportedError("Cannot resize immutable List."); |
| 6199 } | 6202 } |
| 6200 | 6203 |
| 6201 // clear() defined by IDL. | 6204 // clear() defined by IDL. |
| 6202 | 6205 |
| 6203 List<String> get reversed => | 6206 List<String> get reversed { |
| 6204 new ReversedListView<String>(this, 0, null); | 6207 return IterableMixinWorkaround.reversedList(this); |
| 6208 } |
| 6205 | 6209 |
| 6206 void sort([int compare(String a, String b)]) { | 6210 void sort([int compare(String a, String b)]) { |
| 6207 throw new UnsupportedError("Cannot sort immutable List."); | 6211 throw new UnsupportedError("Cannot sort immutable List."); |
| 6208 } | 6212 } |
| 6209 | 6213 |
| 6210 int indexOf(String element, [int start = 0]) => | 6214 int indexOf(String element, [int start = 0]) => |
| 6211 Lists.indexOf(this, element, start, this.length); | 6215 Lists.indexOf(this, element, start, this.length); |
| 6212 | 6216 |
| 6213 int lastIndexOf(String element, [int start]) { | 6217 int lastIndexOf(String element, [int start]) { |
| 6214 if (start == null) start = length - 1; | 6218 if (start == null) start = length - 1; |
| (...skipping 1198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7413 throw new UnsupportedError("Cannot add to immutable List."); | 7417 throw new UnsupportedError("Cannot add to immutable List."); |
| 7414 } | 7418 } |
| 7415 | 7419 |
| 7416 // From List<Transform>: | 7420 // From List<Transform>: |
| 7417 void set length(int value) { | 7421 void set length(int value) { |
| 7418 throw new UnsupportedError("Cannot resize immutable List."); | 7422 throw new UnsupportedError("Cannot resize immutable List."); |
| 7419 } | 7423 } |
| 7420 | 7424 |
| 7421 // clear() defined by IDL. | 7425 // clear() defined by IDL. |
| 7422 | 7426 |
| 7423 List<Transform> get reversed => | 7427 List<Transform> get reversed { |
| 7424 new ReversedListView<Transform>(this, 0, null); | 7428 return IterableMixinWorkaround.reversedList(this); |
| 7429 } |
| 7425 | 7430 |
| 7426 void sort([int compare(Transform a, Transform b)]) { | 7431 void sort([int compare(Transform a, Transform b)]) { |
| 7427 throw new UnsupportedError("Cannot sort immutable List."); | 7432 throw new UnsupportedError("Cannot sort immutable List."); |
| 7428 } | 7433 } |
| 7429 | 7434 |
| 7430 int indexOf(Transform element, [int start = 0]) => | 7435 int indexOf(Transform element, [int start = 0]) => |
| 7431 Lists.indexOf(this, element, start, this.length); | 7436 Lists.indexOf(this, element, start, this.length); |
| 7432 | 7437 |
| 7433 int lastIndexOf(Transform element, [int start]) { | 7438 int lastIndexOf(Transform element, [int start]) { |
| 7434 if (start == null) start = length - 1; | 7439 if (start == null) start = length - 1; |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7949 | 7954 |
| 7950 // From List<ElementInstance>: | 7955 // From List<ElementInstance>: |
| 7951 void set length(int value) { | 7956 void set length(int value) { |
| 7952 throw new UnsupportedError("Cannot resize immutable List."); | 7957 throw new UnsupportedError("Cannot resize immutable List."); |
| 7953 } | 7958 } |
| 7954 | 7959 |
| 7955 void clear() { | 7960 void clear() { |
| 7956 throw new UnsupportedError("Cannot clear immutable List."); | 7961 throw new UnsupportedError("Cannot clear immutable List."); |
| 7957 } | 7962 } |
| 7958 | 7963 |
| 7959 List<ElementInstance> get reversed => | 7964 List<ElementInstance> get reversed { |
| 7960 new ReversedListView<ElementInstance>(this, 0, null); | 7965 return IterableMixinWorkaround.reversedList(this); |
| 7966 } |
| 7961 | 7967 |
| 7962 void sort([int compare(ElementInstance a, ElementInstance b)]) { | 7968 void sort([int compare(ElementInstance a, ElementInstance b)]) { |
| 7963 throw new UnsupportedError("Cannot sort immutable List."); | 7969 throw new UnsupportedError("Cannot sort immutable List."); |
| 7964 } | 7970 } |
| 7965 | 7971 |
| 7966 int indexOf(ElementInstance element, [int start = 0]) => | 7972 int indexOf(ElementInstance element, [int start = 0]) => |
| 7967 Lists.indexOf(this, element, start, this.length); | 7973 Lists.indexOf(this, element, start, this.length); |
| 7968 | 7974 |
| 7969 int lastIndexOf(ElementInstance element, [int start]) { | 7975 int lastIndexOf(ElementInstance element, [int start]) { |
| 7970 if (start == null) start = length - 1; | 7976 if (start == null) start = length - 1; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8035 | 8041 |
| 8036 List<ElementInstance> getRange(int start, int rangeLength) => | 8042 List<ElementInstance> getRange(int start, int rangeLength) => |
| 8037 Lists.getRange(this, start, rangeLength, <ElementInstance>[]); | 8043 Lists.getRange(this, start, rangeLength, <ElementInstance>[]); |
| 8038 | 8044 |
| 8039 // -- end List<ElementInstance> mixins. | 8045 // -- end List<ElementInstance> mixins. |
| 8040 | 8046 |
| 8041 @DomName('SVGElementInstanceList.item') | 8047 @DomName('SVGElementInstanceList.item') |
| 8042 @DocsEditable | 8048 @DocsEditable |
| 8043 ElementInstance item(int index) native; | 8049 ElementInstance item(int index) native; |
| 8044 } | 8050 } |
| OLD | NEW |