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

Function finishImportSpecifier

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

finishNodeMethod · 0.80

Tested by

no test coverage detected