| 789 | } |
| 790 | |
| 791 | bool Reader::decodeNumber(Token& token) { |
| 792 | Value decoded; |
| 793 | if (!decodeNumber(token, decoded)) |
| 794 | return false; |
| 795 | currentValue().swapPayload(decoded); |
| 796 | currentValue().setOffsetStart(token.start_ - begin_); |
| 797 | currentValue().setOffsetLimit(token.end_ - begin_); |
| 798 | return true; |
| 799 | } |
| 800 | |
| 801 | bool Reader::decodeNumber(Token& token, Value& decoded) { |
| 802 | // Attempts to parse the number as an integer. If the number is |
nothing calls this directly
no test coverage detected