Index: utils/template/tokenizer.dart |
diff --git a/utils/template/tokenizer.dart b/utils/template/tokenizer.dart |
index 8c1b7f248e939dc54ecfbdf8d5fd523a0b7791a5..cb1b516eaac93f0beb4b0d99be4801e9327d056b 100644 |
--- a/utils/template/tokenizer.dart |
+++ b/utils/template/tokenizer.dart |
@@ -133,8 +133,8 @@ class Tokenizer extends TokenizerBase { |
// Need to override so CSS version of isIdentifierPart is used. |
Token finishIdentifier() { |
while (_index < _text.length) { |
-// if (!TokenizerHelpers.isIdentifierPart(_text.charCodeAt(_index++))) { |
- if (!TokenizerHelpers.isIdentifierPart(_text.charCodeAt(_index))) { |
+// if (!TokenizerHelpers.isIdentifierPart(_text.codeUnitAt(_index++))) { |
+ if (!TokenizerHelpers.isIdentifierPart(_text.codeUnitAt(_index))) { |
// _index--; |
break; |
} else { |
@@ -209,7 +209,7 @@ class Tokenizer extends TokenizerBase { |
bool maybeEatDigit() { |
if (_index < _text.length && TokenizerHelpers.isDigit( |
- _text.charCodeAt(_index))) { |
+ _text.codeUnitAt(_index))) { |
_index += 1; |
return true; |
} |
@@ -218,7 +218,7 @@ class Tokenizer extends TokenizerBase { |
void eatHexDigits() { |
while (_index < _text.length) { |
- if (TokenizerHelpers.isHexDigit(_text.charCodeAt(_index))) { |
+ if (TokenizerHelpers.isHexDigit(_text.codeUnitAt(_index))) { |
_index += 1; |
} else { |
return; |
@@ -228,7 +228,7 @@ class Tokenizer extends TokenizerBase { |
bool maybeEatHexDigit() { |
if (_index < _text.length && TokenizerHelpers.isHexDigit( |
- _text.charCodeAt(_index))) { |
+ _text.codeUnitAt(_index))) { |
_index += 1; |
return true; |
} |