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

Unified Diff: lib/uri/uri.dart

Issue 10880068: - Change "static final" to "static const" in the lib/ directory. (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/math/base.dart ('k') | lib/utf/utf8.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/uri/uri.dart
===================================================================
--- lib/uri/uri.dart (revision 11400)
+++ lib/uri/uri.dart (working copy)
@@ -53,7 +53,7 @@
}
// NOTE: This code was ported from: closure-library/closure/goog/uri/utils.js
- static final RegExp _splitRe = const RegExp(
+ static const RegExp _splitRe = const RegExp(
'^'
'(?:'
'([^:/?#.]+)' // scheme - ignore special characters
@@ -73,13 +73,13 @@
'(?:#(.*))?' // fragment
'\$');
- static final _COMPONENT_SCHEME = 1;
- static final _COMPONENT_USER_INFO = 2;
- static final _COMPONENT_DOMAIN = 3;
- static final _COMPONENT_PORT = 4;
- static final _COMPONENT_PATH = 5;
- static final _COMPONENT_QUERY_DATA = 6;
- static final _COMPONENT_FRAGMENT = 7;
+ static const _COMPONENT_SCHEME = 1;
+ static const _COMPONENT_USER_INFO = 2;
+ static const _COMPONENT_DOMAIN = 3;
+ static const _COMPONENT_PORT = 4;
+ static const _COMPONENT_PATH = 5;
+ static const _COMPONENT_QUERY_DATA = 6;
+ static const _COMPONENT_FRAGMENT = 7;
/**
* Returns `true` if the URI is absolute.
« no previous file with comments | « lib/math/base.dart ('k') | lib/utf/utf8.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698