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

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

Issue 12262037: Make List.skip, List.take and List.reversed return Iterables, not Lists. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index c5cd9207bf85cc3fc9dfb8171fd8cc1fce776b33..8336d45cc3963ec70353ff7f942f89206ffce72b 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -8144,7 +8144,7 @@ class DomMimeTypeArray extends NativeFieldWrapperClass1 implements List<DomMimeT
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<DomMimeType> get reversed {
+ Iterable<DomMimeType> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -8415,7 +8415,7 @@ class DomPluginArray extends NativeFieldWrapperClass1 implements List<DomPlugin>
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<DomPlugin> get reversed {
+ Iterable<DomPlugin> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -8804,7 +8804,7 @@ class DomStringList extends NativeFieldWrapperClass1 implements List<String> {
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<String> get reversed {
+ Iterable<String> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -9099,7 +9099,7 @@ class _ChildrenElementList implements List {
}
}
- List<Element> get reversed {
+ Iterable<Element> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -9333,7 +9333,7 @@ class _FrozenElementList implements List {
throw new UnsupportedError('');
}
- List<Element> get reversed {
+ Iterable<Element> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -11765,7 +11765,7 @@ class FileList extends NativeFieldWrapperClass1 implements List<File> {
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<File> get reversed {
+ Iterable<File> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -12437,7 +12437,7 @@ class Float32Array extends ArrayBufferView implements List<num> {
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<num> get reversed {
+ Iterable<num> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -12675,7 +12675,7 @@ class Float64Array extends ArrayBufferView implements List<num> {
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<num> get reversed {
+ Iterable<num> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -13266,7 +13266,7 @@ class HtmlAllCollection extends NativeFieldWrapperClass1 implements List<Node> {
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<Node> get reversed {
+ Iterable<Node> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -13478,7 +13478,7 @@ class HtmlCollection extends NativeFieldWrapperClass1 implements List<Node> {
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<Node> get reversed {
+ Iterable<Node> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -15894,7 +15894,7 @@ class Int16Array extends ArrayBufferView implements List<int> {
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<int> get reversed {
+ Iterable<int> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -16132,7 +16132,7 @@ class Int32Array extends ArrayBufferView implements List<int> {
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<int> get reversed {
+ Iterable<int> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -16370,7 +16370,7 @@ class Int8Array extends ArrayBufferView implements List<int> {
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<int> get reversed {
+ Iterable<int> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -19270,7 +19270,7 @@ class _ChildNodeListLazy implements List {
return this[index];
}
- List<Node> get reversed {
+ Iterable<Node> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -19676,7 +19676,7 @@ class NodeList extends NativeFieldWrapperClass1 implements List<Node> {
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<Node> get reversed {
+ Iterable<Node> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -22395,7 +22395,7 @@ class SourceBufferList extends EventTarget implements List<SourceBuffer> {
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<SourceBuffer> get reversed {
+ Iterable<SourceBuffer> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -22716,7 +22716,7 @@ class SpeechGrammarList extends NativeFieldWrapperClass1 implements List<SpeechG
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<SpeechGrammar> get reversed {
+ Iterable<SpeechGrammar> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -23420,7 +23420,7 @@ class SqlResultSetRowList extends NativeFieldWrapperClass1 implements List<Map>
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<Map> get reversed {
+ Iterable<Map> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -24777,7 +24777,7 @@ class TextTrackCueList extends NativeFieldWrapperClass1 implements List<TextTrac
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<TextTrackCue> get reversed {
+ Iterable<TextTrackCue> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -24995,7 +24995,7 @@ class TextTrackList extends EventTarget implements List<TextTrack> {
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<TextTrack> get reversed {
+ Iterable<TextTrack> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -25424,7 +25424,7 @@ class TouchList extends NativeFieldWrapperClass1 implements List<Touch> {
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<Touch> get reversed {
+ Iterable<Touch> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -25918,7 +25918,7 @@ class Uint16Array extends ArrayBufferView implements List<int> {
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<int> get reversed {
+ Iterable<int> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -26156,7 +26156,7 @@ class Uint32Array extends ArrayBufferView implements List<int> {
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<int> get reversed {
+ Iterable<int> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -26394,7 +26394,7 @@ class Uint8Array extends ArrayBufferView implements List<int> {
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<int> get reversed {
+ Iterable<int> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -26630,7 +26630,7 @@ class Uint8ClampedArray extends Uint8Array implements List<int> {
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<int> get reversed {
+ Iterable<int> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -30573,7 +30573,7 @@ class _ClientRectList extends NativeFieldWrapperClass1 implements List<ClientRec
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<ClientRect> get reversed {
+ Iterable<ClientRect> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -30777,7 +30777,7 @@ class _CssRuleList extends NativeFieldWrapperClass1 implements List<CssRule> {
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<CssRule> get reversed {
+ Iterable<CssRule> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -30981,7 +30981,7 @@ class _CssValueList extends CssValue implements List<CssValue> {
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<CssValue> get reversed {
+ Iterable<CssValue> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -31328,7 +31328,7 @@ class _EntryArray extends NativeFieldWrapperClass1 implements List<Entry> {
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<Entry> get reversed {
+ Iterable<Entry> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -31532,7 +31532,7 @@ class _EntryArraySync extends NativeFieldWrapperClass1 implements List<EntrySync
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<EntrySync> get reversed {
+ Iterable<EntrySync> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -31736,7 +31736,7 @@ class _GamepadList extends NativeFieldWrapperClass1 implements List<Gamepad> {
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<Gamepad> get reversed {
+ Iterable<Gamepad> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -32083,7 +32083,7 @@ class _MediaStreamList extends NativeFieldWrapperClass1 implements List<MediaStr
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<MediaStream> get reversed {
+ Iterable<MediaStream> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -32287,7 +32287,7 @@ class _NamedNodeMap extends NativeFieldWrapperClass1 implements List<Node> {
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<Node> get reversed {
+ Iterable<Node> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -32515,7 +32515,7 @@ class _SpeechInputResultList extends NativeFieldWrapperClass1 implements List<Sp
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<SpeechInputResult> get reversed {
+ Iterable<SpeechInputResult> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -32719,7 +32719,7 @@ class _SpeechRecognitionResultList extends NativeFieldWrapperClass1 implements L
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<SpeechRecognitionResult> get reversed {
+ Iterable<SpeechRecognitionResult> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -32923,7 +32923,7 @@ class _StyleSheetList extends NativeFieldWrapperClass1 implements List<StyleShee
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<StyleSheet> get reversed {
+ Iterable<StyleSheet> get reversed {
return IterableMixinWorkaround.reversedList(this);
}

Powered by Google App Engine
This is Rietveld 408576698