| 139 | public: |
| 140 | using node_type = NodeType; |
| 141 | bool parse_impl(std::string_view json, SonicParseResult<NodeType> &pr) const { |
| 142 | // sonic_json::Parser<NodeType> parser; |
| 143 | // auto ret = parser.Parse(json.data(), json.size(), pr.doc); |
| 144 | pr.doc.Parse(json.data(), json.size()); |
| 145 | if (pr.doc.HasParseError()) { |
| 146 | return false; |
| 147 | } |
| 148 | return true; |
| 149 | } |
| 150 | }; |
| 151 | |
| 152 | using SonicDynParseResult = SonicParseResult<sonic_json::DNode<>>; |
nothing calls this directly
no test coverage detected