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

Unified Diff: utils/template/tokenizer_base.dart

Issue 10399010: Fixed breakage in template utility now that statics aren't inherited. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix to calculator and template UI tests. Created 8 years, 7 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: utils/template/tokenizer_base.dart
diff --git a/utils/template/tokenizer_base.dart b/utils/template/tokenizer_base.dart
index 6f163662a9785c5a7ec3419e5d51d5661f7225a4..f1dc0a5129470f536173da92d86f172eb75f2cfa 100644
--- a/utils/template/tokenizer_base.dart
+++ b/utils/template/tokenizer_base.dart
@@ -158,7 +158,7 @@ class TokenizerBase extends TokenizerHelpers implements TokenSource {
void eatDigits() {
while (_index < _text.length) {
- if (isDigit(_text.charCodeAt(_index))) {
+ if (TokenizerHelpers.isDigit(_text.charCodeAt(_index))) {
_index++;
} else {
return;
@@ -215,7 +215,7 @@ class TokenizerBase extends TokenizerHelpers implements TokenSource {
if (_peekChar() == 46/*.*/) {
// Handle the case of 1.toString().
_nextChar();
- if (isDigit(_peekChar())) {
+ if (TokenizerHelpers.isDigit(_peekChar())) {
eatDigits();
return finishNumberExtra(TokenKind.DOUBLE);
} else {
@@ -233,7 +233,7 @@ class TokenizerBase extends TokenizerHelpers implements TokenSource {
_maybeEatChar(43/*+*/);
eatDigits();
}
- if (_peekChar() != 0 && isIdentifierStart(_peekChar())) {
+ if (_peekChar() != 0 && TokenizerHelpers.isIdentifierStart(_peekChar())) {
_nextChar();
return _errorToken("illegal character in number");
}
@@ -428,7 +428,7 @@ class TokenizerBase extends TokenizerHelpers implements TokenSource {
}
Token finishDot() {
- if (isDigit(_peekChar())) {
+ if (TokenizerHelpers.isDigit(_peekChar())) {
eatDigits();
return finishNumberExtra(TokenKind.DOUBLE);
} else {
@@ -440,14 +440,15 @@ class TokenizerBase extends TokenizerHelpers implements TokenSource {
if (_interpStack != null && _interpStack.depth == -1) {
_interpStack.depth = 0;
while (_index < _text.length) {
- if (!isInterpIdentifierPart(_text.charCodeAt(_index++))) {
+ if (!TokenizerHelpers.isInterpIdentifierPart(
+ _text.charCodeAt(_index++))) {
_index--;
break;
}
}
} else {
while (_index < _text.length) {
- if (!isIdentifierPart(_text.charCodeAt(_index++))) {
+ if (!TokenizerHelpers.isIdentifierPart(_text.charCodeAt(_index++))) {
_index--;
break;
}

Powered by Google App Engine
This is Rietveld 408576698