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

Function lookupSymbolForName

test/fixtures/snapshot/typescript.js:47773–47782  ·  view source on GitHub ↗
(container, name)

Source from the content-addressed store, hash-verified

47771 }
47772 ts.isExportsOrModuleExportsOrAlias = isExportsOrModuleExportsOrAlias;
47773 function lookupSymbolForName(container, name) {
47774 var local = container.locals && container.locals.get(name);
47775 if (local) {
47776 return local.exportSymbol || local;
47777 }
47778 if (ts.isSourceFile(container) && container.jsGlobalAugmentations && container.jsGlobalAugmentations.has(name)) {
47779 return container.jsGlobalAugmentations.get(name);
47780 }
47781 return container.symbol && container.symbol.exports && container.symbol.exports.get(name);
47782 }
47783})(ts || (ts = {}));
47784/** @internal */
47785var ts;

Callers 4

bindWorkerFunction · 0.85

Calls 2

getMethod · 0.65
hasMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…