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

Function forEachIdentifierInEntityName

test/fixtures/snapshot/typescript.js:47490–47506  ·  view source on GitHub ↗
(e, parent, action)

Source from the content-addressed store, hash-verified

47488 }
47489 }
47490 function forEachIdentifierInEntityName(e, parent, action) {
47491 if (isExportsOrModuleExportsOrAlias(file, e)) {
47492 return file.symbol;
47493 }
47494 else if (ts.isIdentifier(e)) {
47495 return action(e, lookupSymbolForPropertyAccess(e), parent);
47496 }
47497 else {
47498 var s = forEachIdentifierInEntityName(e.expression, parent, action);
47499 var name = ts.getNameOrArgument(e);
47500 // unreachable
47501 if (ts.isPrivateIdentifier(name)) {
47502 ts.Debug.fail("unexpected PrivateIdentifier");
47503 }
47504 return action(name, s && s.exports && s.exports.get(ts.getElementOrPropertyAccessName(e)), s);
47505 }
47506 }
47507 function bindCallExpression(node) {
47508 // We're only inspecting call expressions to detect CommonJS modules, so we can skip
47509 // this check if we've already seen the module indicator

Calls 5

actionFunction · 0.85
getMethod · 0.65
failMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…