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

Unified Diff: tools/dom/src/WrappedList.dart

Issue 12391046: Add List.asMap(). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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: tools/dom/src/WrappedList.dart
diff --git a/tools/dom/src/WrappedList.dart b/tools/dom/src/WrappedList.dart
index ecad3061f6057a9e9620c7f65d8ab8b80bc4c38e..a3365392f8f8b167bf320002cbf299a7421c1c57 100644
--- a/tools/dom/src/WrappedList.dart
+++ b/tools/dom/src/WrappedList.dart
@@ -124,6 +124,8 @@ class _WrappedList<E> implements List<E> {
void insertRange(int start, int length, [E fill]) {
_list.insertRange(start, length, fill);
}
+
+ Map<int, E> asMap() => IterableMixinWorkaround.asMapList(_list);
}
/**

Powered by Google App Engine
This is Rietveld 408576698