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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.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/core/list.dart ('k') | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 71f7cce8748de47a99dc60ce222d900cd504c501..5ed3f04db4c93afb2ae2bc808e99d40995d7cc14 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -7266,7 +7266,7 @@ class DomMimeTypeArray implements JavaScriptIndexingBehavior, List<DomMimeType>
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<DomMimeType> get reversed {
+ Iterable<DomMimeType> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -7523,7 +7523,7 @@ class DomPluginArray implements JavaScriptIndexingBehavior, List<DomPlugin> nati
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<DomPlugin> get reversed {
+ Iterable<DomPlugin> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -7887,7 +7887,7 @@ class DomStringList implements JavaScriptIndexingBehavior, List<String> native "
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<String> get reversed {
+ Iterable<String> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -8161,7 +8161,7 @@ class _ChildrenElementList implements List {
}
}
- List<Element> get reversed {
+ Iterable<Element> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -8395,7 +8395,7 @@ class _FrozenElementList implements List {
throw new UnsupportedError('');
}
- List<Element> get reversed {
+ Iterable<Element> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -10729,7 +10729,7 @@ class FileList implements JavaScriptIndexingBehavior, List<File> native "*FileLi
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<File> get reversed {
+ Iterable<File> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -11289,7 +11289,7 @@ class Float32Array extends ArrayBufferView implements JavaScriptIndexingBehavior
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<num> get reversed {
+ Iterable<num> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -11508,7 +11508,7 @@ class Float64Array extends ArrayBufferView implements JavaScriptIndexingBehavior
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<num> get reversed {
+ Iterable<num> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -12029,7 +12029,7 @@ class HtmlAllCollection implements JavaScriptIndexingBehavior, List<Node> native
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<Node> get reversed {
+ Iterable<Node> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -12239,7 +12239,7 @@ class HtmlCollection implements JavaScriptIndexingBehavior, List<Node> native "*
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<Node> get reversed {
+ Iterable<Node> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -14233,7 +14233,7 @@ class Int16Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<int> get reversed {
+ Iterable<int> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -14452,7 +14452,7 @@ class Int32Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<int> get reversed {
+ Iterable<int> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -14671,7 +14671,7 @@ class Int8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, L
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<int> get reversed {
+ Iterable<int> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -17160,7 +17160,7 @@ class _ChildNodeListLazy implements List {
return this[index];
}
- List<Node> get reversed {
+ Iterable<Node> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -17569,7 +17569,7 @@ class NodeList implements JavaScriptIndexingBehavior, List<Node> native "*NodeLi
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<Node> get reversed {
+ Iterable<Node> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -19889,7 +19889,7 @@ class SourceBufferList extends EventTarget implements JavaScriptIndexingBehavior
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<SourceBuffer> get reversed {
+ Iterable<SourceBuffer> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -20172,7 +20172,7 @@ class SpeechGrammarList implements JavaScriptIndexingBehavior, List<SpeechGramma
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<SpeechGrammar> get reversed {
+ Iterable<SpeechGrammar> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -20743,7 +20743,7 @@ class SqlResultSetRowList implements JavaScriptIndexingBehavior, List<Map> nativ
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<Map> get reversed {
+ Iterable<Map> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -21829,7 +21829,7 @@ class TextTrackCueList implements List<TextTrackCue>, JavaScriptIndexingBehavior
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<TextTrackCue> get reversed {
+ Iterable<TextTrackCue> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -22037,7 +22037,7 @@ class TextTrackList extends EventTarget implements JavaScriptIndexingBehavior, L
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<TextTrack> get reversed {
+ Iterable<TextTrack> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -22452,7 +22452,7 @@ class TouchList implements JavaScriptIndexingBehavior, List<Touch> native "*Touc
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<Touch> get reversed {
+ Iterable<Touch> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -22901,7 +22901,7 @@ class Uint16Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<int> get reversed {
+ Iterable<int> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -23120,7 +23120,7 @@ class Uint32Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<int> get reversed {
+ Iterable<int> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -23339,7 +23339,7 @@ class Uint8Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<int> get reversed {
+ Iterable<int> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -23555,7 +23555,7 @@ class Uint8ClampedArray extends Uint8Array implements JavaScriptIndexingBehavior
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<int> get reversed {
+ Iterable<int> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -27233,7 +27233,7 @@ class _ClientRectList implements JavaScriptIndexingBehavior, List<ClientRect> na
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<ClientRect> get reversed {
+ Iterable<ClientRect> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -27433,7 +27433,7 @@ class _CssRuleList implements JavaScriptIndexingBehavior, List<CssRule> native "
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<CssRule> get reversed {
+ Iterable<CssRule> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -27633,7 +27633,7 @@ class _CssValueList extends CssValue implements List<CssValue>, JavaScriptIndexi
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<CssValue> get reversed {
+ Iterable<CssValue> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -27833,7 +27833,7 @@ class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "*En
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<Entry> get reversed {
+ Iterable<Entry> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -28033,7 +28033,7 @@ class _EntryArraySync implements JavaScriptIndexingBehavior, List<EntrySync> nat
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<EntrySync> get reversed {
+ Iterable<EntrySync> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -28233,7 +28233,7 @@ class _GamepadList implements JavaScriptIndexingBehavior, List<Gamepad> native "
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<Gamepad> get reversed {
+ Iterable<Gamepad> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -28496,7 +28496,7 @@ class _MediaStreamList implements JavaScriptIndexingBehavior, List<MediaStream>
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<MediaStream> get reversed {
+ Iterable<MediaStream> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -28696,7 +28696,7 @@ class _NamedNodeMap implements JavaScriptIndexingBehavior, List<Node> native "*N
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<Node> get reversed {
+ Iterable<Node> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -28920,7 +28920,7 @@ class _SpeechInputResultList implements JavaScriptIndexingBehavior, List<SpeechI
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<SpeechInputResult> get reversed {
+ Iterable<SpeechInputResult> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -29120,7 +29120,7 @@ class _SpeechRecognitionResultList implements JavaScriptIndexingBehavior, List<S
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<SpeechRecognitionResult> get reversed {
+ Iterable<SpeechRecognitionResult> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -29320,7 +29320,7 @@ class _StyleSheetList implements JavaScriptIndexingBehavior, List<StyleSheet> na
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/core/list.dart ('k') | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698