(this: Parser)
| 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, |
nothing calls this directly
no test coverage detected