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

Unified Diff: pkg/args/args.dart

Issue 10829459: Deprecate Math object in corelib in favor of dart:math library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 8 years, 4 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/uri/uri.dart ('k') | pkg/dartdoc/dartdoc.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/args/args.dart
diff --git a/pkg/args/args.dart b/pkg/args/args.dart
index f49c3bc917b84322eee0bec5cc48128bbccd8117..5268f5090164f6e86db3251e289ada6a7e9ddb55 100644
--- a/pkg/args/args.dart
+++ b/pkg/args/args.dart
@@ -180,6 +180,8 @@
*/
#library('args');
+#import('dart:math');
+
#import('utils.dart');
/**
@@ -672,15 +674,15 @@ class _Usage {
var option = args._options[name];
// Make room in the first column if there are abbreviations.
- abbr = Math.max(abbr, getAbbreviation(option).length);
+ abbr = max(abbr, getAbbreviation(option).length);
// Make room for the option.
- title = Math.max(title, getLongOption(option).length);
+ title = max(title, getLongOption(option).length);
// Make room for the allowed help.
if (option.allowedHelp != null) {
for (var allowed in option.allowedHelp.getKeys()) {
- title = Math.max(title, getAllowedTitle(allowed).length);
+ title = max(title, getAllowedTitle(allowed).length);
}
}
}
« no previous file with comments | « lib/uri/uri.dart ('k') | pkg/dartdoc/dartdoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698