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

Unified Diff: utils/pub/yaml/model.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/deep_equals.dart ('k') | utils/pub/yaml/visitor.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/yaml/model.dart
diff --git a/utils/pub/yaml/model.dart b/utils/pub/yaml/model.dart
index 1bb66829e9e55d3fc3d31a9a1fb2e1ae6d5b4a8f..f9dd00551442adb1005dec174a5f218620baf5a9 100644
--- a/utils/pub/yaml/model.dart
+++ b/utils/pub/yaml/model.dart
@@ -219,7 +219,7 @@ class _MappingNode extends _Node {
// Should be super != other; bug 2554
if (!(super == other) || other is! _MappingNode) return false;
if (content.length != other.content.length) return false;
- for (var key in content.getKeys()) {
+ for (var key in content.keys) {
if (!other.content.containsKey(key)) return false;
if (content[key] != other.content[key]) return false;
}
@@ -227,7 +227,7 @@ class _MappingNode extends _Node {
}
String toString() {
- var strContent = Strings.join(content.getKeys().
+ var strContent = Strings.join(content.keys.
map((k) => '${k}: ${content[k]}'), ', ');
return '$tag {$strContent}';
}
« no previous file with comments | « utils/pub/yaml/deep_equals.dart ('k') | utils/pub/yaml/visitor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698