aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/model/Documentable.kt
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-08-26 11:47:49 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-08-31 15:10:04 +0200
commitee13af00483887fb6cfdde10a58cbb43542cf2d7 (patch)
treef8af0819f34e4188e3d3800b818efb864e623068 /core/src/main/kotlin/model/Documentable.kt
parent8d25036f5b919e9d3acc8907e70e965330efae82 (diff)
downloaddokka-ee13af00483887fb6cfdde10a58cbb43542cf2d7.tar.gz
dokka-ee13af00483887fb6cfdde10a58cbb43542cf2d7.tar.bz2
dokka-ee13af00483887fb6cfdde10a58cbb43542cf2d7.zip
Implement tests for ModuleAndPackageDocumentationReader
Diffstat (limited to 'core/src/main/kotlin/model/Documentable.kt')
-rw-r--r--core/src/main/kotlin/model/Documentable.kt18
1 files changed, 9 insertions, 9 deletions
diff --git a/core/src/main/kotlin/model/Documentable.kt b/core/src/main/kotlin/model/Documentable.kt
index adc46d2a..293b8a30 100644
--- a/core/src/main/kotlin/model/Documentable.kt
+++ b/core/src/main/kotlin/model/Documentable.kt
@@ -87,10 +87,10 @@ sealed class DClasslike : Documentable(), WithScope, WithVisibility, WithExpectA
data class DModule(
override val name: String,
- val packages: List<DPackage>,
- override val documentation: SourceSetDependent<DocumentationNode>,
+ val packages: List<DPackage> = emptyList(),
+ override val documentation: SourceSetDependent<DocumentationNode> = emptyMap(),
override val expectPresentInSet: DokkaSourceSet? = null,
- override val sourceSets: Set<DokkaSourceSet>,
+ override val sourceSets: Set<DokkaSourceSet> = emptySet(),
override val extra: PropertyContainer<DModule> = PropertyContainer.empty()
) : Documentable(), WithExtraProperties<DModule> {
override val dri: DRI = DRI.topLevel
@@ -102,13 +102,13 @@ data class DModule(
data class DPackage(
override val dri: DRI,
- override val functions: List<DFunction>,
- override val properties: List<DProperty>,
- override val classlikes: List<DClasslike>,
- val typealiases: List<DTypeAlias>,
- override val documentation: SourceSetDependent<DocumentationNode>,
+ override val functions: List<DFunction> = emptyList(),
+ override val properties: List<DProperty> = emptyList(),
+ override val classlikes: List<DClasslike> = emptyList(),
+ val typealiases: List<DTypeAlias> = emptyList(),
+ override val documentation: SourceSetDependent<DocumentationNode> = emptyMap(),
override val expectPresentInSet: DokkaSourceSet? = null,
- override val sourceSets: Set<DokkaSourceSet>,
+ override val sourceSets: Set<DokkaSourceSet> = emptySet(),
override val extra: PropertyContainer<DPackage> = PropertyContainer.empty()
) : Documentable(), WithScope, WithExtraProperties<DPackage> {
override val name = dri.packageName.orEmpty()