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

Unified Diff: pkg/args/args.dart

Issue 10919024: - Change "static final" to "static const" in the (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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/core/duration.dart ('k') | pkg/dartdoc/block_parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/args/args.dart
===================================================================
--- pkg/args/args.dart (revision 11633)
+++ pkg/args/args.dart (working copy)
@@ -189,9 +189,9 @@
* options and flags from them.
*/
class ArgParser {
- static final _SOLO_OPT = const RegExp(@'^-([a-zA-Z0-9])$');
- static final _ABBR_OPT = const RegExp(@'^-([a-zA-Z0-9]+)(.*)$');
- static final _LONG_OPT = const RegExp(@'^--([a-zA-Z\-_0-9]+)(=(.*))?$');
+ static const _SOLO_OPT = const RegExp(@'^-([a-zA-Z0-9])$');
+ static const _ABBR_OPT = const RegExp(@'^-([a-zA-Z0-9]+)(.*)$');
+ static const _LONG_OPT = const RegExp(@'^--([a-zA-Z\-_0-9]+)(=(.*))?$');
final Map<String, _Option> _options;
@@ -565,7 +565,7 @@
* spaces and wrapping to the next line to keep the cells correctly lined up.
*/
class _Usage {
- static final NUM_COLUMNS = 3; // Abbreviation, long name, help.
+ static const NUM_COLUMNS = 3; // Abbreviation, long name, help.
/** The parser this is generating usage for. */
final ArgParser args;
« no previous file with comments | « lib/core/duration.dart ('k') | pkg/dartdoc/block_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698