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

Unified Diff: sdk/lib/svg/dartium/svg_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:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/svg/dart2js/svg_dart2js.dart ('k') | tests/corelib/iterable_skip_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/svg/dartium/svg_dartium.dart
diff --git a/sdk/lib/svg/dartium/svg_dartium.dart b/sdk/lib/svg/dartium/svg_dartium.dart
index debc99150f7b5984f4114258eef964a6cfb6dd9b..98cb362a64e0a9e131aa4fc76bb2604d1337cef2 100644
--- a/sdk/lib/svg/dartium/svg_dartium.dart
+++ b/sdk/lib/svg/dartium/svg_dartium.dart
@@ -3413,7 +3413,7 @@ class LengthList extends NativeFieldWrapperClass1 implements List<Length> {
// clear() defined by IDL.
- List<Length> get reversed {
+ Iterable<Length> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -4117,7 +4117,7 @@ class NumberList extends NativeFieldWrapperClass1 implements List<Number> {
// clear() defined by IDL.
- List<Number> get reversed {
+ Iterable<Number> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -5297,7 +5297,7 @@ class PathSegList extends NativeFieldWrapperClass1 implements List<PathSeg> {
// clear() defined by IDL.
- List<PathSeg> get reversed {
+ Iterable<PathSeg> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -6282,7 +6282,7 @@ class StringList extends NativeFieldWrapperClass1 implements List<String> {
// clear() defined by IDL.
- List<String> get reversed {
+ Iterable<String> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -7537,7 +7537,7 @@ class TransformList extends NativeFieldWrapperClass1 implements List<Transform>
// clear() defined by IDL.
- List<Transform> get reversed {
+ Iterable<Transform> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -8113,7 +8113,7 @@ class _ElementInstanceList extends NativeFieldWrapperClass1 implements List<Elem
throw new UnsupportedError("Cannot clear immutable List.");
}
- List<ElementInstance> get reversed {
+ Iterable<ElementInstance> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
« no previous file with comments | « sdk/lib/svg/dart2js/svg_dart2js.dart ('k') | tests/corelib/iterable_skip_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698