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