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

Unified Diff: utils/css/generate.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 | « utils/apidoc/apidoc.dart ('k') | utils/css/tokenkind.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/css/generate.dart
===================================================================
--- utils/css/generate.dart (revision 11633)
+++ utils/css/generate.dart (working copy)
@@ -40,7 +40,7 @@
// and stylets with colliding names.
buff.add('class ${production.dartClassName} {\n');
buff.add(' // selector, properties<propertyName, value>\n');
- buff.add(' static final selectors = const {\n');
+ buff.add(' static const selectors = const {\n');
for (final ruleset in production.rulesets) {
for (final selector in ruleset.selectorGroup.selectors) {
@@ -76,7 +76,7 @@
' // CSS class selectors:\n');
for (final className in knownClasses) {
String classAsDart = className.replaceAll('-', '_').toUpperCase();
- classSelectors.add(' static final String ${classAsDart} = ' +
+ classSelectors.add(' static const String ${classAsDart} = ' +
'\'${className}\';\n');
}
classSelectors.add('}\n'); // End of class selectors.
« no previous file with comments | « utils/apidoc/apidoc.dart ('k') | utils/css/tokenkind.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698