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

Unified Diff: utils/pub/yaml/model.dart

Issue 11664006: Make Map.keys/values Iterables. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Add TODO that map.keys should return a Set. Created 7 years, 12 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/version_solver.dart ('k') | utils/pub/yaml/yaml_map.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 ad671f0793ceb23a496c622eddc7199672470d1b..8c111afe3d2b49bcf482c49a12858163792d9c80 100644
--- a/utils/pub/yaml/model.dart
+++ b/utils/pub/yaml/model.dart
@@ -222,8 +222,8 @@ class _MappingNode extends _Node {
}
String toString() {
- var strContent = content.keys.
- mappedBy((k) => '${k}: ${content[k]}')
+ var strContent = content.keys
+ .mappedBy((k) => '${k}: ${content[k]}')
.join(', ');
return '$tag {$strContent}';
}
« no previous file with comments | « utils/pub/version_solver.dart ('k') | utils/pub/yaml/yaml_map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698