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

Unified Diff: utils/pub/pub.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/git_source.dart ('k') | utils/pub/pubspec.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/pub.dart
diff --git a/utils/pub/pub.dart b/utils/pub/pub.dart
index 63880edca382efd60829e9ed0d691b075c1ca61e..b1dc0cf2d3e580d038f0c51c44f92f06a0780465 100644
--- a/utils/pub/pub.dart
+++ b/utils/pub/pub.dart
@@ -121,7 +121,7 @@ void printUsage([String description = 'Pub is a package manager for Dart.']) {
// TODO(rnystrom): A sorted map would be nice.
int length = 0;
var names = <String>[];
- for (var command in pubCommands.getKeys()) {
+ for (var command in pubCommands.keys) {
length = max(length, command.length);
names.add(command);
}
« no previous file with comments | « utils/pub/git_source.dart ('k') | utils/pub/pubspec.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698