pub fn parseCurlySuffixExpr(p: *Parser) Error!bool p: *ParserMaxDepth1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386 pub fn parseCurlySuffixExpr(p: *Parser) Error!bool {
const def_index = @backingInt(Def.defCurlySuffixExpr);
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.parseTypeExpr() and blk_2: {
const pos_2 = p.i;
if (try p.parseInitList()) break :blk_2 true;
p.i = pos_2;
if (blk_3: {
const pos_3 = p.i;
const match_3 = try p.parseLBRACE();
p.i = pos_3;
break :blk_3 !match_3;
}) break :blk_2 true;
p.i = pos_2;
break :blk_2 false;
}) break :blk_0 true;
p.i = pos_0;
break :blk_0 false;
};
}