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

Method parseVariableStatement

src/parser.ts:2086–2093  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2084 }
2085
2086 parseVariableStatement(): Node.VariableDeclaration {
2087 const node = this.createNode();
2088 this.expectKeyword('var');
2089 const declarations = this.parseVariableDeclarationList({ inFor: false });
2090 this.consumeSemicolon();
2091
2092 return this.finalize(node, new Node.VariableDeclaration(declarations, 'var'));
2093 }
2094
2095 // https://tc39.github.io/ecma262/#sec-empty-statement
2096

Callers 1

parseStatementMethod · 0.95

Calls 5

createNodeMethod · 0.95
expectKeywordMethod · 0.95
consumeSemicolonMethod · 0.95
finalizeMethod · 0.95

Tested by

no test coverage detected