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

Unified Diff: utils/template/codegen.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/pub/yaml/parser.dart ('k') | utils/template/tokenkind.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/template/codegen.dart
===================================================================
--- utils/template/codegen.dart (revision 11633)
+++ utils/template/codegen.dart (working copy)
@@ -14,9 +14,9 @@
int localIndex; // Local variable index (e.g., e0, e1, etc.)
// Block Types:
- static final int CONSTRUCTOR = 0;
- static final int EACH = 1;
- static final int WITH = 2;
+ static const int CONSTRUCTOR = 0;
+ static const int EACH = 1;
+ static const int WITH = 2;
CGBlock([this._indent = 4,
this._blockType = CGBlock.CONSTRUCTOR,
@@ -247,7 +247,7 @@
}
class Codegen {
- static final String SPACES = " ";
+ static const String SPACES = " ";
static String spaces(int numSpaces) {
return SPACES.substring(0, numSpaces);
}
@@ -458,7 +458,7 @@
}
buff.add("\n // CSS for this template.\n");
- buff.add(" static final String stylesheet = ");
+ buff.add(" static const String stylesheet = ");
if (content.css != null) {
buff.add("\'\'\'\n ${content.css.toString()}\n");
« no previous file with comments | « utils/pub/yaml/parser.dart ('k') | utils/template/tokenkind.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698