MCPcopy Create free account
hub / github.com/babel/babel / parseImportSpecifierLocal

Function parseImportSpecifierLocal

packages/babel-parser/src/parser/statement.ts:3140–3150  ·  view source on GitHub ↗
(
    node: Undone<N.ImportDeclaration>,
    specifier: Undone<T>,
    type: T["type"],
  )

Source from the content-addressed store, hash-verified

3138 }
3139
3140 parseImportSpecifierLocal<
3141 T extends
3142 N.ImportSpecifier | N.ImportDefaultSpecifier | N.ImportNamespaceSpecifier,
3143 >(
3144 node: Undone<N.ImportDeclaration>,
3145 specifier: Undone<T>,
3146 type: T["type"],
3147 ): void {
3148 specifier.local = this.parseIdentifier();
3149 node.specifiers.push(this.finishImportSpecifier(specifier, type));
3150 }
3151
3152 finishImportSpecifier<
3153 T extends

Callers

nothing calls this directly

Calls 2

parseIdentifierMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected