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

Function hasClassDecorator

tools/dgeni/common/decorators.ts:75–77  ·  view source on GitHub ↗
(doc: ClassExportDoc, decoratorName: string)

Source from the content-addressed store, hash-verified

73}
74
75export function hasClassDecorator(doc: ClassExportDoc, decoratorName: string): boolean {
76 return doc.docType == 'class' && hasDecorator(doc, decoratorName);
77}
78
79export function hasDecorator(doc: HasDecoratorsDoc, decoratorName: string): boolean {
80 return (

Callers 4

isDirectiveFunction · 0.85
isComponentFunction · 0.85
isServiceFunction · 0.85
isNgModuleFunction · 0.85

Calls 1

hasDecoratorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…