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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Side-by-side diff isn't available for this file because of its large size.
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:
Download patch
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index e78701b22fe9579078ffc181dac32c6cf6aee742..69e4e9ca270b06a6d7adbc06ff58f960923a41be 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -6961,6 +6961,14 @@ class DomMimeTypeArray implements JavaScriptIndexingBehavior, List<DomMimeType>
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<DomMimeType> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<DomMimeType> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
DomMimeType removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -6989,6 +6997,14 @@ class DomMimeTypeArray implements JavaScriptIndexingBehavior, List<DomMimeType>
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<DomMimeType> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [DomMimeType fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<DomMimeType> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -7219,6 +7235,14 @@ class DomPluginArray implements JavaScriptIndexingBehavior, List<DomPlugin> nati
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<DomPlugin> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<DomPlugin> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
DomPlugin removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -7247,6 +7271,14 @@ class DomPluginArray implements JavaScriptIndexingBehavior, List<DomPlugin> nati
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<DomPlugin> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [DomPlugin fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<DomPlugin> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -7625,6 +7657,14 @@ class DomStringList implements JavaScriptIndexingBehavior, List<String> native "
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.");
}
@@ -7653,6 +7693,14 @@ class DomStringList implements JavaScriptIndexingBehavior, List<String> native "
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);
@@ -7890,6 +7938,14 @@ class _ChildrenElementList extends ListBase<Element> {
throw new UnimplementedError();
}
+ void replaceRange(int start, int end, Iterable<Element> iterable) {
+ throw new UnimplementedError();
+ }
+
+ void fillRange(int start, int end, [Element fillValue]) {
+ throw new UnimplementedError();
+ }
+
void remove(Object object) {
if (object is Element) {
Element element = object;
@@ -7940,6 +7996,14 @@ class _ChildrenElementList extends ListBase<Element> {
}
}
+ void insertAll(int index, Iterable<Element> iterable) {
+ throw new UnimplementedError();
+ }
+
+ void setAll(int index, Iterable<Element> iterable) {
+ throw new UnimplementedError();
+ }
+
void clear() {
// It is unclear if we want to keep non element nodes?
_element.text = '';
@@ -10337,6 +10401,14 @@ class FileList implements JavaScriptIndexingBehavior, List<File> native "*FileLi
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<File> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<File> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
File removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -10365,6 +10437,14 @@ class FileList implements JavaScriptIndexingBehavior, List<File> native "*FileLi
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<File> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [File fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<File> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -10817,6 +10897,14 @@ class Float32Array extends ArrayBufferView implements JavaScriptIndexingBehavior
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<num> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<num> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
num removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -10845,6 +10933,14 @@ class Float32Array extends ArrayBufferView implements JavaScriptIndexingBehavior
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<num> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [num fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<num> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -11039,6 +11135,14 @@ class Float64Array extends ArrayBufferView implements JavaScriptIndexingBehavior
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<num> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<num> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
num removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -11067,6 +11171,14 @@ class Float64Array extends ArrayBufferView implements JavaScriptIndexingBehavior
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<num> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [num fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<num> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -11681,6 +11793,14 @@ class HtmlAllCollection implements JavaScriptIndexingBehavior, List<Node> native
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<Node> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<Node> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Node removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -11709,6 +11829,14 @@ class HtmlAllCollection implements JavaScriptIndexingBehavior, List<Node> native
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<Node> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [Node fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<Node> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -11892,6 +12020,14 @@ class HtmlCollection implements JavaScriptIndexingBehavior, List<Node> native "*
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<Node> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<Node> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Node removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -11920,6 +12056,14 @@ class HtmlCollection implements JavaScriptIndexingBehavior, List<Node> native "*
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<Node> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [Node fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<Node> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -13926,6 +14070,14 @@ class Int16Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<int> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<int> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
int removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -13954,6 +14106,14 @@ class Int16Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<int> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [int fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<int> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -14148,6 +14308,14 @@ class Int32Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<int> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<int> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
int removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -14176,6 +14344,14 @@ class Int32Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<int> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [int fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<int> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -14370,6 +14546,14 @@ class Int8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, L
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<int> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<int> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
int removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -14398,6 +14582,14 @@ class Int8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, L
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<int> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [int fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<int> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -16759,6 +16951,14 @@ class _ChildNodeListLazy extends ListBase<Node> {
}
}
+ void insertAll(int index, Iterable<Node> iterable) {
+ throw new UnimplementedError();
+ }
+
+ void setAll(int index, Iterable<Node> iterable) {
+ throw new UnimplementedError();
+ }
+
Node removeLast() {
final result = last;
if (result != null) {
@@ -16843,6 +17043,14 @@ class _ChildNodeListLazy extends ListBase<Node> {
throw new UnimplementedError("NodeList.getRange");
}
+ void replaceRange(int start, int end, Iterable<Node> iterable) {
+ throw new UnimplementedError("NodeList.replaceRange");
+ }
+
+ void fillRange(int start, int end, [Node fillValue]) {
+ throw new UnimplementedError("NodeList.fillRange");
+ }
+
List<Node> sublist(int start, [int end]) {
if (end == null) end == length;
return Lists.getRange(this, start, end, <Node>[]);
@@ -17373,6 +17581,14 @@ class NodeList implements JavaScriptIndexingBehavior, List<Node> native "*NodeLi
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<Node> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<Node> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Node removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -17401,6 +17617,14 @@ class NodeList implements JavaScriptIndexingBehavior, List<Node> native "*NodeLi
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<Node> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [Node fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<Node> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -19713,6 +19937,14 @@ class SourceBufferList extends EventTarget implements JavaScriptIndexingBehavior
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<SourceBuffer> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<SourceBuffer> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
SourceBuffer removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -19741,6 +19973,14 @@ class SourceBufferList extends EventTarget implements JavaScriptIndexingBehavior
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<SourceBuffer> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [SourceBuffer fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<SourceBuffer> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -19997,6 +20237,14 @@ class SpeechGrammarList implements JavaScriptIndexingBehavior, List<SpeechGramma
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<SpeechGrammar> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<SpeechGrammar> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
SpeechGrammar removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -20025,6 +20273,14 @@ class SpeechGrammarList implements JavaScriptIndexingBehavior, List<SpeechGramma
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<SpeechGrammar> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [SpeechGrammar fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<SpeechGrammar> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -21444,6 +21700,14 @@ class TextTrackCueList implements List<TextTrackCue>, JavaScriptIndexingBehavior
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<TextTrackCue> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<TextTrackCue> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
TextTrackCue removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -21472,6 +21736,14 @@ class TextTrackCueList implements List<TextTrackCue>, JavaScriptIndexingBehavior
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<TextTrackCue> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [TextTrackCue fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<TextTrackCue> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -21653,6 +21925,14 @@ class TextTrackList extends EventTarget implements JavaScriptIndexingBehavior, L
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<TextTrack> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<TextTrack> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
TextTrack removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -21681,6 +21961,14 @@ class TextTrackList extends EventTarget implements JavaScriptIndexingBehavior, L
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<TextTrack> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [TextTrack fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<TextTrack> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -22088,6 +22376,14 @@ class TouchList implements JavaScriptIndexingBehavior, List<Touch> native "*Touc
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<Touch> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<Touch> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Touch removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -22116,6 +22412,14 @@ class TouchList implements JavaScriptIndexingBehavior, List<Touch> native "*Touc
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<Touch> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [Touch fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<Touch> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -22560,6 +22864,14 @@ class Uint16Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<int> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<int> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
int removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -22588,6 +22900,14 @@ class Uint16Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<int> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [int fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<int> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -22782,6 +23102,14 @@ class Uint32Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<int> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<int> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
int removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -22810,6 +23138,14 @@ class Uint32Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<int> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [int fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<int> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -23004,6 +23340,14 @@ class Uint8Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<int> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<int> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
int removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -23032,6 +23376,14 @@ class Uint8Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<int> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [int fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<int> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -23223,6 +23575,14 @@ class Uint8ClampedArray extends Uint8Array implements JavaScriptIndexingBehavior
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<int> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<int> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
int removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -23251,6 +23611,14 @@ class Uint8ClampedArray extends Uint8Array implements JavaScriptIndexingBehavior
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<int> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [int fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<int> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -25493,6 +25861,14 @@ class _ClientRectList implements JavaScriptIndexingBehavior, List<Rect> native "
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<Rect> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<Rect> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Rect removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -25521,6 +25897,14 @@ class _ClientRectList implements JavaScriptIndexingBehavior, List<Rect> native "
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<Rect> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [Rect fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<Rect> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -25703,6 +26087,14 @@ class _CssRuleList implements JavaScriptIndexingBehavior, List<CssRule> native "
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<CssRule> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<CssRule> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
CssRule removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -25731,6 +26123,14 @@ class _CssRuleList implements JavaScriptIndexingBehavior, List<CssRule> native "
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<CssRule> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [CssRule fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<CssRule> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -25904,6 +26304,14 @@ class _CssValueList extends _CSSValue implements JavaScriptIndexingBehavior, Lis
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<_CSSValue> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<_CSSValue> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
_CSSValue removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -25932,6 +26340,14 @@ class _CssValueList extends _CSSValue implements JavaScriptIndexingBehavior, Lis
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<_CSSValue> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [_CSSValue fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<_CSSValue> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -26173,6 +26589,14 @@ class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "*En
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<Entry> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<Entry> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Entry removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -26201,6 +26625,14 @@ class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "*En
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<Entry> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [Entry fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<Entry> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -26374,6 +26806,14 @@ class _EntryArraySync implements JavaScriptIndexingBehavior, List<_EntrySync> na
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<_EntrySync> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<_EntrySync> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
_EntrySync removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -26402,6 +26842,14 @@ class _EntryArraySync implements JavaScriptIndexingBehavior, List<_EntrySync> na
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<_EntrySync> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [_EntrySync fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<_EntrySync> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -26618,6 +27066,14 @@ class _GamepadList implements JavaScriptIndexingBehavior, List<Gamepad> native "
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<Gamepad> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<Gamepad> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Gamepad removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -26646,6 +27102,14 @@ class _GamepadList implements JavaScriptIndexingBehavior, List<Gamepad> native "
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<Gamepad> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [Gamepad fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<Gamepad> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -26882,6 +27346,14 @@ class _NamedNodeMap implements JavaScriptIndexingBehavior, List<Node> native "*N
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<Node> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<Node> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Node removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -26910,6 +27382,14 @@ class _NamedNodeMap implements JavaScriptIndexingBehavior, List<Node> native "*N
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<Node> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [Node fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<Node> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -27154,6 +27634,14 @@ class _SpeechInputResultList implements JavaScriptIndexingBehavior, List<SpeechI
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<SpeechInputResult> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<SpeechInputResult> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
SpeechInputResult removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -27182,6 +27670,14 @@ class _SpeechInputResultList implements JavaScriptIndexingBehavior, List<SpeechI
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<SpeechInputResult> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [SpeechInputResult fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<SpeechInputResult> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -27355,6 +27851,14 @@ class _SpeechRecognitionResultList implements JavaScriptIndexingBehavior, List<S
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<SpeechRecognitionResult> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<SpeechRecognitionResult> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
SpeechRecognitionResult removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -27383,6 +27887,14 @@ class _SpeechRecognitionResultList implements JavaScriptIndexingBehavior, List<S
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<SpeechRecognitionResult> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [SpeechRecognitionResult fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<SpeechRecognitionResult> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -27556,6 +28068,14 @@ class _StyleSheetList implements JavaScriptIndexingBehavior, List<StyleSheet> na
throw new UnsupportedError("Cannot add to immutable List.");
}
+ void insertAll(int index, Iterable<StyleSheet> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<StyleSheet> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
StyleSheet removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
@@ -27584,6 +28104,14 @@ class _StyleSheetList implements JavaScriptIndexingBehavior, List<StyleSheet> na
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
+ void replaceRange(int start, int end, Iterable<StyleSheet> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [StyleSheet fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
Iterable<StyleSheet> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -30701,6 +31229,12 @@ class _WrappedList<E> implements List<E> {
void insert(int index, E element) => _list.insert(index, element);
+ void insertAll(int index, Iterable<E> iterable) =>
+ _list.insertAll(index, iterable);
+
+ void setAll(int index, Iterable<E> iterable) =>
+ _list.setAll(index, iterable);
+
E removeAt(int index) => _list.removeAt(index);
E removeLast() => _list.removeLast();
@@ -30715,6 +31249,14 @@ class _WrappedList<E> implements List<E> {
void removeRange(int start, int end) { _list.removeRange(start, end); }
+ void replaceRange(int start, int end, Iterable<E> iterable) {
+ _list.replaceRange(start, end, iterable);
+ }
+
+ void fillRange(int start, int end, [E fillValue]) {
+ _list.fillRange(start, end, fillValue);
+ }
+
Map<int, E> asMap() => _list.asMap();
String toString() {

Powered by Google App Engine
This is Rietveld 408576698