Skip to content

Commit

Permalink
Merge pull request #4 from christothes/users/chriss/respectTrimLevelF…
Browse files Browse the repository at this point in the history
…orMembers

Respect trim level for members of non-public types
  • Loading branch information
saucecontrol authored Dec 8, 2020
2 parents 299decf + 7e56e0b commit 7712873
Show file tree
Hide file tree
Showing 3 changed files with 290 additions and 244 deletions.
2 changes: 1 addition & 1 deletion src/InheritDoc/InheritDocProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ private static IDictionary<string, IEnumerable<DocMatch>> generateDocMap(IList<T

// If no docs for public explicit interface implementation, inject them
// including the whitespace they would have had if they had been there.
if ((om?.DeclaringType.GetApiLevel() ?? ApiLevel.None) == ApiLevel.Public && t.GetApiLevel() == ApiLevel.Public && !findDocsByID(docMembers, memID).Any())
if ((om?.DeclaringType.GetApiLevel() ?? ApiLevel.None) == ApiLevel.Public && t.GetApiLevel() > trimLevel && !findDocsByID(docMembers, memID).Any())
docMembers.Add(
new XText(" "),
new XElement(DocElementNames.Member,
Expand Down
Loading

0 comments on commit 7712873

Please sign in to comment.