aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-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()