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

Unified Diff: tool/input_sdk/lib/collection/collections.dart

Issue 1956933002: Update collection (list / map / iterable) printing. (Closed) Base URL: https://github.com/dart-lang/dev_compiler@master
Patch Set: Created 4 years, 7 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 | « tool/input_sdk/lib/collection/collection.dart ('k') | tool/input_sdk/lib/collection/hash_map.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/lib/collection/collections.dart
diff --git a/tool/input_sdk/lib/collection/collections.dart b/tool/input_sdk/lib/collection/collections.dart
index fb9a94b8832dcbfb685b08ca6d39ab0750444a8e..5756544177f7794c6aff1e312845bd94e741a02f 100644
--- a/tool/input_sdk/lib/collection/collections.dart
+++ b/tool/input_sdk/lib/collection/collections.dart
@@ -12,7 +12,13 @@ part of dart.collection;
*/
class UnmodifiableListView<E> extends UnmodifiableListBase<E> {
final Iterable<E> _source;
- /** Create an unmodifiable list backed by [source]. */
+
+ /**
+ * Creates an unmodifiable list backed by [source].
+ *
+ * The [source] of the elements may be a [List] or any [Iterable] with
+ * efficient [Iterable.length] and [Iterable.elementAt].
+ */
UnmodifiableListView(Iterable<E> source) : _source = source;
int get length => _source.length;
E operator[](int index) => _source.elementAt(index);
« no previous file with comments | « tool/input_sdk/lib/collection/collection.dart ('k') | tool/input_sdk/lib/collection/hash_map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698