From c5579f330a3153c70240fac7bef8e154e9ac0999 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Thu, 17 Oct 2019 12:39:17 +0200 Subject: [PATCH] build: do not show inherited protected members in api docs As per discussion in the team meeting, we do not want to show the API documentation of inherited protected members. The protected members should be only displayed in the API doc of the class that _declares_ these. --- tools/dgeni/processors/merge-inherited-properties.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/dgeni/processors/merge-inherited-properties.ts b/tools/dgeni/processors/merge-inherited-properties.ts index 90a5380cf38b..ac8c6022b8ba 100644 --- a/tools/dgeni/processors/merge-inherited-properties.ts +++ b/tools/dgeni/processors/merge-inherited-properties.ts @@ -20,7 +20,12 @@ export class MergeInheritedProperties implements Processor { // Note that we need to get check all base documents. We cannot assume // that directive base documents already have merged inherited members. getInheritedDocsOfClass(doc).forEach(d => { - d.members.forEach(member => this._addMemberDocIfNotPresent(doc, member)); + d.members.forEach(member => { + // only add inherited class members which are not "protected" or "private". + if (member.accessibility === 'public') { + this._addMemberDocIfNotPresent(doc, member); + } + }); }); }