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

Unified Diff: sdk/lib/collection_dev/list.dart

Issue 12077050: Fix warnings detected by the analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/collection_dev/list.dart
diff --git a/sdk/lib/collection_dev/list.dart b/sdk/lib/collection_dev/list.dart
index 0f2604b44bce29b156f2ef8b384db157b23666bc..ba9407ed71130256a7cda87d27610e629d6cc527 100644
--- a/sdk/lib/collection_dev/list.dart
+++ b/sdk/lib/collection_dev/list.dart
@@ -106,6 +106,10 @@ abstract class ListBase<E> extends Collection<E> implements List<E> {
}
String toString() => ToString.collectionToString(this);
+
+ List<E> get reversed {
+ return new ReversedListView(this, 0, null);
+ }
}
/**
@@ -114,8 +118,6 @@ abstract class ListBase<E> extends Collection<E> implements List<E> {
abstract class FixedLengthListBase<E> extends ListBase<E> {
void operator[]=(int index, E value);
- List<E> get reversed => new ReversedListView<E>(this, 0, null);
-
void sort([Comparator<E> compare]) {
Sort.sort(this, compare);
}
@@ -531,7 +533,7 @@ class ReverseListIterator<E> implements Iterator<E> {
bool moveNext() {
if (_list.length != _originalLength) {
- throw new ConcurrentModificationError(list);
+ throw new ConcurrentModificationError(_list);
}
if (_index <= _start) return false;
_index -= 1;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698