aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-08-28 11:52:21 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-08-31 15:10:04 +0200
commite1bc27df4b50cf09d45db41462944a01d428be56 (patch)
treefd4a7df6459b8307715d5128a8a63945505c7d83 /core/src/main/kotlin
parent02ccae10e3f717c330dae5d87b49a0e72f798905 (diff)
downloaddokka-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.kt11
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()