diff options
author | Błażej Kardyś <bkardys@virtuslab.com> | 2020-02-15 20:23:54 +0100 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-02-17 15:12:54 +0100 |
commit | c3b798fc31779468d65538b105085a3bd945792f (patch) | |
tree | 493670e2bf37aeb84daca4ac4c13a27230ea9018 /core/src/main/kotlin/model | |
parent | 820ba8b496cfe466df201aae2f9a3d02a4589d09 (diff) | |
download | dokka-c3b798fc31779468d65538b105085a3bd945792f.tar.gz dokka-c3b798fc31779468d65538b105085a3bd945792f.tar.bz2 dokka-c3b798fc31779468d65538b105085a3bd945792f.zip |
Removing duplicated content blocks
Diffstat (limited to 'core/src/main/kotlin/model')
-rw-r--r-- | core/src/main/kotlin/model/Documentable.kt | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/core/src/main/kotlin/model/Documentable.kt b/core/src/main/kotlin/model/Documentable.kt index 1744e27f..e64f82ac 100644 --- a/core/src/main/kotlin/model/Documentable.kt +++ b/core/src/main/kotlin/model/Documentable.kt @@ -190,20 +190,16 @@ abstract class Documentable { override fun hashCode() = dri.hashCode() - - val commentsData: List<DocumentationNode> - get() = platformInfo.map { it.documentationNode } - - val briefDocTagString: String - get() = - platformInfo - .firstOrNull() - ?.documentationNode - ?.children - ?.firstOrNull() - ?.root - ?.docTagSummary() - ?.shorten(40) ?: "" + val briefDocTagString: String by lazy { + platformInfo + .firstOrNull() + ?.documentationNode + ?.children + ?.firstOrNull() + ?.root + ?.docTagSummary() + ?.shorten(40) ?: "" + } open val extra: MutableSet<Extra> = mutableSetOf() } |