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

Function getModuleName

test/fixtures/snapshot/typescript.js:141491–141497  ·  view source on GitHub ↗
(moduleDeclaration)

Source from the content-addressed store, hash-verified

141489 return spans;
141490 }
141491 function getModuleName(moduleDeclaration) {
141492 // We want to maintain quotation marks.
141493 if (ts.isAmbientModule(moduleDeclaration)) {
141494 return ts.getTextOfNode(moduleDeclaration.name);
141495 }
141496 return getFullyQualifiedModuleName(moduleDeclaration);
141497 }
141498 function getFullyQualifiedModuleName(moduleDeclaration) {
141499 // Otherwise, we need to aggregate each identifier to build up the qualified name.
141500 var result = [ts.getTextOfIdentifierOrLiteral(moduleDeclaration.name)];

Callers 2

tryGetNameFunction · 0.70
getItemNameFunction · 0.70

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…