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

Function parseStatementListItem

scripts/libs/esprima.js:3176–3190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3174 // 12.1 Block
3175
3176 function parseStatementListItem() {
3177 if (lookahead.type === Token.Keyword) {
3178 switch (lookahead.value) {
3179 case 'const':
3180 case 'let':
3181 return parseLexicalDeclaration({inFor: false});
3182 case 'function':
3183 return parseFunctionDeclaration(new Node());
3184 case 'class':
3185 return parseClassDeclaration();
3186 }
3187 }
3188
3189 return parseStatement();
3190 }
3191
3192 function parseStatementList() {
3193 var list = [];

Callers 4

parseStatementListFunction · 0.85
parseSwitchCaseFunction · 0.85
parseScriptBodyFunction · 0.85

Calls 4

parseLexicalDeclarationFunction · 0.85
parseFunctionDeclarationFunction · 0.85
parseClassDeclarationFunction · 0.85
parseStatementFunction · 0.85

Tested by

no test coverage detected