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

Function shouldEmitModuleDeclaration

test/fixtures/snapshot/typescript.js:93558–93565  ·  view source on GitHub ↗

* Determines whether to elide a module declaration. * * @param node The module declaration node.

(nodeIn)

Source from the content-addressed store, hash-verified

93556 * @param node The module declaration node.
93557 */
93558 function shouldEmitModuleDeclaration(nodeIn) {
93559 var node = ts.getParseTreeNode(nodeIn, ts.isModuleDeclaration);
93560 if (!node) {
93561 // If we can't find a parse tree node, assume the node is instantiated.
93562 return true;
93563 }
93564 return ts.isInstantiatedModule(node, ts.shouldPreserveConstEnums(compilerOptions));
93565 }
93566 /**
93567 * Determines whether an exported declaration will have a qualified export name (e.g. `f.x`
93568 * or `exports.x`).

Callers 1

visitModuleDeclarationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…