Index: frog/tokenizer.g.dart |
=================================================================== |
--- frog/tokenizer.g.dart (revision 6697) |
+++ frog/tokenizer.g.dart (working copy) |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
// Generated by scripts/tokenizer_gen.py. |
@@ -225,9 +225,9 @@ |
return _finishToken(TokenKind.BIT_NOT); |
} |
default: |
- if (isIdentifierStart(ch)) { |
+ if (TokenizerHelpers.isIdentifierStart(ch)) { |
return this.finishIdentifier(ch); |
- } else if (isDigit(ch)) { |
+ } else if (TokenizerHelpers.isDigit(ch)) { |
return this.finishNumber(); |
} else { |
return _errorToken(); |
@@ -397,7 +397,7 @@ |
/** Static helper methods. */ |
class TokenizerHelpers { |
- |
+ |
static bool isIdentifierStart(int c) { |
return ((c >= 97/*a*/ && c <= 122/*z*/) || (c >= 65/*A*/ && c <= 90/*Z*/) || c == 95/*_*/); |
} |