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

Unified Diff: utils/css/tokenkind.dart

Issue 9695048: Template parser (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Siggi's comments Created 8 years, 9 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/css/tokenizer_base.dart ('k') | utils/css/tool.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/css/tokenkind.dart
diff --git a/utils/css/tokenkind.dart b/utils/css/tokenkind.dart
index 374b2976cb93fe7b603026c9cc18116afd8c8724..7f2f2346ab5419f0ef287f83ebbdc7956e4d4741 100644
--- a/utils/css/tokenkind.dart
+++ b/utils/css/tokenkind.dart
@@ -382,7 +382,7 @@ class TokenKind {
if (length == ident.length) {
int idx = offset;
bool match = true;
- for (final identIdx = 0; identIdx < ident.length; identIdx++) {
+ for (int identIdx = 0; identIdx < ident.length; identIdx++) {
int identChar = ident.charCodeAt(identIdx);
int char = text.charCodeAt(idx++);
// Compare lowercase to lowercase then check if char is uppercase.
@@ -447,7 +447,7 @@ class TokenKind {
if (length == ident.length) {
int idx = 0;
bool match = true;
- for (final identIdx = 0; identIdx < ident.length; identIdx++) {
+ for (int identIdx = 0; identIdx < ident.length; identIdx++) {
int identChar = ident.charCodeAt(identIdx);
int char = text.charCodeAt(idx++);
// Compare lowercase to lowercase then check if char is uppercase.
@@ -485,7 +485,7 @@ class TokenKind {
}
StringBuffer invertResult = new StringBuffer();
- for (final idx = result.length - 1; idx >= 0; idx--) {
+ for (int idx = result.length - 1; idx >= 0; idx--) {
invertResult.add(result[idx]);
}
return invertResult.toString();
« no previous file with comments | « utils/css/tokenizer_base.dart ('k') | utils/css/tool.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698