| 738 | } |
| 739 | |
| 740 | bool Reader::decodeNumber(Token& token) { |
| 741 | Value decoded; |
| 742 | if (!decodeNumber(token, decoded)) |
| 743 | return false; |
| 744 | currentValue().swapPayload(decoded); |
| 745 | currentValue().setOffsetStart(token.start_ - begin_); |
| 746 | currentValue().setOffsetLimit(token.end_ - begin_); |
| 747 | return true; |
| 748 | } |
| 749 | |
| 750 | bool Reader::decodeNumber(Token& token, Value& decoded) { |
| 751 | // Attempts to parse the number as an integer. If the number is |
nothing calls this directly
no test coverage detected