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

Method parseVariableDeclarationList

src/parser.ts:2073–2084  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

2071 }
2072
2073 parseVariableDeclarationList(options): Node.VariableDeclarator[] {
2074 const opt: DeclarationOptions = { inFor: options.inFor };
2075
2076 const list: Node.VariableDeclarator[] = [];
2077 list.push(this.parseVariableDeclaration(opt));
2078 while (this.match(',')) {
2079 this.nextToken();
2080 list.push(this.parseVariableDeclaration(opt));
2081 }
2082
2083 return list;
2084 }
2085
2086 parseVariableStatement(): Node.VariableDeclaration {
2087 const node = this.createNode();

Callers 2

parseForStatementMethod · 0.95

Calls 4

matchMethod · 0.95
nextTokenMethod · 0.95
pushMethod · 0.80

Tested by

no test coverage detected