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

Function enableSubstitutionForNamespaceExports

test/fixtures/snapshot/typescript.js:94093–94103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94091 }
94092 }
94093 function enableSubstitutionForNamespaceExports() {
94094 if ((enabledSubstitutions & 2 /* TypeScriptSubstitutionFlags.NamespaceExports */) === 0) {
94095 enabledSubstitutions |= 2 /* TypeScriptSubstitutionFlags.NamespaceExports */;
94096 // We need to enable substitutions for identifiers and shorthand property assignments. This allows us to
94097 // substitute the names of exported members of a namespace.
94098 context.enableSubstitution(79 /* SyntaxKind.Identifier */);
94099 context.enableSubstitution(297 /* SyntaxKind.ShorthandPropertyAssignment */);
94100 // We need to be notified when entering and exiting namespaces.
94101 context.enableEmitNotification(261 /* SyntaxKind.ModuleDeclaration */);
94102 }
94103 }
94104 function isTransformedModuleDeclaration(node) {
94105 return ts.getOriginalNode(node).kind === 261 /* SyntaxKind.ModuleDeclaration */;
94106 }

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…