diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-08-28 11:52:21 +0200 |
---|---|---|
committer | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-08-31 15:10:04 +0200 |
commit | e1bc27df4b50cf09d45db41462944a01d428be56 (patch) | |
tree | fd4a7df6459b8307715d5128a8a63945505c7d83 /core/src/main/kotlin | |
parent | 02ccae10e3f717c330dae5d87b49a0e72f798905 (diff) | |
download | dokka-e1bc27df4b50cf09d45db41462944a01d428be56.tar.gz dokka-e1bc27df4b50cf09d45db41462944a01d428be56.tar.bz2 dokka-e1bc27df4b50cf09d45db41462944a01d428be56.zip |
Minor readability improvement in ModuleAndPackageDocumentationTransformer.kt
Diffstat (limited to 'core/src/main/kotlin')
-rw-r--r-- | core/src/main/kotlin/model/doc/TagWrapper.kt | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/core/src/main/kotlin/model/doc/TagWrapper.kt b/core/src/main/kotlin/model/doc/TagWrapper.kt index 095f3eaf..d9b08f2c 100644 --- a/core/src/main/kotlin/model/doc/TagWrapper.kt +++ b/core/src/main/kotlin/model/doc/TagWrapper.kt @@ -6,17 +6,18 @@ import org.jetbrains.dokka.model.WithChildren sealed class TagWrapper(val root: DocTag) : WithChildren<DocTag> { override val children: List<DocTag> - get() = root.children + get() = root.children override fun equals(other: Any?): Boolean = ( - other != null && - this::class == other::class && - this.root == (other as TagWrapper).root - ) + other != null && + this::class == other::class && + this.root == (other as TagWrapper).root + ) override fun hashCode(): Int = root.hashCode() } + sealed class NamedTagWrapper(root: DocTag, val name: String) : TagWrapper(root) { override fun equals(other: Any?): Boolean = super.equals(other) && this.name == (other as NamedTagWrapper).name override fun hashCode(): Int = super.hashCode() + name.hashCode() |