pub fn parseRoot(p: *Parser) Error!bool p: *ParserMaxDepth294
295
296
297
298
299
300
301
302
303
304
305 pub fn parseRoot(p: *Parser) Error!bool {
const def_index = @backingInt(Def.defRoot);
if (p.depths[def_index] > max_depth) return error.MaxDepth;
p.depths[def_index] += 1;
defer p.depths[def_index] -= 1;
return blk_0: {
const pos_0 = p.i;
if (try p.parseContainerMembers() and try p.parseskip() and try p.parseeof()) break :blk_0 true;
p.i = pos_0;
break :blk_0 false;
};
}