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

Function addDeprecatedSuggestion

test/fixtures/snapshot/typescript.js:49062–49065  ·  view source on GitHub ↗
(location, declarations, deprecatedEntity)

Source from the content-addressed store, hash-verified

49060 return !!(getDeclarationNodeFlagsFromSymbol(symbol) & 268435456 /* NodeFlags.Deprecated */);
49061 }
49062 function addDeprecatedSuggestion(location, declarations, deprecatedEntity) {
49063 var diagnostic = ts.createDiagnosticForNode(location, ts.Diagnostics._0_is_deprecated, deprecatedEntity);
49064 return addDeprecatedSuggestionWorker(declarations, diagnostic);
49065 }
49066 function addDeprecatedSuggestionWithSignature(location, declaration, deprecatedEntity, signatureString) {
49067 var diagnostic = deprecatedEntity
49068 ? ts.createDiagnosticForNode(location, ts.Diagnostics.The_signature_0_of_1_is_deprecated, signatureString, deprecatedEntity)

Callers 6

checkIdentifierFunction · 0.85
checkTypeReferenceNodeFunction · 0.85
checkAliasSymbolFunction · 0.85

Calls 1

Tested by

no test coverage detected