MCPcopy Index your code
hub / github.com/angular/components / hasDecorator

Function hasDecorator

tools/dgeni/common/decorators.ts:79–85  ·  view source on GitHub ↗
(doc: HasDecoratorsDoc, decoratorName: string)

Source from the content-addressed store, hash-verified

77}
78
79export function hasDecorator(doc: HasDecoratorsDoc, decoratorName: string): boolean {
80 return (
81 !!doc.decorators &&
82 doc.decorators.length > 0 &&
83 doc.decorators.some(d => d.name == decoratorName)
84 );
85}
86
87export function getBreakingChange(doc: ApiDoc): string | null {
88 const breakingChange = findJsDocTag(doc, 'breaking-change');

Callers 2

hasMemberDecoratorFunction · 0.85
hasClassDecoratorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…