pub fn parseSwitchItem(p: *Parser) Error!bool p: *ParserMaxDepth2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061 pub fn parseSwitchItem(p: *Parser) Error!bool {
const def_index = @backingInt(Def.defSwitchItem);
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.parseExpr() and (blk_3: {
const pos_3 = p.i;
if (try p.parseDOT3() and try p.parseExpr()) break :blk_3 true;
p.i = pos_3;
break :blk_3 false;
} or true)) break :blk_0 true;
p.i = pos_0;
break :blk_0 false;
};
}