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

Function addDuplicateLocations

test/fixtures/snapshot/typescript.js:49222–49229  ·  view source on GitHub ↗
(locs, symbol)

Source from the content-addressed store, hash-verified

49220 }
49221 return target;
49222 function addDuplicateLocations(locs, symbol) {
49223 if (symbol.declarations) {
49224 for (var _i = 0, _a = symbol.declarations; _i < _a.length; _i++) {
49225 var decl = _a[_i];
49226 ts.pushIfUnique(locs, decl);
49227 }
49228 }
49229 }
49230 }
49231 function addDuplicateDeclarationErrorsForSymbols(target, message, symbolName, source) {
49232 ts.forEach(target.declarations, function (node) {

Callers 1

mergeSymbolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected