Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function isPublicDoc(doc) {
if (_isEnforcedPublicDoc(doc)) {
return true;
}
if (_hasDocsPrivateTag(doc) || doc.name.startsWith('_')) {
return false;
}
else if (doc instanceof MemberDoc.MemberDoc) {
return !_isInternalMember(doc);
}
return true;
}
/** Gets the @docs-public tag from the given document if present. */