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

Unified Diff: pkg/args/lib/args.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 | « lib/html/templates/html/impl/impl_Storage.darttemplate ('k') | pkg/dartdoc/lib/dartdoc.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/args/lib/args.dart
diff --git a/pkg/args/lib/args.dart b/pkg/args/lib/args.dart
index f97c1bdd9001a271e7616059dfaed70bb59c8017..a74c981c7376edd0e2536a2f0109e27ffa1bda34 100644
--- a/pkg/args/lib/args.dart
+++ b/pkg/args/lib/args.dart
@@ -496,7 +496,7 @@ class ArgParser {
* that abbreviation.
*/
_Option _findByAbbr(String abbr) {
- for (var option in _options.getValues()) {
+ for (var option in _options.values) {
if (option.abbreviation == abbr) return option;
}
@@ -544,7 +544,7 @@ class ArgResults {
}
/** Get the names of the options as a [Collection]. */
- Collection<String> get options => _options.getKeys();
+ Collection<String> get options => _options.keys;
}
class _Option {
@@ -630,7 +630,7 @@ class _Usage {
if (option.help != null) write(2, option.help);
if (option.allowedHelp != null) {
- var allowedNames = option.allowedHelp.getKeys();
+ var allowedNames = option.allowedHelp.keys;
allowedNames.sort((a, b) => a.compareTo(b));
newline();
for (var name in allowedNames) {
@@ -692,7 +692,7 @@ class _Usage {
// Make room for the allowed help.
if (option.allowedHelp != null) {
- for (var allowed in option.allowedHelp.getKeys()) {
+ for (var allowed in option.allowedHelp.keys) {
title = max(title, getAllowedTitle(allowed).length);
}
}
« no previous file with comments | « lib/html/templates/html/impl/impl_Storage.darttemplate ('k') | pkg/dartdoc/lib/dartdoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698