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