| Index: src/scanner.h
|
| ===================================================================
|
| --- src/scanner.h (revision 7006)
|
| +++ src/scanner.h (working copy)
|
| @@ -150,6 +150,12 @@
|
| // Returns the next token.
|
| Token::Value Next();
|
|
|
| + // Returns the value of a number token.
|
| + double number() {
|
| + return number_;
|
| + }
|
| +
|
| +
|
| protected:
|
| // Skip past JSON whitespace (only space, tab, newline and carrige-return).
|
| bool SkipJsonWhiteSpace();
|
| @@ -180,6 +186,9 @@
|
| // are the only valid JSON identifiers (productions JSONBooleanLiteral,
|
| // JSONNullLiteral).
|
| Token::Value ScanJsonIdentifier(const char* text, Token::Value token);
|
| +
|
| + // Holds the value of a scanned number token.
|
| + double number_;
|
| };
|
|
|
| } } // namespace v8::internal
|
|
|