diff options
author | Marcin Aman <marcin.aman@gmail.com> | 2021-04-06 18:06:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-06 18:06:42 +0200 |
commit | 5afe512c669e68aea3712ac37b67d005657cf60a (patch) | |
tree | 2a2ec579a16bf32b93dbcd1adaa8961c2c875b59 /core/test-api/src/main/kotlin | |
parent | cd071a5e07c8202c66db2e077ea43bea76d55511 (diff) | |
download | dokka-5afe512c669e68aea3712ac37b67d005657cf60a.tar.gz dokka-5afe512c669e68aea3712ac37b67d005657cf60a.tar.bz2 dokka-5afe512c669e68aea3712ac37b67d005657cf60a.zip |
Suppress inherited members (#1814)
Diffstat (limited to 'core/test-api/src/main/kotlin')
-rw-r--r-- | core/test-api/src/main/kotlin/testApi/testRunner/TestDokkaConfigurationBuilder.kt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/test-api/src/main/kotlin/testApi/testRunner/TestDokkaConfigurationBuilder.kt b/core/test-api/src/main/kotlin/testApi/testRunner/TestDokkaConfigurationBuilder.kt index c0c449fb..fc26ff98 100644 --- a/core/test-api/src/main/kotlin/testApi/testRunner/TestDokkaConfigurationBuilder.kt +++ b/core/test-api/src/main/kotlin/testApi/testRunner/TestDokkaConfigurationBuilder.kt @@ -36,6 +36,7 @@ class TestDokkaConfigurationBuilder { var modules: List<DokkaModuleDescriptionImpl> = emptyList() var suppressObviousFunctions: Boolean = DokkaDefaults.suppressObviousFunctions var includes: List<File> = emptyList() + var suppressInheritedMembers: Boolean = DokkaDefaults.suppressInheritedMembers private val lazySourceSets = mutableListOf<Lazy<DokkaSourceSetImpl>>() fun build() = DokkaConfigurationImpl( @@ -51,6 +52,7 @@ class TestDokkaConfigurationBuilder { failOnWarning = failOnWarning, suppressObviousFunctions = suppressObviousFunctions, includes = includes.toSet(), + suppressInheritedMembers = suppressInheritedMembers, ) fun sourceSets(block: SourceSetsBuilder.() -> Unit) { @@ -194,6 +196,8 @@ fun dPackage( ) fun documentationNode(vararg texts: String): DocumentationNode { - return DocumentationNode(texts.toList().map { Description(CustomDocTag(listOf(Text(it)), name = MarkdownElementTypes.MARKDOWN_FILE.name)) }) + return DocumentationNode( + texts.toList() + .map { Description(CustomDocTag(listOf(Text(it)), name = MarkdownElementTypes.MARKDOWN_FILE.name)) }) } |