@@ -223,6 +223,16 @@ struct structural_parser : structural_iterator {
223
223
return SUCCESS;
224
224
}
225
225
226
+ WARN_UNUSED really_inline error_code start () {
227
+ logger::log_start ();
228
+
229
+ // If there are no structurals left, return EMPTY
230
+ if (at_end ()) { return EMPTY; }
231
+
232
+ // Push the root scope (there is always at least one scope)
233
+ return start_document ();
234
+ }
235
+
226
236
WARN_UNUSED really_inline error_code finish () {
227
237
end_document ();
228
238
parser.next_structural_index = uint32_t (current_structural + 1 - &parser.structural_indexes [0 ]);
@@ -235,29 +245,10 @@ struct structural_parser : structural_iterator {
235
245
return SUCCESS;
236
246
}
237
247
238
- really_inline void init () {
239
- log_start ();
240
- }
241
-
242
- WARN_UNUSED really_inline error_code start () {
243
- // If there are no structurals left, return EMPTY
244
- if (at_end (parser.n_structural_indexes )) {
245
- return EMPTY;
246
- }
247
-
248
- init ();
249
- // Push the root scope (there is always at least one scope)
250
- return start_document ();
251
- }
252
-
253
248
really_inline void log_value (const char *type) {
254
249
logger::log_line (*this , " " , type, " " );
255
250
}
256
251
257
- static really_inline void log_start () {
258
- logger::log_start ();
259
- }
260
-
261
252
really_inline void log_start_value (const char *type) {
262
253
logger::log_line (*this , " +" , type, " " );
263
254
if (logger::LOG_ENABLED) { logger::log_depth++; }
0 commit comments