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

Function enableSubstitutionForClassAliases

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

Source from the content-addressed store, hash-verified

94081 }
94082 }
94083 function enableSubstitutionForClassAliases() {
94084 if ((enabledSubstitutions & 1 /* TypeScriptSubstitutionFlags.ClassAliases */) === 0) {
94085 enabledSubstitutions |= 1 /* TypeScriptSubstitutionFlags.ClassAliases */;
94086 // We need to enable substitutions for identifiers. This allows us to
94087 // substitute class names inside of a class declaration.
94088 context.enableSubstitution(79 /* SyntaxKind.Identifier */);
94089 // Keep track of class aliases.
94090 classAliases = [];
94091 }
94092 }
94093 function enableSubstitutionForNamespaceExports() {
94094 if ((enabledSubstitutions & 2 /* TypeScriptSubstitutionFlags.NamespaceExports */) === 0) {
94095 enabledSubstitutions |= 2 /* TypeScriptSubstitutionFlags.NamespaceExports */;

Callers 2

getClassAliasIfNeededFunction · 0.85
visitClassExpressionFunction · 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…