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

Function getSelectors

tools/dgeni/common/decorators.ts:57–69  ·  view source on GitHub ↗
(classDoc: CategorizedClassDoc)

Source from the content-addressed store, hash-verified

55}
56
57export function getSelectors(classDoc: CategorizedClassDoc): string[] | undefined {
58 if (classDoc.metadata) {
59 const selectors: string = classDoc.metadata.get('selector');
60
61 if (selectors) {
62 return selectors
63 .replace(/[\r\n]/g, '')
64 .split(/\s*,\s*/)
65 .filter(s => s !== '');
66 }
67 }
68 return undefined;
69}
70
71export function hasMemberDecorator(doc: MemberDoc, decoratorName: string): boolean {
72 return doc.docType == 'member' && hasDecorator(doc, decoratorName);

Callers 1

_decorateClassDocMethod · 0.90

Calls 2

getMethod · 0.65
filterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…