MCPcopy
hub / github.com/jquery/esprima / parseBindingList

Method parseBindingList

src/parser.ts:1862–1871  ·  view source on GitHub ↗
(kind: string, options)

Source from the content-addressed store, hash-verified

1860 }
1861
1862 parseBindingList(kind: string, options): Node.VariableDeclarator[] {
1863 const list = [this.parseLexicalBinding(kind, options)];
1864
1865 while (this.match(',')) {
1866 this.nextToken();
1867 list.push(this.parseLexicalBinding(kind, options));
1868 }
1869
1870 return list;
1871 }
1872
1873 isLexicalDeclaration(): boolean {
1874 const state = this.scanner.saveState();

Callers 2

parseForStatementMethod · 0.95

Calls 4

parseLexicalBindingMethod · 0.95
matchMethod · 0.95
nextTokenMethod · 0.95
pushMethod · 0.80

Tested by

no test coverage detected