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

Unified Diff: packages/utf/lib/src/list_range.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 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 | « packages/utf/codereview.settings ('k') | packages/utf/lib/src/shared.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/utf/lib/src/list_range.dart
diff --git a/packages/utf/lib/src/list_range.dart b/packages/utf/lib/src/list_range.dart
index 2f3b34d6deb1df134810ee9bd6f5cb34b90b6311..159512df3edd6d34c7708d4575f5b84fd7933a66 100644
--- a/packages/utf/lib/src/list_range.dart
+++ b/packages/utf/lib/src/list_range.dart
@@ -13,15 +13,15 @@ import 'dart:collection';
*/
// TODO(floitsch): Consider removing the extend and switch to implements since
// that's cheaper to allocate.
-class ListRange extends IterableBase {
- final List _source;
+class ListRange extends IterableBase<int> {
+ final List<int> _source;
final int _offset;
final int _length;
- ListRange(source, [offset = 0, length]) :
- this._source = source,
- this._offset = offset,
- this._length = (length == null ? source.length - offset : length) {
+ ListRange(List<int> source, [offset = 0, length])
+ : this._source = source,
+ this._offset = offset,
+ this._length = (length == null ? source.length - offset : length) {
if (_offset < 0 || _offset > _source.length) {
throw new RangeError.value(_offset);
}
« no previous file with comments | « packages/utf/codereview.settings ('k') | packages/utf/lib/src/shared.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698