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

Function parseImportSpecifierLocal

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

parseIdentifierMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected