()
| 3475 | // https://tc39.github.io/ecma262/#sec-exports |
| 3476 | |
| 3477 | parseExportSpecifier(): Node.ExportSpecifier { |
| 3478 | const node = this.createNode(); |
| 3479 | |
| 3480 | const local = this.parseIdentifierName(); |
| 3481 | let exported = local; |
| 3482 | if (this.matchContextualKeyword('as')) { |
| 3483 | this.nextToken(); |
| 3484 | exported = this.parseIdentifierName(); |
| 3485 | } |
| 3486 | |
| 3487 | return this.finalize(node, new Node.ExportSpecifier(local, exported)); |
| 3488 | } |
| 3489 | |
| 3490 | parseExportDeclaration(): Node.ExportDeclaration { |
| 3491 | if (this.context.inFunctionBody) { |
no test coverage detected