MCPcopy Index your code
hub / github.com/BloombergGraphics/whatiscode / parseLexicalDeclaration

Function parseLexicalDeclaration

scripts/libs/esprima.js:3317–3328  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

3315 }
3316
3317 function parseLexicalDeclaration(options) {
3318 var kind, declarations, node = new Node();
3319
3320 kind = lex().value;
3321 assert(kind === 'let' || kind === 'const', 'Lexical declaration must be either let or const');
3322
3323 declarations = parseBindingList(kind, options);
3324
3325 consumeSemicolon();
3326
3327 return node.finishLexicalDeclaration(declarations, kind);
3328 }
3329
3330 function parseRestElement() {
3331 var param, node = new Node();

Callers 1

parseStatementListItemFunction · 0.85

Calls 4

lexFunction · 0.85
assertFunction · 0.85
parseBindingListFunction · 0.85
consumeSemicolonFunction · 0.85

Tested by

no test coverage detected