(doc: MemberDoc)
| 17 | } |
| 18 | |
| 19 | export function isProperty(doc: MemberDoc): boolean { |
| 20 | if ( |
| 21 | doc instanceof PropertyMemberDoc || |
| 22 | // The latest Dgeni version no longer treats getters or setters as properties. |
| 23 | // From a user perspective, these are still properties and should be handled the same |
| 24 | // way as normal properties. |
| 25 | (!isMethod(doc) && (doc.isGetAccessor || doc.isSetAccessor)) |
| 26 | ) { |
| 27 | return !isGenericTypeParameter(doc); |
| 28 | } |
| 29 | return false; |
| 30 | } |
| 31 | |
| 32 | export function isDirective(doc: ClassExportDoc): boolean { |
| 33 | return hasClassDecorator(doc, 'Directive'); |
nothing calls this directly
no test coverage detected