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

Function isVariableDeclarationInImport

test/fixtures/snapshot/typescript.js:162485–162488  ·  view source on GitHub ↗
(decl)

Source from the content-addressed store, hash-verified

162483 }
162484 }
162485 function isVariableDeclarationInImport(decl) {
162486 return ts.isSourceFile(decl.parent.parent.parent) &&
162487 !!decl.initializer && ts.isRequireCall(decl.initializer, /*checkArgumentIsStringLiteralLike*/ true);
162488 }
162489 function filterImport(i, moduleSpecifier, keep) {
162490 switch (i.kind) {
162491 case 266 /* SyntaxKind.ImportDeclaration */: {

Callers 1

isInImportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…