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

Unified Diff: pkg/collection/lib/wrappers.dart

Issue 315173005: Add "last" setter to List. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | pkg/collection/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/collection/lib/wrappers.dart
diff --git a/pkg/collection/lib/wrappers.dart b/pkg/collection/lib/wrappers.dart
index 2034174259151097f59ab8bb6bd23e27661be4ff..7723d58f74dea5be390034a46c0025e8d37187d7 100644
--- a/pkg/collection/lib/wrappers.dart
+++ b/pkg/collection/lib/wrappers.dart
@@ -124,6 +124,10 @@ class DelegatingList<E> extends DelegatingIterable<E> implements List<E> {
_listBase[index] = value;
}
+ void set last(E value) {
+ _listBase.last = value;
nweiz 2014/06/12 23:03:58 This will cause an analyzer warning on versions of
+ }
+
void add(E value) {
_listBase.add(value);
}
@@ -427,7 +431,7 @@ class MapKeySet<E> extends _DelegatingIterableBase<E>
/**
* Creates a modifiable [Set] view of the values of a [Map].
- *
+ *
* The `Set` view assumes that the keys of the `Map` can be uniquely determined
* from the values. The `keyForValue` function passed to the constructor finds
* the key for a single value. The `keyForValue` function should be consistent
« no previous file with comments | « no previous file | pkg/collection/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698