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

Unified Diff: pkg/dartdoc/classify.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 | « pkg/dartdoc/block_parser.dart ('k') | pkg/dartdoc/dartdoc.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dartdoc/classify.dart
===================================================================
--- pkg/dartdoc/classify.dart (revision 11633)
+++ pkg/dartdoc/classify.dart (working copy)
@@ -12,25 +12,25 @@
* fields here will be used as CSS class names for the generated spans.
*/
class Classification {
- static final NONE = null;
- static final ERROR = "e";
- static final COMMENT = "c";
- static final IDENTIFIER = "i";
- static final KEYWORD = "k";
- static final OPERATOR = "o";
- static final STRING = "s";
- static final NUMBER = "n";
- static final PUNCTUATION = "p";
+ static const NONE = null;
+ static const ERROR = "e";
+ static const COMMENT = "c";
+ static const IDENTIFIER = "i";
+ static const KEYWORD = "k";
+ static const OPERATOR = "o";
+ static const STRING = "s";
+ static const NUMBER = "n";
+ static const PUNCTUATION = "p";
// A few things that are nice to make different:
- static final TYPE_IDENTIFIER = "t";
+ static const TYPE_IDENTIFIER = "t";
// Between a keyword and an identifier
- static final SPECIAL_IDENTIFIER = "r";
+ static const SPECIAL_IDENTIFIER = "r";
- static final ARROW_OPERATOR = "a";
+ static const ARROW_OPERATOR = "a";
- static final STRING_INTERPOLATION = 'si';
+ static const STRING_INTERPOLATION = 'si';
}
String classifySource(String text) {
« no previous file with comments | « pkg/dartdoc/block_parser.dart ('k') | pkg/dartdoc/dartdoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698