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

Function moduleSpecifierFromImport

test/fixtures/snapshot/typescript.js:162217–162221  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

162215 }
162216 }
162217 function moduleSpecifierFromImport(i) {
162218 return (i.kind === 266 /* SyntaxKind.ImportDeclaration */ ? i.moduleSpecifier
162219 : i.kind === 265 /* SyntaxKind.ImportEqualsDeclaration */ ? i.moduleReference.expression
162220 : i.initializer.arguments[0]);
162221 }
162222 function forEachImportInStatement(statement, cb) {
162223 if (ts.isImportDeclaration(statement)) {
162224 if (ts.isStringLiteral(statement.moduleSpecifier))

Callers 2

_loop_20Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected