| 523 | } |
| 524 | |
| 525 | bool Reader::decodeNumber(Token& token) { |
| 526 | Value decoded; |
| 527 | if (!decodeNumber(token, decoded)) |
| 528 | return false; |
| 529 | currentValue().swapPayload(decoded); |
| 530 | currentValue().setOffsetStart(token.start_ - begin_); |
| 531 | currentValue().setOffsetLimit(token.end_ - begin_); |
| 532 | return true; |
| 533 | } |
| 534 | |
| 535 | bool Reader::decodeNumber(Token& token, Value& decoded) { |
| 536 | // Attempts to parse the number as an integer. If the number is |
nothing calls this directly
no test coverage detected