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

Unified Diff: sdk/lib/utf/utf.dart

Issue 26681002: Add EfficientLength marker interface to some iterabels. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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
« sdk/lib/collection/queue.dart ('K') | « sdk/lib/core/set.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/utf/utf.dart
diff --git a/sdk/lib/utf/utf.dart b/sdk/lib/utf/utf.dart
index 229b5aab647bd1b12fc2e8189496533235cafc27..36da078aa1daea966c3c78c28283babbd1e4e171 100644
--- a/sdk/lib/utf/utf.dart
+++ b/sdk/lib/utf/utf.dart
@@ -222,7 +222,7 @@ class Utf16CodeUnitDecoder implements Iterator<int> {
*/
// TODO(floitsch): Consider removing the extend and switch to implements since
// that's cheaper to allocate.
-class _ListRange extends IterableBase {
+class _ListRange extends IterableBase implements EfficientLength {
final List _source;
final int _offset;
final int _length;
« sdk/lib/collection/queue.dart ('K') | « sdk/lib/core/set.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698