(target, source, message)
| 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; |
no test coverage detected