Skip to content

Commit

Permalink
Allow package-level suppression (Kotlin#2209)
Browse files Browse the repository at this point in the history
  • Loading branch information
owengray-google committed Dec 29, 2021
1 parent 8ba2975 commit e152c93
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -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) }
Expand Down

0 comments on commit e152c93

Please sign in to comment.