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

Unified Diff: pkg/args/lib/args.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
Index: pkg/args/lib/args.dart
diff --git a/pkg/args/lib/args.dart b/pkg/args/lib/args.dart
index be90fb5ef9f13c4233a9cf42f9abeeec5990ba35..ee926d5892bb797ed533fdadadf50703e9d03527 100644
--- a/pkg/args/lib/args.dart
+++ b/pkg/args/lib/args.dart
@@ -544,7 +544,7 @@ class ArgResults {
}
/** Get the names of the options as a [Collection]. */
- Collection<String> get options => _options.keys;
+ Collection<String> get options => _options.keys.toList();
}
class _Option {

Powered by Google App Engine
This is Rietveld 408576698