MCPcopy Create free account
hub / github.com/angular/components / isProperty

Function isProperty

tools/dgeni/common/decorators.ts:19–30  ·  view source on GitHub ↗
(doc: MemberDoc)

Source from the content-addressed store, hash-verified

17}
18
19export 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
32export function isDirective(doc: ClassExportDoc): boolean {
33 return hasClassDecorator(doc, 'Directive');

Callers

nothing calls this directly

Calls 2

isMethodFunction · 0.85
isGenericTypeParameterFunction · 0.85

Tested by

no test coverage detected