()
| 3336 | } |
| 3337 | |
| 3338 | parseScript(): Node.Script { |
| 3339 | const node = this.createNode(); |
| 3340 | const body = this.parseDirectivePrologues(); |
| 3341 | while (this.lookahead.type !== Token.EOF) { |
| 3342 | body.push(this.parseStatementListItem()); |
| 3343 | } |
| 3344 | return this.finalize(node, new Node.Script(body)); |
| 3345 | } |
| 3346 | |
| 3347 | // https://tc39.github.io/ecma262/#sec-imports |
| 3348 |
no test coverage detected