Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function isProperty(doc) {
if (doc instanceof PropertyMemberDoc.PropertyMemberDoc ||
// The latest Dgeni version no longer treats getters or setters as properties.
// From a user perspective, these are still properties and should be handled the same
// way as normal properties.
(!isMethod(doc) && (doc.isGetAccessor || doc.isSetAccessor))) {
return !isGenericTypeParameter(doc);
}
return false;
}
function isDirective(doc) {