Chromium Code Reviews| Index: src/scanner.h |
| =================================================================== |
| --- src/scanner.h (revision 6635) |
| +++ src/scanner.h (working copy) |
| @@ -148,6 +148,11 @@ |
| // Returns the next token. |
| Token::Value Next(); |
| + double number() { |
|
tfarina
2011/02/04 14:46:48
double number() const { return number_; }
I'd add
sandholm
2011/02/04 14:57:22
Done.
|
| + return number_; |
| + } |
| + |
| + |
| protected: |
| // Skip past JSON whitespace (only space, tab, newline and carrige-return). |
| bool SkipJsonWhiteSpace(); |
| @@ -178,6 +183,8 @@ |
| // are the only valid JSON identifiers (productions JSONBooleanLiteral, |
| // JSONNullLiteral). |
| Token::Value ScanJsonIdentifier(const char* text, Token::Value token); |
| + |
| + double number_; |
| }; |
| } } // namespace v8::internal |