From 100947b7e622336180980754142d042a495d1a0e Mon Sep 17 00:00:00 2001 From: owengray-google <56644404+owengray-google@users.noreply.github.com> Date: Fri, 29 Oct 2021 16:08:58 -0400 Subject: Allow package-level suppression (#2209) --- .../documentables/SuppressedByConditionDocumentableFilterTransformer.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/base/src/main/kotlin/transformers/documentables') 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 { + 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) } -- cgit