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

Function getInternalName

test/fixtures/snapshot/typescript.js:26916–26918  ·  view source on GitHub ↗

* Gets the internal name of a declaration. This is primarily used for declarations that can be * referred to by name in the body of an ES5 class function body. An internal name will *never* * be prefixed with an module or namespace export modifier like "exports." when emitted as an

(node, allowComments, allowSourceMaps)

Source from the content-addressed store, hash-verified

26914 * @param allowSourceMaps A value indicating whether source maps may be emitted for the name.
26915 */
26916 function getInternalName(node, allowComments, allowSourceMaps) {
26917 return getName(node, allowComments, allowSourceMaps, 16384 /* EmitFlags.LocalName */ | 32768 /* EmitFlags.InternalName */);
26918 }
26919 /**
26920 * Gets the local name of a declaration. This is primarily used for declarations that can be
26921 * referred to by name in the declaration's immediate scope (classes, enums, namespaces). A

Callers

nothing calls this directly

Calls 1

getNameFunction · 0.85

Tested by

no test coverage detected