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

Unified Diff: sdk/lib/svg/dart2js/svg_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:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/html/html_common/filtered_element_list.dart ('k') | sdk/lib/svg/dartium/svg_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/svg/dart2js/svg_dart2js.dart
diff --git a/sdk/lib/svg/dart2js/svg_dart2js.dart b/sdk/lib/svg/dart2js/svg_dart2js.dart
index 09a63ec9446a394a3707bc460e809493f090f05e..df439d6ce977ecef23043166d18f7303e15fd69e 100644
--- a/sdk/lib/svg/dart2js/svg_dart2js.dart
+++ b/sdk/lib/svg/dart2js/svg_dart2js.dart
@@ -3149,7 +3149,7 @@ class LengthList implements JavaScriptIndexingBehavior, List<Length> native "*SV
// clear() defined by IDL.
- List<Length> get reversed {
+ Iterable<Length> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -3776,7 +3776,7 @@ class NumberList implements JavaScriptIndexingBehavior, List<Number> native "*SV
// clear() defined by IDL.
- List<Number> get reversed {
+ Iterable<Number> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -4679,7 +4679,7 @@ class PathSegList implements JavaScriptIndexingBehavior, List<PathSeg> native "*
// clear() defined by IDL.
- List<PathSeg> get reversed {
+ Iterable<PathSeg> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -5566,7 +5566,7 @@ class StringList implements JavaScriptIndexingBehavior, List<String> native "*SV
// clear() defined by IDL.
- List<String> get reversed {
+ Iterable<String> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -6732,7 +6732,7 @@ class TransformList implements List<Transform>, JavaScriptIndexingBehavior nativ
// clear() defined by IDL.
- List<Transform> get reversed {
+ Iterable<Transform> get reversed {
return IterableMixinWorkaround.reversedList(this);
}
@@ -7254,7 +7254,7 @@ class _ElementInstanceList implements JavaScriptIndexingBehavior, List<ElementIn
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/html/html_common/filtered_element_list.dart ('k') | sdk/lib/svg/dartium/svg_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698