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

Function hasNamespaceQualifiedExportName

test/fixtures/snapshot/typescript.js:93570–93578  ·  view source on GitHub ↗

* Determines whether an exported declaration will have a qualified export name (e.g. `f.x` * or `exports.x`).

(node)

Source from the content-addressed store, hash-verified

93568 * or `exports.x`).
93569 */
93570 function hasNamespaceQualifiedExportName(node) {
93571 return isExportOfNamespace(node)
93572 || (isExternalModuleExport(node)
93573 && moduleKind !== ts.ModuleKind.ES2015
93574 && moduleKind !== ts.ModuleKind.ES2020
93575 && moduleKind !== ts.ModuleKind.ES2022
93576 && moduleKind !== ts.ModuleKind.ESNext
93577 && moduleKind !== ts.ModuleKind.System);
93578 }
93579 /**
93580 * Records that a declaration was emitted in the current scope, if it was the first
93581 * declaration for the provided symbol.

Callers 2

visitEnumDeclarationFunction · 0.85
visitModuleDeclarationFunction · 0.85

Calls 2

isExportOfNamespaceFunction · 0.85
isExternalModuleExportFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…