(classDoc: CategorizedClassDoc)
| 55 | } |
| 56 | |
| 57 | export 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 | |
| 71 | export function hasMemberDecorator(doc: MemberDoc, decoratorName: string): boolean { |
| 72 | return doc.docType == 'member' && hasDecorator(doc, decoratorName); |
no test coverage detected
searching dependent graphs…