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

Unified Diff: pkg/csslib/lib/src/tokenizer_base.dart

Issue 679773003: Initialize TokenizerBase int fields for better dart2js codegen. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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: pkg/csslib/lib/src/tokenizer_base.dart
diff --git a/pkg/csslib/lib/src/tokenizer_base.dart b/pkg/csslib/lib/src/tokenizer_base.dart
index 07dee485d2c4dd8cdc6459fb46c466e4a75730ff..5501e6c94103d56cb10fe752d031b6f17195fead 100644
--- a/pkg/csslib/lib/src/tokenizer_base.dart
+++ b/pkg/csslib/lib/src/tokenizer_base.dart
@@ -52,8 +52,8 @@ abstract class TokenizerBase {
// http://dev.w3.org/csswg/selectors4/
bool inSelector = false;
- int _index;
- int _startIndex;
+ int _index = 0;
+ int _startIndex = 0;
static const String _CDATA_START = '<![CDATA[';
static const String _CDATA_END = ']]>';
@@ -435,4 +435,3 @@ abstract class TokenizerBase {
}
}
}
-
« 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