MCPcopy Index your code
hub / github.com/jquery/esprima / parseExportSpecifier

Method parseExportSpecifier

src/parser.ts:3477–3488  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers 1

Calls 5

createNodeMethod · 0.95
parseIdentifierNameMethod · 0.95
nextTokenMethod · 0.95
finalizeMethod · 0.95

Tested by

no test coverage detected