aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main
diff options
context:
space:
mode:
authorowengray-google <56644404+owengray-google@users.noreply.github.com>2021-10-29 16:08:58 -0400
committerGitHub <noreply@github.com>2021-10-29 23:08:58 +0300
commit100947b7e622336180980754142d042a495d1a0e (patch)
tree1028f34772317303c5854a19fd81e15bea595230 /plugins/base/src/main
parent74f89ba3a7aec2f1a5956f1f0c3bd8215171e401 (diff)
downloaddokka-100947b7e622336180980754142d042a495d1a0e.tar.gz
dokka-100947b7e622336180980754142d042a495d1a0e.tar.bz2
dokka-100947b7e622336180980754142d042a495d1a0e.zip
Allow package-level suppression (#2209)
Diffstat (limited to 'plugins/base/src/main')
-rw-r--r--plugins/base/src/main/kotlin/transformers/documentables/SuppressedByConditionDocumentableFilterTransformer.kt2
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) }