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

Unified Diff: lib/coreimpl/splay_tree.dart

Issue 11267018: Make getKeys, getValues getters (keys, values). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with co19 issue number. Created 8 years, 2 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 | « lib/coreimpl/maps.dart ('k') | lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/coreimpl/splay_tree.dart
diff --git a/lib/coreimpl/splay_tree.dart b/lib/coreimpl/splay_tree.dart
index 49a28e5be18da8d86f037156feeaeef70e606b4e..974c2bcb78cbb28f0c3fd015ae3645cd26a525f8 100644
--- a/lib/coreimpl/splay_tree.dart
+++ b/lib/coreimpl/splay_tree.dart
@@ -222,13 +222,13 @@ class SplayTreeMap<K extends Comparable, V> implements Map<K, V> {
return visit(_root);
}
- Collection<K> getKeys() {
+ Collection<K> get keys {
List<K> list = new List<K>();
forEach((K k, V v) { list.add(k); });
return list;
}
- Collection<V> getValues() {
+ Collection<V> get values {
List<V> list = new List<V>();
forEach((K k, V v) { list.add(v); });
return list;
« no previous file with comments | « lib/coreimpl/maps.dart ('k') | lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698