* ```abnf * MatchCase = "case" Expr "=>" BlockOrStatement * ```
(s: ITokenStream)
| 493 | * ``` |
| 494 | */ |
| 495 | function parseMatchCase(s: ITokenStream): Ast.Match['qs'][number] { |
| 496 | s.expect(TokenKind.CaseKeyword); |
| 497 | s.next(); |
| 498 | const q = parseExpr(s, false); |
| 499 | s.expect(TokenKind.Arrow); |
| 500 | s.next(); |
| 501 | const a = parseBlockOrStatement(s); |
| 502 | return { q, a }; |
| 503 | } |
| 504 | |
| 505 | /** |
| 506 | * ```abnf |
no test coverage detected