()
| 579 | } |
| 580 | |
| 581 | function arrayLiteral(): ASTNodeOrNull { |
| 582 | if (matchPunctuator('[')) { |
| 583 | const argList = expressionList('[', ']'); |
| 584 | assert(argList); |
| 585 | return { |
| 586 | type: 'array', |
| 587 | members: argList?.body, |
| 588 | start: argList!.start, |
| 589 | end: argList!.end |
| 590 | }; |
| 591 | } |
| 592 | return null; |
| 593 | } |
| 594 | |
| 595 | function expressionList(startOP = '(', endOp = ')'): ASTNodeOrNull { |
| 596 | if (matchPunctuator(startOP)) { |
no test coverage detected