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

Unified Diff: sdk/lib/svg/dart2js/svg_dart2js.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/html/html_common/filtered_element_list.dart ('k') | sdk/lib/svg/dartium/svg_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7e0714362702724b7938b2507697ad9c8992d18b..df581acacbad423434426ab98759cee9805a17cd 100644
--- a/sdk/lib/svg/dart2js/svg_dart2js.dart
+++ b/sdk/lib/svg/dart2js/svg_dart2js.dart
@@ -3187,6 +3187,10 @@ class LengthList implements JavaScriptIndexingBehavior, List<Length> native "*SV
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.");
}
@@ -3816,6 +3820,10 @@ class NumberList implements JavaScriptIndexingBehavior, List<Number> native "*SV
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.");
}
@@ -4721,6 +4729,10 @@ class PathSegList implements JavaScriptIndexingBehavior, List<PathSeg> native "*
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.");
}
@@ -5611,6 +5623,10 @@ class StringList implements JavaScriptIndexingBehavior, List<String> native "*SV
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.");
}
@@ -6778,6 +6794,10 @@ class TransformList implements List<Transform>, JavaScriptIndexingBehavior nativ
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.");
}
@@ -7302,6 +7322,10 @@ class _ElementInstanceList implements JavaScriptIndexingBehavior, List<ElementIn
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/html/html_common/filtered_element_list.dart ('k') | sdk/lib/svg/dartium/svg_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698