MCPcopy Index your code
hub / github.com/jquery/esprima / parseBlock

Method parseBlock

src/parser.ts:1815–1829  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 4

parseCatchClauseMethod · 0.95
parseFinallyClauseMethod · 0.95
parseTryStatementMethod · 0.95
parseStatementMethod · 0.95

Calls 6

createNodeMethod · 0.95
expectMethod · 0.95
matchMethod · 0.95
finalizeMethod · 0.95
pushMethod · 0.80

Tested by

no test coverage detected