(declarations, diagnostic)
| 49048 | return diagnostic; |
| 49049 | } |
| 49050 | function addDeprecatedSuggestionWorker(declarations, diagnostic) { |
| 49051 | var deprecatedTag = Array.isArray(declarations) ? ts.forEach(declarations, ts.getJSDocDeprecatedTag) : ts.getJSDocDeprecatedTag(declarations); |
| 49052 | if (deprecatedTag) { |
| 49053 | ts.addRelatedInfo(diagnostic, ts.createDiagnosticForNode(deprecatedTag, ts.Diagnostics.The_declaration_was_marked_as_deprecated_here)); |
| 49054 | } |
| 49055 | // We call `addRelatedInfo()` before adding the diagnostic to prevent duplicates. |
| 49056 | suggestionDiagnostics.add(diagnostic); |
| 49057 | return diagnostic; |
| 49058 | } |
| 49059 | function isDeprecatedSymbol(symbol) { |
| 49060 | return !!(getDeclarationNodeFlagsFromSymbol(symbol) & 268435456 /* NodeFlags.Deprecated */); |
| 49061 | } |
no test coverage detected