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

Function mergeSymbolTable

test/fixtures/snapshot/typescript.js:49265–49271  ·  view source on GitHub ↗
(target, source, unidirectional)

Source from the content-addressed store, hash-verified

49263 return combined;
49264 }
49265 function mergeSymbolTable(target, source, unidirectional) {
49266 if (unidirectional === void 0) { unidirectional = false; }
49267 source.forEach(function (sourceSymbol, id) {
49268 var targetSymbol = target.get(id);
49269 target.set(id, targetSymbol ? mergeSymbol(targetSymbol, sourceSymbol, unidirectional) : sourceSymbol);
49270 });
49271 }
49272 function mergeModuleAugmentation(moduleName) {
49273 var _a, _b, _c;
49274 var moduleAugmentation = moduleName.parent;

Callers 6

mergeSymbolFunction · 0.85
combineSymbolTablesFunction · 0.85
mergeModuleAugmentationFunction · 0.85
getJSContainerObjectTypeFunction · 0.85
mergeJSSymbolsFunction · 0.85
initializeTypeCheckerFunction · 0.85

Calls 4

mergeSymbolFunction · 0.85
forEachMethod · 0.65
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected