| 1857 | : collectComments_(collectComments), reader_(features) {} |
| 1858 | |
| 1859 | bool parse(char const* beginDoc, char const* endDoc, Value* root, |
| 1860 | String* errs) override { |
| 1861 | bool ok = reader_.parse(beginDoc, endDoc, *root, collectComments_); |
| 1862 | if (errs) { |
| 1863 | *errs = reader_.getFormattedErrorMessages(); |
| 1864 | } |
| 1865 | return ok; |
| 1866 | } |
| 1867 | |
| 1868 | std::vector<CharReader::StructuredError> |
| 1869 | getStructuredErrors() const override { |
nothing calls this directly
no test coverage detected