| 547 | } |
| 548 | |
| 549 | bool Reader::decodeNumber(Token& token) { |
| 550 | Value decoded; |
| 551 | if (!decodeNumber(token, decoded)) |
| 552 | return false; |
| 553 | currentValue().swapPayload(decoded); |
| 554 | currentValue().setOffsetStart(token.start_ - begin_); |
| 555 | currentValue().setOffsetLimit(token.end_ - begin_); |
| 556 | return true; |
| 557 | } |
| 558 | |
| 559 | bool Reader::decodeNumber(Token& token, Value& decoded) { |
| 560 | // Attempts to parse the number as an integer. If the number is |
nothing calls this directly
no test coverage detected