diff options
author | owengray-google <56644404+owengray-google@users.noreply.github.com> | 2021-10-29 16:08:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-29 23:08:58 +0300 |
commit | 100947b7e622336180980754142d042a495d1a0e (patch) | |
tree | 1028f34772317303c5854a19fd81e15bea595230 /plugins/base/src/main/kotlin/transformers/documentables | |
parent | 74f89ba3a7aec2f1a5956f1f0c3bd8215171e401 (diff) | |
download | dokka-100947b7e622336180980754142d042a495d1a0e.tar.gz dokka-100947b7e622336180980754142d042a495d1a0e.tar.bz2 dokka-100947b7e622336180980754142d042a495d1a0e.zip |
Allow package-level suppression (#2209)
Diffstat (limited to 'plugins/base/src/main/kotlin/transformers/documentables')
-rw-r--r-- | plugins/base/src/main/kotlin/transformers/documentables/SuppressedByConditionDocumentableFilterTransformer.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/base/src/main/kotlin/transformers/documentables/SuppressedByConditionDocumentableFilterTransformer.kt b/plugins/base/src/main/kotlin/transformers/documentables/SuppressedByConditionDocumentableFilterTransformer.kt index 66b116cc..0bcb6fd5 100644 --- a/plugins/base/src/main/kotlin/transformers/documentables/SuppressedByConditionDocumentableFilterTransformer.kt +++ b/plugins/base/src/main/kotlin/transformers/documentables/SuppressedByConditionDocumentableFilterTransformer.kt @@ -22,6 +22,8 @@ abstract class SuppressedByConditionDocumentableFilterTransformer(val context: D } private fun processPackage(dPackage: DPackage): DocumentableWithChanges<DPackage> { + if (shouldBeSuppressed(dPackage)) return DocumentableWithChanges.filteredDocumentable() + val classlikes = dPackage.classlikes.map { processClassLike(it) } val typeAliases = dPackage.typealiases.map { processMember(it) } val functions = dPackage.functions.map { processMember(it) } |