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

Function lookupSymbolForPropertyAccess

test/fixtures/snapshot/typescript.js:47480–47489  ·  view source on GitHub ↗
(node, lookupContainer)

Source from the content-addressed store, hash-verified

47478 return expr.parent;
47479 }
47480 function lookupSymbolForPropertyAccess(node, lookupContainer) {
47481 if (lookupContainer === void 0) { lookupContainer = container; }
47482 if (ts.isIdentifier(node)) {
47483 return lookupSymbolForName(lookupContainer, node.escapedText);
47484 }
47485 else {
47486 var symbol = lookupSymbolForPropertyAccess(node.expression);
47487 return symbol && symbol.exports && symbol.exports.get(ts.getElementOrPropertyAccessName(node));
47488 }
47489 }
47490 function forEachIdentifierInEntityName(e, parent, action) {
47491 if (isExportsOrModuleExportsOrAlias(file, e)) {
47492 return file.symbol;

Calls 2

lookupSymbolForNameFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…