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

Unified Diff: sdk/lib/core/iterable.dart

Issue 1104063002: Make EfficientLength public, as EfficientLengthIterable. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment. Created 5 years, 8 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
Index: sdk/lib/core/iterable.dart
diff --git a/sdk/lib/core/iterable.dart b/sdk/lib/core/iterable.dart
index dbc8c55d3ca7a0a9b39d41e8fd4bd02d7ab65be8..e435b1e7680786539216842297b416d9cc6541e1 100644
--- a/sdk/lib/core/iterable.dart
+++ b/sdk/lib/core/iterable.dart
@@ -347,7 +347,7 @@ abstract class Iterable<E> {
* Some iterables have a more efficient way to find the number of elements.
*/
int get length {
- assert(this is! EfficientLength);
+ assert(this is! EfficientLengthIterable);
int count = 0;
Iterator it = iterator;
while (it.moveNext()) {
@@ -594,7 +594,7 @@ abstract class Iterable<E> {
typedef E _Generator<E>(int index);
class _GeneratorIterable<E> extends Iterable<E>
- implements EfficientLength {
+ implements EfficientLengthIterable<E> {
final int _start;
final int _end;
final _Generator<E> _generator;

Powered by Google App Engine
This is Rietveld 408576698