fn parseSwitchExpr(p: *Parse, is_labeled: bool) !?Node.Index
p: *Parse
is_labeled: bool
2514 2515 2516 2517
fn parseSwitchExpr(p: *Parse, is_labeled: bool) !?Node.Index { const switch_token = p.eatToken(.keyword_switch) orelse return null; return try p.expectSwitchSuffix(if (is_labeled) switch_token - 2 else switch_token); }