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

Function tryFindAmbientModule

test/fixtures/snapshot/typescript.js:59539–59546  ·  view source on GitHub ↗
(moduleName, withAugmentations)

Source from the content-addressed store, hash-verified

59537 }));
59538 }
59539 function tryFindAmbientModule(moduleName, withAugmentations) {
59540 if (ts.isExternalModuleNameRelative(moduleName)) {
59541 return undefined;
59542 }
59543 var symbol = getSymbol(globals, '"' + moduleName + '"', 512 /* SymbolFlags.ValueModule */);
59544 // merged symbol is module declaration symbol combined with all augmentations
59545 return symbol && withAugmentations ? getMergedSymbol(symbol) : symbol;
59546 }
59547 function isOptionalParameter(node) {
59548 if (ts.hasQuestionToken(node) || isOptionalJSDocPropertyLikeTag(node) || isJSDocOptionalParameter(node)) {
59549 return true;

Callers 2

createTypeCheckerFunction · 0.85
resolveExternalModuleFunction · 0.85

Calls 2

getSymbolFunction · 0.85
getMergedSymbolFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…