()
| 3347 | // https://tc39.github.io/ecma262/#sec-imports |
| 3348 | |
| 3349 | parseModuleSpecifier(): Node.Literal { |
| 3350 | const node = this.createNode(); |
| 3351 | |
| 3352 | if (this.lookahead.type !== Token.StringLiteral) { |
| 3353 | this.throwError(Messages.InvalidModuleSpecifier); |
| 3354 | } |
| 3355 | |
| 3356 | const token = this.nextToken(); |
| 3357 | const raw = this.getTokenRaw(token); |
| 3358 | return this.finalize(node, new Node.Literal(token.value as string, raw)); |
| 3359 | } |
| 3360 | |
| 3361 | // import {<foo as bar>} ...; |
| 3362 | parseImportSpecifier(): Node.ImportSpecifier { |
no test coverage detected