| 435 | Check check; |
| 436 | bool has_error; |
| 437 | std::string Dump() const { |
| 438 | // dump as the form of std::initializer_list |
| 439 | std::string s = "Path {"; |
| 440 | for (const auto& i : path) { |
| 441 | if (i.IsStr()) { |
| 442 | s += '"' + i.GetStr() + "\","; |
| 443 | } else { |
| 444 | s += std::to_string(i.GetNum()) + ','; |
| 445 | } |
| 446 | } |
| 447 | if (!path.empty()) { |
| 448 | s.pop_back(); |
| 449 | } |
| 450 | s += '}'; |
| 451 | return s + " Json: " + json; |
| 452 | } |
| 453 | }; |
| 454 | constexpr static bool kNoError = false; |
| 455 | constexpr static bool kError = true; |
no test coverage detected