| 508 | } // namespace |
| 509 | |
| 510 | Expected<Value> parse(StringRef JSON) { |
| 511 | Parser P(JSON); |
| 512 | Value E = nullptr; |
| 513 | if (P.checkUTF8()) |
| 514 | if (P.parseValue(E)) |
| 515 | if (P.assertEnd()) |
| 516 | return std::move(E); |
| 517 | return P.takeError(); |
| 518 | } |
| 519 | char ParseError::ID = 0; |
| 520 | |
| 521 | static std::vector<const Object::value_type *> sortedElements(const Object &O) { |
nothing calls this directly
no test coverage detected