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

Unified Diff: lib/compiler/implementation/colors.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
Index: lib/compiler/implementation/colors.dart
===================================================================
--- lib/compiler/implementation/colors.dart (revision 11386)
+++ lib/compiler/implementation/colors.dart (working copy)
@@ -4,10 +4,10 @@
#library('colors');
-final String GREEN_COLOR = '\u001b[32m';
-final String RED_COLOR = '\u001b[31m';
-final String MAGENTA_COLOR = '\u001b[35m';
-final String NO_COLOR = '\u001b[0m';
+const String GREEN_COLOR = '\u001b[32m';
+const String RED_COLOR = '\u001b[31m';
+const String MAGENTA_COLOR = '\u001b[35m';
+const String NO_COLOR = '\u001b[0m';
String wrap(String string, String color) => "${color}$string${NO_COLOR}";
String green(String string) => wrap(string, GREEN_COLOR);

Powered by Google App Engine
This is Rietveld 408576698