MCPcopy Create free account
hub / github.com/nodejs/node / getExportName

Function getExportName

test/fixtures/snapshot/typescript.js:26942–26944  ·  view source on GitHub ↗

* Gets the export name of a declaration. This is primarily used for declarations that can be * referred to by name in the declaration's immediate scope (classes, enums, namespaces). An * export name will *always* be prefixed with an module or namespace export modifier like

(node, allowComments, allowSourceMaps)

Source from the content-addressed store, hash-verified

26940 * @param allowSourceMaps A value indicating whether source maps may be emitted for the name.
26941 */
26942 function getExportName(node, allowComments, allowSourceMaps) {
26943 return getName(node, allowComments, allowSourceMaps, 8192 /* EmitFlags.ExportName */);
26944 }
26945 /**
26946 * Gets the name of a declaration for use in declarations.
26947 *

Calls 1

getNameFunction · 0.85

Tested by

no test coverage detected