diff options
| author | Dmitry Jemerov <yole@jetbrains.com> | 2015-03-17 19:54:11 +0100 |
|---|---|---|
| committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-03-17 19:54:11 +0100 |
| commit | c7916f74964246bee4d256c106b01c7e317e6c10 (patch) | |
| tree | 39d28310f12ae4b8e3d4f182aa66b1e5b1c4319e /src/Model | |
| parent | 0406a6bce4f461f3ae846911505701324411fa9b (diff) | |
| download | dokka-c7916f74964246bee4d256c106b01c7e317e6c10.tar.gz dokka-c7916f74964246bee4d256c106b01c7e317e6c10.tar.bz2 dokka-c7916f74964246bee4d256c106b01c7e317e6c10.zip | |
default objects -> companion objects
Diffstat (limited to 'src/Model')
| -rw-r--r-- | src/Model/Content.kt | 4 | ||||
| -rw-r--r-- | src/Model/DocumentationNode.kt | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Model/Content.kt b/src/Model/Content.kt index 176be8d3..0244359e 100644 --- a/src/Model/Content.kt +++ b/src/Model/Content.kt @@ -3,7 +3,7 @@ package org.jetbrains.dokka import kotlin.properties.Delegates public abstract class ContentNode { - default object { + companion object { val empty = ContentEmpty } } @@ -126,7 +126,7 @@ public open class Content(): ContentBlock() { fun findSectionByTag(tag: String): ContentSection? = sections.firstOrNull { tag.equalsIgnoreCase(it.tag) } - default object { + companion object { val Empty = Content() } } diff --git a/src/Model/DocumentationNode.kt b/src/Model/DocumentationNode.kt index 663ca021..9e8a981f 100644 --- a/src/Model/DocumentationNode.kt +++ b/src/Model/DocumentationNode.kt @@ -78,8 +78,8 @@ public open class DocumentationNode(val name: String, Function Property - DefaultObjectProperty - DefaultObjectFunction + CompanionObjectProperty + CompanionObjectFunction Parameter Receiver |
