MCPcopy Create free account
hub / github.com/nodejs/node / substituteExpressionIdentifier

Function substituteExpressionIdentifier

test/fixtures/snapshot/typescript.js:94176–94180  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

94174 return node;
94175 }
94176 function substituteExpressionIdentifier(node) {
94177 return trySubstituteClassAlias(node)
94178 || trySubstituteNamespaceExportedName(node)
94179 || node;
94180 }
94181 function trySubstituteClassAlias(node) {
94182 if (enabledSubstitutions & 1 /* TypeScriptSubstitutionFlags.ClassAliases */) {
94183 if (resolver.getNodeCheckFlags(node) & 33554432 /* NodeCheckFlags.ConstructorReferenceInClass */) {

Calls 4

trySubstituteClassAliasFunction · 0.85
isPartOfClassBodyFunction · 0.85
hasMethod · 0.65

Tested by

no test coverage detected