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

Unified 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 side-by-side diff with in-line comments
Download patch
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 f4945834b3a7bf53835ebb1f5a230d9d4af6c8dc..bc719db8764a700cf8254e60b3a939e0bd266ddc 100644
--- a/sdk/lib/svg/dart2js/svg_dart2js.dart
+++ b/sdk/lib/svg/dart2js/svg_dart2js.dart
@@ -3147,6 +3147,14 @@ class LengthList implements JavaScriptIndexingBehavior, List<Length> native "*SV
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<Length> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<Length> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Length removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -3175,6 +3183,14 @@ class LengthList implements JavaScriptIndexingBehavior, List<Length> native "*SV
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<Length> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [Length fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<Length> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -3775,6 +3791,14 @@ class NumberList implements JavaScriptIndexingBehavior, List<Number> native "*SV
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<Number> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<Number> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Number removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -3803,6 +3827,14 @@ class NumberList implements JavaScriptIndexingBehavior, List<Number> native "*SV
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<Number> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [Number fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<Number> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -4634,6 +4666,14 @@ class PathSegList implements JavaScriptIndexingBehavior, List<PathSeg> native "*
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<PathSeg> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<PathSeg> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
PathSeg removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -4662,6 +4702,14 @@ class PathSegList implements JavaScriptIndexingBehavior, List<PathSeg> native "*
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<PathSeg> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [PathSeg fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<PathSeg> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -5523,6 +5571,14 @@ class StringList implements JavaScriptIndexingBehavior, List<String> native "*SV
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<String> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<String> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
String removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -5551,6 +5607,14 @@ class StringList implements JavaScriptIndexingBehavior, List<String> native "*SV
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<String> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [String fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<String> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -6685,6 +6749,14 @@ class TransformList implements List<Transform>, JavaScriptIndexingBehavior nativ
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<Transform> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<Transform> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Transform removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -6713,6 +6785,14 @@ class TransformList implements List<Transform>, JavaScriptIndexingBehavior nativ
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<Transform> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [Transform fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<Transform> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -7208,6 +7288,14 @@ class _ElementInstanceList implements JavaScriptIndexingBehavior, List<ElementIn
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<ElementInstance> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<ElementInstance> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
ElementInstance removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -7236,6 +7324,14 @@ class _ElementInstanceList implements JavaScriptIndexingBehavior, List<ElementIn
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<ElementInstance> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [ElementInstance fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<ElementInstance> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);

Powered by Google App Engine
This is Rietveld 408576698