diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2020-04-03 12:45:54 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-04-07 11:43:41 +0200 |
commit | fe24837fb51d5004ec3d7d728ce4c325a192e426 (patch) | |
tree | ec8a3548d06036fa042ff52447eb35d22497d0ee /core/src/main/kotlin/model | |
parent | 828b20f1d7ba7e84f34452452ffa395638a72f2e (diff) | |
download | dokka-fe24837fb51d5004ec3d7d728ce4c325a192e426.tar.gz dokka-fe24837fb51d5004ec3d7d728ce4c325a192e426.tar.bz2 dokka-fe24837fb51d5004ec3d7d728ce4c325a192e426.zip |
Add DTypeAlias documentable
Diffstat (limited to 'core/src/main/kotlin/model')
-rw-r--r-- | core/src/main/kotlin/model/Documentable.kt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/src/main/kotlin/model/Documentable.kt b/core/src/main/kotlin/model/Documentable.kt index fec94537..42b49b82 100644 --- a/core/src/main/kotlin/model/Documentable.kt +++ b/core/src/main/kotlin/model/Documentable.kt @@ -140,6 +140,7 @@ data class DPackage( override val functions: List<DFunction>, override val properties: List<DProperty>, override val classlikes: List<DClasslike>, + val typealiases: List<DTypeAlias>, override val documentation: PlatformDependent<DocumentationNode>, override val platformData: List<PlatformData>, override val extra: PropertyContainer<DPackage> = PropertyContainer.empty() @@ -344,6 +345,21 @@ data class DTypeParameter( override fun withNewExtras(newExtras: PropertyContainer<DTypeParameter>) = copy(extra = newExtras) } +data class DTypeAlias( + override val dri: DRI, + override val name: String, + override val type: Bound, + val underlyingType: Bound, + override val documentation: PlatformDependent<DocumentationNode>, + override val platformData: List<PlatformData>, + override val extra: PropertyContainer<DTypeAlias> = PropertyContainer.empty() +) : Documentable(), WithType, WithExtraProperties<DTypeAlias> { + override val children: List<Nothing> + get() = emptyList() + + override fun withNewExtras(newExtras: PropertyContainer<DTypeAlias>) = copy(extra = newExtras) +} + sealed class Projection sealed class Bound : Projection() data class OtherParameter(val name: String) : Bound() |