| 768 | } |
| 769 | |
| 770 | bool Reader::decodeNumber(Token& token) { |
| 771 | Value decoded; |
| 772 | if (!decodeNumber(token, decoded)) |
| 773 | return false; |
| 774 | currentValue().swapPayload(decoded); |
| 775 | currentValue().setOffsetStart(token.start_ - begin_); |
| 776 | currentValue().setOffsetLimit(token.end_ - begin_); |
| 777 | return true; |
| 778 | } |
| 779 | |
| 780 | bool Reader::decodeNumber(Token& token, Value& decoded) { |
| 781 | // Attempts to parse the number as an integer. If the number is |
nothing calls this directly
no test coverage detected