MCPcopy Create free account
hub / github.com/davidkingzyb/SCAST / parseBlock

Function parseBlock

lib/filbert.js:1877–1886  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

parseStatementFunction · 0.85

Calls 4

startNodeFunction · 0.85
parseStatementFunction · 0.85
finishNodeFunction · 0.85
nextFunction · 0.70

Tested by

no test coverage detected