MCPcopy Create free account
hub / github.com/babel/babel / parseStatementListItem

Function parseStatementListItem

packages/babel-parser/src/parser/statement.ts:351–359  ·  view source on GitHub ↗
(this: Parser)

Source from the content-addressed store, hash-verified

349
350 // https://tc39.es/ecma262/#prod-StatementListItem
351 parseStatementListItem(this: Parser) {
352 return this.parseStatementLike(
353 ParseStatementFlag.AllowDeclaration |
354 ParseStatementFlag.AllowFunctionDeclaration |
355 (!this.options.annexB || this.state.strict
356 ? 0
357 : ParseStatementFlag.AllowLabeledFunction),
358 );
359 }
360
361 parseStatementOrSloppyAnnexBFunctionDeclaration(
362 this: Parser,

Callers

nothing calls this directly

Calls 1

parseStatementLikeMethod · 0.80

Tested by

no test coverage detected