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

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: Address comments, small fixes. 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
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | sdk/lib/html/html_common/filtered_element_list.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 dfe548507359978ac83d76748dc005dddb78a773..e02dd71a0823e7097d7f17566cfe4e8199a21d32 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -7967,7 +7967,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);
}
@@ -8238,7 +8238,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);
}
@@ -8627,7 +8627,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);
}
@@ -8922,7 +8922,7 @@ class _ChildrenElementList implements List {
}
}
- List<Element> get reversed {
+ Iterable<Element> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -9156,7 +9156,7 @@ class _FrozenElementList implements List {
throw new UnsupportedError('');
}
- List<Element> get reversed {
+ Iterable<Element> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -11465,7 +11465,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);
}
@@ -12079,7 +12079,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);
}
@@ -12317,7 +12317,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);
}
@@ -12908,7 +12908,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);
}
@@ -13120,7 +13120,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);
}
@@ -15455,7 +15455,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);
}
@@ -15693,7 +15693,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);
}
@@ -15931,7 +15931,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);
}
@@ -18699,7 +18699,7 @@ class _ChildNodeListLazy implements List {
return this[index];
}
- List<Node> get reversed {
+ Iterable<Node> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -19105,7 +19105,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);
}
@@ -21732,7 +21732,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);
}
@@ -22053,7 +22053,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);
}
@@ -22711,7 +22711,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);
}
@@ -24033,7 +24033,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);
}
@@ -24245,7 +24245,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);
}
@@ -24664,7 +24664,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);
}
@@ -25158,7 +25158,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);
}
@@ -25396,7 +25396,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);
}
@@ -25634,7 +25634,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);
}
@@ -25870,7 +25870,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);
}
@@ -29527,7 +29527,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);
}
@@ -29731,7 +29731,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);
}
@@ -29935,7 +29935,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);
}
@@ -30282,7 +30282,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);
}
@@ -30486,7 +30486,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);
}
@@ -30690,7 +30690,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);
}
@@ -30985,7 +30985,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);
}
@@ -31189,7 +31189,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);
}
@@ -31417,7 +31417,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);
}
@@ -31621,7 +31621,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);
}
@@ -31825,7 +31825,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);
}
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | sdk/lib/html/html_common/filtered_element_list.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698