pub fn parseSuffixExpr(p: *Parser) Error!bool p: *ParserMaxDepth1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498 pub fn parseSuffixExpr(p: *Parser) Error!bool {
const def_index = @backingInt(Def.defSuffixExpr);
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.parsePrimaryTypeExpr() and blk_1: {
var i_1: usize = 0;
while (try p.parseSuffixOp()) {
if (i_1 > max_depth) return error.MaxDepth;
i_1 += 1;
}
break :blk_1 true;
} and blk_1: {
const pos_1 = p.i;
const match_1 = try p.parseSuffixOpPrefix();
p.i = pos_1;
break :blk_1 !match_1;
}) break :blk_0 true;
p.i = pos_0;
break :blk_0 false;
};
}