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

Unified Diff: utils/pub/yaml/yaml_map.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 | « utils/pub/yaml/visitor.dart ('k') | utils/template/parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/yaml/yaml_map.dart
diff --git a/utils/pub/yaml/yaml_map.dart b/utils/pub/yaml/yaml_map.dart
index 8d3a4d38292ab8f5533d5857022a0f74aff03287..209e448ec1197876981179dcccb96668bdbdf4f5 100644
--- a/utils/pub/yaml/yaml_map.dart
+++ b/utils/pub/yaml/yaml_map.dart
@@ -29,8 +29,8 @@ class YamlMap implements Map {
void clear() => _map.clear();
void forEach(void f(key, value)) =>
_map.forEach((k, v) => f(_unwrapKey(k), v));
- Collection getKeys() => _map.getKeys().map(_unwrapKey);
- Collection getValues() => _map.getValues();
+ Collection get keys => _map.keys.map(_unwrapKey);
+ Collection get values => _map.values;
int get length => _map.length;
bool get isEmpty => _map.isEmpty;
String toString() => _map.toString();
@@ -95,8 +95,8 @@ int _hashCode(obj, [List parents]) {
if (obj == true) return 1;
if (obj == false) return 2;
if (obj is Map) {
- return _hashCode(obj.getKeys(), parents) ^
- _hashCode(obj.getValues(), parents);
+ return _hashCode(obj.keys, parents) ^
+ _hashCode(obj.values, parents);
}
if (obj is List) {
// This is probably a really bad hash function, but presumably we'll get this
« no previous file with comments | « utils/pub/yaml/visitor.dart ('k') | utils/template/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698