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

Unified Diff: runtime/bin/mime_multipart_parser.dart

Issue 10909227: Use const instead of final for constants. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/mime_multipart_parser.dart
diff --git a/runtime/bin/mime_multipart_parser.dart b/runtime/bin/mime_multipart_parser.dart
index 87983ca26ecdab37d8fbc83ae3ddcb2878488e05..ae455186994df11bb55a9abf5128b054f480b4c9 100644
--- a/runtime/bin/mime_multipart_parser.dart
+++ b/runtime/bin/mime_multipart_parser.dart
@@ -16,24 +16,24 @@
*/
class _MimeMultipartParser {
- final int _START = 0;
- final int _FIRST_BOUNDARY_ENDING = 111;
- final int _FIRST_BOUNDARY_END = 112;
- final int _BOUNDARY_ENDING = 1;
- final int _BOUNDARY_END = 2;
- final int _HEADER_START = 3;
- final int _HEADER_FIELD = 4;
- final int _HEADER_VALUE_START = 5;
- final int _HEADER_VALUE = 6;
- final int _HEADER_VALUE_FOLDING_OR_ENDING = 7;
- final int _HEADER_VALUE_FOLD_OR_END = 8;
- final int _HEADER_ENDING = 9;
- final int _CONTENT = 10;
- final int _LAST_BOUNDARY_DASH2 = 11;
- final int _LAST_BOUNDARY_ENDING = 12;
- final int _LAST_BOUNDARY_END = 13;
- final int _DONE = 14;
- final int _FAILURE = 15;
+ const int _START = 0;
+ const int _FIRST_BOUNDARY_ENDING = 111;
+ const int _FIRST_BOUNDARY_END = 112;
+ const int _BOUNDARY_ENDING = 1;
+ const int _BOUNDARY_END = 2;
+ const int _HEADER_START = 3;
+ const int _HEADER_FIELD = 4;
+ const int _HEADER_VALUE_START = 5;
+ const int _HEADER_VALUE = 6;
+ const int _HEADER_VALUE_FOLDING_OR_ENDING = 7;
+ const int _HEADER_VALUE_FOLD_OR_END = 8;
+ const int _HEADER_ENDING = 9;
+ const int _CONTENT = 10;
+ const int _LAST_BOUNDARY_DASH2 = 11;
+ const int _LAST_BOUNDARY_ENDING = 12;
+ const int _LAST_BOUNDARY_END = 13;
+ const int _DONE = 14;
+ const int _FAILURE = 15;
// Construct a new MIME multipart parser with the boundary
// [boundary]. The boundary should be as specified in the content
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698