| 2094 | : collectComments_(collectComments), reader_(features) {} |
| 2095 | |
| 2096 | bool parse(char const* beginDoc, char const* endDoc, Value* root, |
| 2097 | String* errs) override { |
| 2098 | bool ok = reader_.parse(beginDoc, endDoc, *root, collectComments_); |
| 2099 | if (errs) { |
| 2100 | *errs = reader_.getFormattedErrorMessages(); |
| 2101 | } |
| 2102 | return ok; |
| 2103 | } |
| 2104 | |
| 2105 | std::vector<CharReader::StructuredError> |
| 2106 | getStructuredErrors() const override { |
nothing calls this directly
no test coverage detected