pub fn parseVarDeclProto(p: *Parser) Error!bool p: *ParserMaxDepth509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532 pub fn parseVarDeclProto(p: *Parser) Error!bool {
const def_index = @backingInt(Def.defVarDeclProto);
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 (blk_2: {
const pos_2 = p.i;
if (try p.parseKEYWORD_const()) break :blk_2 true;
p.i = pos_2;
if (try p.parseKEYWORD_var()) break :blk_2 true;
p.i = pos_2;
break :blk_2 false;
} and try p.parseIDENTIFIER() and (blk_3: {
const pos_3 = p.i;
if (try p.parseCOLON() and try p.parseTypeExpr()) break :blk_3 true;
p.i = pos_3;
break :blk_3 false;
} or true) and (try p.parseByteAlign() or true) and (try p.parseAddrSpace() or true) and (try p.parseLinkSection() or true)) break :blk_0 true;
p.i = pos_0;
break :blk_0 false;
};
}