| Index: sdk/lib/svg/dart2js/svg_dart2js.dart
|
| diff --git a/sdk/lib/svg/dart2js/svg_dart2js.dart b/sdk/lib/svg/dart2js/svg_dart2js.dart
|
| index 491196d8ae533fd56086dcfca94ab1eff506e4cd..28ec51bfa0342bc11302a861cec87a49f495c3d3 100644
|
| --- a/sdk/lib/svg/dart2js/svg_dart2js.dart
|
| +++ b/sdk/lib/svg/dart2js/svg_dart2js.dart
|
| @@ -3153,7 +3153,7 @@ class LengthList implements JavaScriptIndexingBehavior, List<Length> native "*SV
|
| throw new UnsupportedError("Cannot resize immutable List.");
|
| }
|
|
|
| - // contains() defined by IDL.
|
| + // clear() defined by IDL.
|
|
|
| void sort([int compare(Length a, Length b)]) {
|
| throw new UnsupportedError("Cannot sort immutable List.");
|
| @@ -3188,11 +3188,31 @@ class LengthList implements JavaScriptIndexingBehavior, List<Length> native "*SV
|
| Length max([int compare(Length a, Length b)]) => IterableMixinWorkaround.max(this, compare);
|
|
|
| Length removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot removeAt on immutable List.");
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| }
|
|
|
| Length removeLast() {
|
| - throw new UnsupportedError("Cannot removeLast on immutable List.");
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void remove(Object object) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void removeAll(Iterable elements) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void retainAll(Iterable elements) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void removeMatching(bool test(Length element)) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void retainMatching(bool test(Length element)) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| }
|
|
|
| void setRange(int start, int rangeLength, List<Length> from, [int startFrom]) {
|
| @@ -3741,7 +3761,7 @@ class NumberList implements JavaScriptIndexingBehavior, List<Number> native "*SV
|
| throw new UnsupportedError("Cannot resize immutable List.");
|
| }
|
|
|
| - // contains() defined by IDL.
|
| + // clear() defined by IDL.
|
|
|
| void sort([int compare(Number a, Number b)]) {
|
| throw new UnsupportedError("Cannot sort immutable List.");
|
| @@ -3776,11 +3796,31 @@ class NumberList implements JavaScriptIndexingBehavior, List<Number> native "*SV
|
| Number max([int compare(Number a, Number b)]) => IterableMixinWorkaround.max(this, compare);
|
|
|
| Number removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot removeAt on immutable List.");
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| }
|
|
|
| Number removeLast() {
|
| - throw new UnsupportedError("Cannot removeLast on immutable List.");
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void remove(Object object) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void removeAll(Iterable elements) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void retainAll(Iterable elements) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void removeMatching(bool test(Number element)) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void retainMatching(bool test(Number element)) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| }
|
|
|
| void setRange(int start, int rangeLength, List<Number> from, [int startFrom]) {
|
| @@ -4531,7 +4571,7 @@ class PathSegList implements JavaScriptIndexingBehavior, List<PathSeg> native "*
|
| throw new UnsupportedError("Cannot resize immutable List.");
|
| }
|
|
|
| - // contains() defined by IDL.
|
| + // clear() defined by IDL.
|
|
|
| void sort([int compare(PathSeg a, PathSeg b)]) {
|
| throw new UnsupportedError("Cannot sort immutable List.");
|
| @@ -4566,11 +4606,31 @@ class PathSegList implements JavaScriptIndexingBehavior, List<PathSeg> native "*
|
| PathSeg max([int compare(PathSeg a, PathSeg b)]) => IterableMixinWorkaround.max(this, compare);
|
|
|
| PathSeg removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot removeAt on immutable List.");
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| }
|
|
|
| PathSeg removeLast() {
|
| - throw new UnsupportedError("Cannot removeLast on immutable List.");
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void remove(Object object) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void removeAll(Iterable elements) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void retainAll(Iterable elements) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void removeMatching(bool test(PathSeg element)) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void retainMatching(bool test(PathSeg element)) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| }
|
|
|
| void setRange(int start, int rangeLength, List<PathSeg> from, [int startFrom]) {
|
| @@ -5332,7 +5392,7 @@ class StringList implements JavaScriptIndexingBehavior, List<String> native "*SV
|
| throw new UnsupportedError("Cannot resize immutable List.");
|
| }
|
|
|
| - // contains() defined by IDL.
|
| + // clear() defined by IDL.
|
|
|
| void sort([int compare(String a, String b)]) {
|
| throw new UnsupportedError("Cannot sort immutable List.");
|
| @@ -5367,11 +5427,31 @@ class StringList implements JavaScriptIndexingBehavior, List<String> native "*SV
|
| String max([int compare(String a, String b)]) => IterableMixinWorkaround.max(this, compare);
|
|
|
| String removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot removeAt on immutable List.");
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| }
|
|
|
| String removeLast() {
|
| - throw new UnsupportedError("Cannot removeLast on immutable List.");
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void remove(Object object) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void removeAll(Iterable elements) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void retainAll(Iterable elements) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void removeMatching(bool test(String element)) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void retainMatching(bool test(String element)) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| }
|
|
|
| void setRange(int start, int rangeLength, List<String> from, [int startFrom]) {
|
| @@ -6395,7 +6475,7 @@ class TransformList implements List<Transform>, JavaScriptIndexingBehavior nativ
|
| throw new UnsupportedError("Cannot resize immutable List.");
|
| }
|
|
|
| - // contains() defined by IDL.
|
| + // clear() defined by IDL.
|
|
|
| void sort([int compare(Transform a, Transform b)]) {
|
| throw new UnsupportedError("Cannot sort immutable List.");
|
| @@ -6430,11 +6510,31 @@ class TransformList implements List<Transform>, JavaScriptIndexingBehavior nativ
|
| Transform max([int compare(Transform a, Transform b)]) => IterableMixinWorkaround.max(this, compare);
|
|
|
| Transform removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot removeAt on immutable List.");
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| }
|
|
|
| Transform removeLast() {
|
| - throw new UnsupportedError("Cannot removeLast on immutable List.");
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void remove(Object object) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void removeAll(Iterable elements) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void retainAll(Iterable elements) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void removeMatching(bool test(Transform element)) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void retainMatching(bool test(Transform element)) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| }
|
|
|
| void setRange(int start, int rangeLength, List<Transform> from, [int startFrom]) {
|
| @@ -6898,11 +6998,31 @@ class _ElementInstanceList implements JavaScriptIndexingBehavior, List<ElementIn
|
| ElementInstance max([int compare(ElementInstance a, ElementInstance b)]) => IterableMixinWorkaround.max(this, compare);
|
|
|
| ElementInstance removeAt(int pos) {
|
| - throw new UnsupportedError("Cannot removeAt on immutable List.");
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| }
|
|
|
| ElementInstance removeLast() {
|
| - throw new UnsupportedError("Cannot removeLast on immutable List.");
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void remove(Object object) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void removeAll(Iterable elements) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void retainAll(Iterable elements) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void removeMatching(bool test(ElementInstance element)) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| + }
|
| +
|
| + void retainMatching(bool test(ElementInstance element)) {
|
| + throw new UnsupportedError("Cannot remove from immutable List.");
|
| }
|
|
|
| void setRange(int start, int rangeLength, List<ElementInstance> from, [int startFrom]) {
|
|
|