()
| 1875 | // Parse indent-enclosed block of statements |
| 1876 | |
| 1877 | function parseBlock() { |
| 1878 | var node = startNode(); |
| 1879 | node.body = []; |
| 1880 | while (tokType !== _dedent && tokType !== _eof) { |
| 1881 | var stmt = parseStatement(); |
| 1882 | if (stmt) node.body.push(stmt); |
| 1883 | } |
| 1884 | if (tokType === _dedent) next(); |
| 1885 | return finishNode(node, "BlockStatement"); |
| 1886 | } |
| 1887 | |
| 1888 | // Parse 'suite' from Python grammar spec |
| 1889 | // Will replace parseBlock eventually |
no test coverage detected