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

Unified Diff: sdk/lib/web_sql/dartium/web_sql_dartium.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/web_sql/dartium/web_sql_dartium.dart
diff --git a/sdk/lib/web_sql/dartium/web_sql_dartium.dart b/sdk/lib/web_sql/dartium/web_sql_dartium.dart
index 8df095dbf69f87e63310dab03fbc7647bda3d806..4f2050e16b4bc4e73b62a8a240f351efcab98b9e 100644
--- a/sdk/lib/web_sql/dartium/web_sql_dartium.dart
+++ b/sdk/lib/web_sql/dartium/web_sql_dartium.dart
@@ -360,6 +360,14 @@ class SqlResultSetRowList extends NativeFieldWrapperClass1 implements List<Map>
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<Map> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<Map> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Map removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -388,6 +396,14 @@ class SqlResultSetRowList extends NativeFieldWrapperClass1 implements List<Map>
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<Map> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [Map fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<Map> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);

Powered by Google App Engine
This is Rietveld 408576698