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

Function getExternalModuleOrNamespaceExportName

test/fixtures/snapshot/typescript.js:26986–26991  ·  view source on GitHub ↗

* Gets the exported name of a declaration for use in expressions. * * An exported name will *always* be prefixed with an module or namespace export modifier like * "exports." if the name points to an exported symbol. * * @param ns The namespace identifier

(ns, node, allowComments, allowSourceMaps)

Source from the content-addressed store, hash-verified

26984 * @param allowSourceMaps A value indicating whether source maps may be emitted for the name.
26985 */
26986 function getExternalModuleOrNamespaceExportName(ns, node, allowComments, allowSourceMaps) {
26987 if (ns && ts.hasSyntacticModifier(node, 1 /* ModifierFlags.Export */)) {
26988 return getNamespaceMemberName(ns, getName(node), allowComments, allowSourceMaps);
26989 }
26990 return getExportName(node, allowComments, allowSourceMaps);
26991 }
26992 /**
26993 * Copies any necessary standard and custom prologue-directives into target array.
26994 * @param source origin statements array

Callers

nothing calls this directly

Calls 3

getNamespaceMemberNameFunction · 0.85
getNameFunction · 0.85
getExportNameFunction · 0.85

Tested by

no test coverage detected