MCPcopy Index your code
hub / github.com/nodejs/node / checkImportBinding

Function checkImportBinding

test/fixtures/snapshot/typescript.js:85233–85242  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

85231 return targetSymbol;
85232 }
85233 function checkImportBinding(node) {
85234 checkCollisionsForDeclarationName(node, node.name);
85235 checkAliasSymbol(node);
85236 if (node.kind === 270 /* SyntaxKind.ImportSpecifier */ &&
85237 ts.idText(node.propertyName || node.name) === "default" &&
85238 ts.getESModuleInterop(compilerOptions) &&
85239 moduleKind !== ts.ModuleKind.System && (moduleKind < ts.ModuleKind.ES2015 || ts.getSourceFileOfNode(node).impliedNodeFormat === ts.ModuleKind.CommonJS)) {
85240 checkExternalEmitHelpers(node, 131072 /* ExternalEmitHelpers.ImportDefault */);
85241 }
85242 }
85243 function checkAssertClause(declaration) {
85244 var _a;
85245 if (declaration.assertClause) {

Callers 2

checkImportDeclarationFunction · 0.85

Calls 3

checkAliasSymbolFunction · 0.85
checkExternalEmitHelpersFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…