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

Function getNamespaceMemberName

test/fixtures/snapshot/typescript.js:26963–26974  ·  view source on GitHub ↗

* Gets a namespace-qualified name for use in expressions. * * @param ns The namespace identifier. * @param name The name. * @param allowComments A value indicating whether comments may be emitted for the name. * @param allowSourceMaps A value indicating w

(ns, name, allowComments, allowSourceMaps)

Source from the content-addressed store, hash-verified

26961 * @param allowSourceMaps A value indicating whether source maps may be emitted for the name.
26962 */
26963 function getNamespaceMemberName(ns, name, allowComments, allowSourceMaps) {
26964 var qualifiedName = createPropertyAccessExpression(ns, ts.nodeIsSynthesized(name) ? name : cloneNode(name));
26965 ts.setTextRange(qualifiedName, name);
26966 var emitFlags = 0;
26967 if (!allowSourceMaps)
26968 emitFlags |= 48 /* EmitFlags.NoSourceMap */;
26969 if (!allowComments)
26970 emitFlags |= 1536 /* EmitFlags.NoComments */;
26971 if (emitFlags)
26972 ts.setEmitFlags(qualifiedName, emitFlags);
26973 return qualifiedName;
26974 }
26975 /**
26976 * Gets the exported name of a declaration for use in expressions.
26977 *

Calls 2

cloneNodeFunction · 0.85

Tested by

no test coverage detected