MCPcopy Create free account
hub / github.com/nodejs/node / combineSymbolTables

Function combineSymbolTables

test/fixtures/snapshot/typescript.js:49255–49264  ·  view source on GitHub ↗
(first, second)

Source from the content-addressed store, hash-verified

49253 }
49254 }
49255 function combineSymbolTables(first, second) {
49256 if (!(first === null || first === void 0 ? void 0 : first.size))
49257 return second;
49258 if (!(second === null || second === void 0 ? void 0 : second.size))
49259 return first;
49260 var combined = ts.createSymbolTable();
49261 mergeSymbolTable(combined, first);
49262 mergeSymbolTable(combined, second);
49263 return combined;
49264 }
49265 function mergeSymbolTable(target, source, unidirectional) {
49266 if (unidirectional === void 0) { unidirectional = false; }
49267 source.forEach(function (sourceSymbol, id) {

Callers 1

Calls 1

mergeSymbolTableFunction · 0.85

Tested by

no test coverage detected