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