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

Unified Diff: sdk/lib/svg/dartium/svg_dartium.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/svg/dart2js/svg_dart2js.dart ('k') | sdk/lib/web_sql/dart2js/web_sql_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/svg/dartium/svg_dartium.dart
diff --git a/sdk/lib/svg/dartium/svg_dartium.dart b/sdk/lib/svg/dartium/svg_dartium.dart
index c5a3d54ce7cb132b38c1e24ebda483d542640c57..2d551a32a49c61803cfc6f2926de111a1274946b 100644
--- a/sdk/lib/svg/dartium/svg_dartium.dart
+++ b/sdk/lib/svg/dartium/svg_dartium.dart
@@ -3450,6 +3450,10 @@ class LengthList extends NativeFieldWrapperClass1 implements List<Length> {
Length max([int compare(Length a, Length b)]) =>
IterableMixinWorkaround.max(this, compare);
+ void insert(int index, Length element) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
Length removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -4156,6 +4160,10 @@ class NumberList extends NativeFieldWrapperClass1 implements List<Number> {
Number max([int compare(Number a, Number b)]) =>
IterableMixinWorkaround.max(this, compare);
+ void insert(int index, Number element) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
Number removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -5338,6 +5346,10 @@ class PathSegList extends NativeFieldWrapperClass1 implements List<PathSeg> {
PathSeg max([int compare(PathSeg a, PathSeg b)]) =>
IterableMixinWorkaround.max(this, compare);
+ void insert(int index, PathSeg element) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
PathSeg removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -6325,6 +6337,10 @@ class StringList extends NativeFieldWrapperClass1 implements List<String> {
String max([int compare(String a, String b)]) =>
IterableMixinWorkaround.max(this, compare);
+ void insert(int index, String element) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
String removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -7581,6 +7597,10 @@ class TransformList extends NativeFieldWrapperClass1 implements List<Transform>
Transform max([int compare(Transform a, Transform b)]) =>
IterableMixinWorkaround.max(this, compare);
+ void insert(int index, Transform element) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
Transform removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -8159,6 +8179,10 @@ class _ElementInstanceList extends NativeFieldWrapperClass1 implements List<Elem
ElementInstance max([int compare(ElementInstance a, ElementInstance b)]) =>
IterableMixinWorkaround.max(this, compare);
+ void insert(int index, ElementInstance element) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
ElementInstance removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
« no previous file with comments | « sdk/lib/svg/dart2js/svg_dart2js.dart ('k') | sdk/lib/web_sql/dart2js/web_sql_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698