MCPcopy Create free account
hub / github.com/nodejs/node / visitImportSpecifier

Function visitImportSpecifier

test/fixtures/snapshot/typescript.js:93864–93866  ·  view source on GitHub ↗

* Visits an import specifier, eliding it if its target, its references, and the compilation settings allow. * * @param node The import specifier node.

(node)

Source from the content-addressed store, hash-verified

93862 * @param node The import specifier node.
93863 */
93864 function visitImportSpecifier(node) {
93865 return !node.isTypeOnly && shouldEmitAliasDeclaration(node) ? node : undefined;
93866 }
93867 /**
93868 * Visits an export assignment, eliding it if it does not contain a clause that resolves
93869 * to a value.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected