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

Function finishImportSpecifier

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

Source from the content-addressed store, hash-verified

3146 }
3147
3148 finishImportSpecifier<
3149 T extends
3150 N.ImportSpecifier | N.ImportDefaultSpecifier | N.ImportNamespaceSpecifier,
3151 >(specifier: Undone<T>, type: T["type"]) {
3152 this.checkLVal(specifier.local, { type }, BindingFlag.TYPE_LEXICAL);
3153 return this.finishNode(specifier, type);
3154 }
3155
3156 /**
3157 * parse assert entries

Callers

nothing calls this directly

Calls 1

finishNodeMethod · 0.80

Tested by

no test coverage detected