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

Function substituteExpression

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

Source from the content-addressed store, hash-verified

94163 return node;
94164 }
94165 function substituteExpression(node) {
94166 switch (node.kind) {
94167 case 79 /* SyntaxKind.Identifier */:
94168 return substituteExpressionIdentifier(node);
94169 case 206 /* SyntaxKind.PropertyAccessExpression */:
94170 return substitutePropertyAccessExpression(node);
94171 case 207 /* SyntaxKind.ElementAccessExpression */:
94172 return substituteElementAccessExpression(node);
94173 }
94174 return node;
94175 }
94176 function substituteExpressionIdentifier(node) {
94177 return trySubstituteClassAlias(node)
94178 || trySubstituteNamespaceExportedName(node)

Callers 1

onSubstituteNodeFunction · 0.85

Tested by

no test coverage detected