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

Function addToSymbolTable

test/fixtures/snapshot/typescript.js:49331–49345  ·  view source on GitHub ↗
(target, source, message)

Source from the content-addressed store, hash-verified

49329 }
49330 }
49331 function addToSymbolTable(target, source, message) {
49332 source.forEach(function (sourceSymbol, id) {
49333 var targetSymbol = target.get(id);
49334 if (targetSymbol) {
49335 // Error on redeclarations
49336 ts.forEach(targetSymbol.declarations, addDeclarationDiagnostic(ts.unescapeLeadingUnderscores(id), message));
49337 }
49338 else {
49339 target.set(id, sourceSymbol);
49340 }
49341 });
49342 function addDeclarationDiagnostic(id, message) {
49343 return function (declaration) { return diagnostics.add(ts.createDiagnosticForNode(declaration, message, id)); };
49344 }
49345 }
49346 function getSymbolLinks(symbol) {
49347 if (symbol.flags & 33554432 /* SymbolFlags.Transient */)
49348 return symbol;

Callers 1

initializeTypeCheckerFunction · 0.85

Calls 4

addDeclarationDiagnosticFunction · 0.85
forEachMethod · 0.65
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected