Typeswitch #2
Owner
```
typeswitch_expr: ($) =>
prec(2, seq(
'typeswitch',
field('operand',
seq('(', $._expr, ')')),
repeat1($.typeswitch_case_clause),
seq('default', optional($.variable), 'return', $._expr_single))), // 74
typeswitch_case_clause: ($) => seq(
'case', optional(seq($.variable, 'as')), $.sequence_type, repeat(seq('|', $.sequence_type)),
'return', $._expr_single), // 75
```
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?