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

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

Issue 11363252: Extend Iterable instead of implementing it. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Address Stephen's comments. Created 8 years, 1 month 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/core/iterable.dart ('k') | sdk/lib/utf/utf32.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/utf/utf16.dart
diff --git a/sdk/lib/utf/utf16.dart b/sdk/lib/utf/utf16.dart
index d1bd012fc5992a3d4e33d684ad9515dd897d625f..431d695ad83a233f5e8130f82264945a07788d5e 100644
--- a/sdk/lib/utf/utf16.dart
+++ b/sdk/lib/utf/utf16.dart
@@ -215,7 +215,7 @@ typedef _ListRangeIterator _CodeUnitsProvider();
* provides an iterator on demand and the iterator will only translate bytes
* as requested by the user of the iterator. (Note: results are not cached.)
*/
-class IterableUtf16Decoder implements Iterable<int> {
+class IterableUtf16Decoder extends Iterable<int> {
Ivan Posva 2012/11/26 18:13:01 Please remember by extending rather than implement
floitsch 2012/11/28 14:16:01 Added TODO.
Lasse Reichstein Nielsen 2012/11/28 21:29:35 Is there any way that this could be made cheaper?
final _CodeUnitsProvider codeunitsProvider;
final int replacementCodepoint;
« no previous file with comments | « sdk/lib/core/iterable.dart ('k') | sdk/lib/utf/utf32.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698