(this: Parser)
| 337 | |
| 338 | // https://tc39.es/ecma262/#prod-ModuleItem |
| 339 | parseModuleItem(this: Parser) { |
| 340 | return this.parseStatementLike( |
| 341 | ParseStatementFlag.AllowImportExport | |
| 342 | ParseStatementFlag.AllowDeclaration | |
| 343 | ParseStatementFlag.AllowFunctionDeclaration | |
| 344 | // This function is actually also used to parse StatementItems, |
| 345 | // which with Annex B enabled allows labeled functions. |
| 346 | ParseStatementFlag.AllowLabeledFunction, |
| 347 | ); |
| 348 | } |
| 349 | |
| 350 | // https://tc39.es/ecma262/#prod-StatementListItem |
| 351 | parseStatementListItem(this: Parser) { |
nothing calls this directly
no test coverage detected