()
| 1813 | } |
| 1814 | |
| 1815 | parseBlock(): Node.BlockStatement { |
| 1816 | const node = this.createNode(); |
| 1817 | |
| 1818 | this.expect('{'); |
| 1819 | const block: Node.StatementListItem[] = []; |
| 1820 | while (true) { |
| 1821 | if (this.match('}')) { |
| 1822 | break; |
| 1823 | } |
| 1824 | block.push(this.parseStatementListItem()); |
| 1825 | } |
| 1826 | this.expect('}'); |
| 1827 | |
| 1828 | return this.finalize(node, new Node.BlockStatement(block)); |
| 1829 | } |
| 1830 | |
| 1831 | // https://tc39.github.io/ecma262/#sec-let-and-const-declarations |
| 1832 |
no test coverage detected