MCPcopy
hub / github.com/angular/components / decorateDeprecatedDoc

Function decorateDeprecatedDoc

tools/dgeni/common/decorators.ts:101–109  ·  view source on GitHub ↗
(doc: ApiDoc & DeprecationInfo)

Source from the content-addressed store, hash-verified

99 * the item is deprecated or not and set deprecation message.
100 */
101export function decorateDeprecatedDoc(doc: ApiDoc & DeprecationInfo) {
102 doc.isDeprecated = isDeprecatedDoc(doc);
103 doc.breakingChange = getBreakingChange(doc);
104 doc.deprecatedMessage = getDeprecationMessage(doc);
105
106 if (doc.isDeprecated && !doc.breakingChange) {
107 console.warn('Warning: There is a deprecated item without a @breaking-change tag.', doc.id);
108 }
109}

Callers 6

_decorateClassLikeDocMethod · 0.90
_decorateMethodDocMethod · 0.90
_decoratePropertyDocMethod · 0.90

Calls 4

isDeprecatedDocFunction · 0.85
getBreakingChangeFunction · 0.85
getDeprecationMessageFunction · 0.85
warnMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…