pub fn parseIfPrefix(p: *Parser) Error!bool p: *ParserMaxDepth1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917 pub fn parseIfPrefix(p: *Parser) Error!bool {
const def_index = @backingInt(Def.defIfPrefix);
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.parseKEYWORD_if() and try p.parseLPAREN() and try p.parseExpr() and try p.parseRPAREN() and (try p.parsePtrPayload() or true)) break :blk_0 true;
p.i = pos_0;
break :blk_0 false;
};
}